- 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
clientId
andsecret
- 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
Authorization
header:
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}/messages
Adds a new message to an existing conversation and generates an AI response. Optionally stream the reply.
Get conversation messages
GET/v1/conversations/{conversation_id}/messages
Retrieves 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