Plan restrictions
A valid, correctly signed request can still return403 when a feature is unavailable on the company’s current plan.
State conflicts
Ticket mutations can return409 if another request changes the chat or ticket while the operation is being processed. Refresh the ticket state before deciding whether to retry.
Assignment and status mutations have different queue rules. Use the assignee endpoint to enter or leave
pending_assignment. Trying to activate or close a queued ticket through the status endpoint returns 400 (40042); pending_assignment itself is not an accepted status request value. Removing the assignee of an already queued ticket, or changing the assignee of a new or inactive ticket, returns 400 (40043). Assigning an AI employee from the queue is rejected with 403 (40311).
External attachment links
GET /v1/attachments/{attachmentId}/external-url supports stored VK video attachments. Code 4041501 means the attachment was not found for the API key company; 4041502 means it does not support this external-link operation. Code 5031502 means provider access is unavailable. Request a fresh URL once provider access is restored.