PATCH URL: /api/v1/team/status
Status changes are broadcast in real time to all agents in your business via Socket.IO on the
agent_status_changed event. Other agents’ dashboards update immediately without requiring a page refresh.Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
| Content-Type | application/json |
Body
Your new availability status. Must be one of:
live— you are online and available for conversationsaway— you are online but temporarily unavailableoffline— you are not available
Response
The status value that was saved.
Example
Response example
Get pending handoffs
Method:GET URL: /api/v1/team/pending-handoffs
Returns all conversations that have been flagged for human handoff by the Theo AI agent. Use this endpoint to build a handoff queue in your dashboard or trigger alerts for your team.
Headers
| Header | Value |
|---|---|
| Authorization | Bearer |
Response
The endpoint returns an array of conversation objects awaiting human attention.UUID of the conversation.
UUID of the customer who initiated the conversation.
The reason the AI flagged this conversation for human handoff (e.g.,
"complex_issue", "user_requested").Current status of the conversation. One of:
open, pending, closed.ISO 8601 timestamp of when the conversation was created.
Example
Response example
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid status value or user does not belong to a business |
| 401 | Unauthorized — missing or invalid token |
| 404 | Not a valid team member |