- Authenticate with client credentials
- Create conversations for end users
- Send messages and get AI responses (optionally streaming)
- List conversations with filters and pagination
- Fetch messages for a given conversation
Base URLs
- Swagger UI (interactive): https://connect.adopt.ai/docs
- OpenAPI (3.1) spec: https://connect.adopt.ai/openapi.json
Authentication
To call any API, you’ll need aclientId and secret.
You can generate these from the Adopt Platform:
- Go to
Settings → Profile → Personal Tokens - Click “Generate Token”
- Copy the
clientIdandsecret - Use them in the
/v1/auth/tokenrequest below
💡 You can manage and revoke tokens from the same page at any time.All requests require a JWT Bearer Token. First, exchange your client credentials for an access token using: POST
/v1/auth/token
Request
Authorization header:
Action Logs
The Action Logs endpoints let you inspect, filter, and paginate through low-level execution logs produced while an action runs inside a conversation.Use them to debug failures, trace tool calls, or review inputs/outputs for compliance and QA.
List Action Logs
**GET **/v1/action-logs
Fetches action logs filtered to specific fields only.Supports pagination and optional date range filtering. Query Parameters
page– (integer) Page number- Default: 1
- Minimum: 1
page_size– (integer) Number of items per page- Default: 10
- Minimum: 1
- Maximum: 100
start_date– (string | null) Start date inYYYY-MM-DDformatend_date– (string | null) End date inYYYY-MM-DDformat
Get Messages for an Action Log
**GET **/v1/action-logs/{action_log_id}/messages
Retrieves all messages associated with a specific action log, identified by its action_log_id.This endpoint is typically used to debug or inspect the sequence of messages (user, system, or agent) recorded during an action’s execution. Path Parameters
action_log_id– (string, required) Unique ID of the action log to retrieve messages for.
- None
Conversations
Create a conversation
POST/v1/conversations/Creates a new conversation for an end user.
List conversations (paginated)
GET/v1/conversations/
Query parameters:
page(int, default1, min1)limit(int, default20, min1, max100)created_at_from,created_at_to(ISO date strings ornull)updated_at_from,updated_at_to(ISO date strings ornull)
Messages
Send a message
POST/v1/conversations/{conversation_id}/messagesAdds a new message to an existing conversation and generates an AI response. Optionally stream the reply.
Get conversation messages
GET/v1/conversations/{conversation_id}/messagesRetrieves paginated messages for a conversation.
Errors
Validation failures return422 Unprocessable Entity with a standard structure:
End-to-end example
Security
- Scheme: HTTP Bearer
- Header:
Authorization: Bearer <token> - Defined in OpenAPI as
JWTBearer