Unblock Contact
POST/accounts/:account_id/contacts/:contact_id/unblock
Lift the block of a contact before it ends.
See Block Contact.
| Setting | Value |
|---|---|
| Method | POST |
| Path | /api/v1/accounts/{account_id}/contacts/{contact_id}/unblock |
| Authorization | Same as Block Contact: user token. Legacy: administrator. New rules: Contacts → update only (the legacy administrator role does not pass). When conversation_id is sent, the caller must also be able to see that conversation. Agent-bot tokens: not allowed. |
Body parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
conversation_id | integer | No | Display ID of one of the contact's conversations, where the "unblocked" activity message is posted. |
Example request
curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/unblock' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "conversation_id": 1501 }'
Example response (200 OK): the contact (same shape as Block Contact) with "blocked": false and the block keys removed from additional_attributes.
Request
Responses
- 200
- 401
- 403
- 404
The unblocked contact.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.