/api/public/v1/shares/{id}/declineshares.decline
Refuse a copy addressed to you; the sender sees it as declined and the encrypted package is deleted.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
idpath | string (uuid) | Yes | Share id |
Examples
curl -X POST "https://browlix.com/api/public/v1/shares/<id>/decline" \
-H "Authorization: Bearer $BROWLIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Response
200 with { data, correlation_id }.
| Field | Type | Always present | Description |
|---|---|---|---|
| data | object | Yes | |
| data.package | object | Yes | |
| data.package.id | string (uuid) | Yes | |
| data.package.state | "preparing" | "available" | "importing" | "delivered" | "declined" | "revoked" | "expired" | "failed" | Yes | |
| data.package.profile_name | string | Yes | |
| data.package.os | "windows" | "linux" | Yes | |
| data.package.source_revision | integer | No | Committed revision the copy is pinned to (absent for configuration-only copies) (min -9007199254740991, max 9007199254740991) |
| data.package.categories | array<"cookies" | "local_storage" | "indexed_db" | "service_workers" | "extensions" | "bookmarks" | "history" | "open_tabs" | …> | Yes | Browser data carried beyond the configuration |
| data.package.recipient_email | string | Yes | |
| data.package.message | string | No | |
| data.package.expires_at | string (date-time) | Yes | |
| data.package.created_at | string (date-time) | Yes | |
| data.package.delivered_at | string (date-time) | No | |
| data.package.ended_at | string (date-time) | No | |
| data.package.failure | object | No | |
| data.package.failure.code | string | Yes | |
| data.package.failure.message | string | No | |
| data.package.progress | object | No | |
| data.package.progress.waiting_for_machine | boolean | Yes | |
| data.package.progress.phase | string | No | |
| data.package.progress.pct | integer | No | (min -9007199254740991, max 9007199254740991) |
| data.package.progress.attempts | integer | Yes | (min -9007199254740991, max 9007199254740991) |
| data.package.sender_workspace | string | No | |
| data.package.sender_email | string | No | |
| data.package.received_profile_id | string (uuid) | No | The profile this copy became in your workspace, once accepted |
| correlation_id | string (uuid) | Yes |
Errors
| Code | HTTP | Retryable |
|---|---|---|
| UNAUTHENTICATED | 401 | No |
| FORBIDDEN | 403 | No |
| RATE_LIMITED | 429 | Yes |
| VALIDATION_FAILED | 422 | No |
| NOT_FOUND | 404 | No |
| DEPENDENCY_UNAVAILABLE | 503 | Yes |
| UNKNOWN | 500 | No |
