Skip to main content
Adopt’s External API lets you integrate agentic functionality directly into your app or backend services — no UI embed required. You can:
  • 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

Authentication

To call any API, you’ll need a clientId and secret. You can generate these from the Adopt Platform:
  1. Go to Settings → Profile → Personal Tokens
  2. Click “Generate Token”
  3. Copy the clientId and secret
  4. Use them in the /v1/auth/token request 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
Request body
Response
Use the token in the 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 in YYYY-MM-DD format
  • end_date – (string | null) End date in YYYY-MM-DD format
Example Request
Example Response

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.
Query Parameters
  • None
Example Request
Example Response

Conversations

Create a conversation

POST /v1/conversations/
Creates a new conversation for an end user.
Response

List conversations (paginated)

GET /v1/conversations/ Query parameters:
  • page (int, default 1, min 1)
  • limit (int, default 20, min 1, max 100)
  • created_at_from, created_at_to (ISO date strings or null)
  • updated_at_from, updated_at_to (ISO date strings or null)
Response

Messages

Send a message

POST /v1/conversations/{conversation_id}/messages
Adds a new message to an existing conversation and generates an AI response. Optionally stream the reply.
Request body
Response

Get conversation messages

GET /v1/conversations/{conversation_id}/messages
Retrieves paginated messages for a conversation.
Response

Errors

Validation failures return 422 Unprocessable Entity with a standard structure:

End-to-end example

Security

  • Scheme: HTTP Bearer
  • Header: Authorization: Bearer <token>
  • Defined in OpenAPI as JWTBearer