Assign a conversation to a member or team
Assigns the conversation to a workspace member, to a team, or clears the assignment with null. Send at least one of membershipId or teamId. Requires the conversations.write scope. Returns the updated conversation. Errors: 404 CONVERSATION_NOT_FOUND, 404 MEMBER_NOT_FOUND, 404 TEAM_NOT_FOUND, 409 CONVERSATION_CHANNEL_FROZEN when the channel is frozen, 422 DEVELOPER_INVALID_INPUT for an empty or unknown body field.
Responses
| Status | Meaning and codes |
|---|---|
| 200 | The updated conversation. |
| 401 | undefined |
| 403 | undefined |
| 404 | undefined |
| 422 | undefined |
| 429 | undefined |
Success and handled error responses send Cache-Control: no-store and X-Correlation-ID (the resolved/generated UUID). Errors use application/problem+json and the reusable ProblemDetails schema below. Retry-After: 1 is sent only for RATE_LIMITED. Request examples read your key from a server environment variable; replace all fictional values.
Schemas and examples
ApiKeyAuthorizationBearer <token>Server-side API key. publicId is 12 lowercase base32 characters (a-z, 2-7); secret is 43 base64url characters from 32 random bytes. Use Authorization: Bearer <complete key>. The API key determines the workspace; requests cannot select another workspace. All public routes share 20 requests per second per key. See API-key authentication.
conversationId*stringConversation ID to assign.
uuidX-Correlation-ID?stringOptional tracing ID. A UUID-shaped value is echoed in the response. Missing or invalid values are replaced with a generated UUID, not rejected.
application/json- body
Send at least one of membershipId or teamId. Use null to clear that assignment.
membershipId?|uuidteamId?|uuidThe updated conversation.
application/json- response
Conversation snapshot returned by get, assign and status change.
id*stringuuidstatus*string"open""pending""resolved""closed"channelType*|Channel type of the conversation's connection, or null when the connection is not found.
channelConnectionId*stringuuidcontactId*stringuuidassigneeMembershipId*|uuidteamId*|uuidlastInboundAt*|date-timereplyWindow*