Chatley Developer API

The Chatley Developer API lets you create chat sessions with your Chatley agents and send them messages from your own application (POST /api/developer/chat/sessions, POST /api/developer/chat/messages), authenticated with a Chatley API key sent as a Bearer token. Chatley publishes no machine-readable contract for it; the OpenAPI here is generated from the documentation pages.

GitHub OpenAPI

Operations 2

POST /api/developer/chat/messages POST /api/developer/chat/messages #
POST /api/developer/chat/sessions POST /api/developer/chat/sessions #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/chatley-ai:developer-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

chatley-ai-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Chatley AI API
  version: '2026-11-03'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-03: 2 operation(s) read from 9 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Chatley AI has published no machine-readable contract that the
    pipeline could find. Engine: anthropic.'
  x-evidence-tiers:
    code-example: 2
    documentation: 0
    pages-with-code: 9
    pages-read: 9
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-03'
  x-generator: generate-contract-from-docs.py
  x-engine: anthropic
  x-sources:
  - https://docs.chatley.ai/api/chat-messages
  - https://docs.chatley.ai/api/chat-sessions
  - https://docs.chatley.ai/api/introduction.md
  - https://app.chatley.ai/docs/api/introduction.md
  - https://app.chatley.ai/docs/api/chat-messages.md
  - https://app.chatley.ai/docs/api/chat-sessions.md
  - https://docs.chatley.ai/developer-api
  - https://docs.chatley.ai/api/chat-messages.md
  - https://docs.chatley.ai/api/chat-sessions.md
servers:
- url: https://api.chatley.ai
paths:
  /api/developer/chat/messages:
    post:
      operationId: post_api_developer_chat_messages
      tags:
      - Api
      summary: POST /api/developer/chat/messages
      x-source: https://docs.chatley.ai/api/chat-messages
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiDeveloperChatMessagesRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiDeveloperChatMessagesResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl --request POST \"https://api.chatley.ai/api/developer/chat/messages\" \\ --header \"Authorization: Bearer $CHATLEY_API_KEY\"\
          \ \\ --header \"Content-Type: application/json\" \\ --data '{ \"agentId\": \"YOUR_AGENT_ID\", \"sessionId\": \"YOUR_SESSION_ID\", \"\
          message\": \"What appointment times are available?\" }' \n Agent variables ​ \n If your agent's instructions reference variables, pass\
          \ their values with the\nmessag"
  /api/developer/chat/sessions:
    post:
      operationId: post_api_developer_chat_sessions
      tags:
      - Api
      summary: POST /api/developer/chat/sessions
      x-source: https://docs.chatley.ai/api/chat-sessions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiDeveloperChatSessionsRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiDeveloperChatSessionsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl --request POST \"https://api.chatley.ai/api/developer/chat/sessions\" \\ --header \"Authorization: Bearer $CHATLEY_API_KEY\"\
          \ \\ --header \"Content-Type: application/json\" \\ --data '{\"agentId\":\"YOUR_AGENT_ID\"}' \n Response ​ \n 200 OK \n { \"success\"\
          \ : true , \"data\" : { \"sessionId\" : \"session-id\" , \"agentId\" : \"YOUR_AGENT_ID\" } } \n Field Type Description sessionId string\
          \ Pass this to Send a message for e"
components:
  schemas:
    PostApiDeveloperChatMessagesRequest:
      type: object
      properties:
        agentId:
          type: string
        sessionId:
          type: string
        message:
          type: string
    PostApiDeveloperChatMessagesResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            chatId:
              type: string
            sessionId:
              type: string
            response:
              type: string
            isSession:
              type: boolean
            createdAt:
              type: string
              format: date-time
            updatedAt:
              type: string
              format: date-time
    PostApiDeveloperChatSessionsRequest:
      type: object
      properties:
        agentId:
          type: string
    PostApiDeveloperChatSessionsResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            sessionId:
              type: string
            agentId:
              type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api