Chatbase Contacts API

Manage contacts and custom attributes for a chatbot.

GitHub OpenAPI
Business capability
Customer Data Management BC-420.10

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /chatbots/{chatbotId}/contacts Create contacts for a chatbot · Create contacts #
Ask an LLM
“How do I add new contacts to my chatbot?”
“Can I create up to 1000 contacts in one request?”
Tell an agent
Create contacts {contacts} for chatbot {chatbotId}.
Add these new leads to chatbot {chatbotId}: {contacts}.
GET /chatbots/{chatbotId}/contacts List contacts for a chatbot · List contacts #
Ask an LLM
“Who are the contacts my chatbot has interacted with?”
“Can I page through a chatbot's contacts?”
Tell an agent
List contacts for chatbot {chatbotId}.
Show {limit} contacts of chatbot {chatbotId} per page.
GET /chatbots/{chatbotId}/contacts/{contactId} Get a chatbot contact · Get a contact #
Ask an LLM
“What name and email are stored for a particular contact?”
“Can I look up one contact by ID?”
Tell an agent
Get contact {contactId} for chatbot {chatbotId}.
Show the profile of contact {contactId} in chatbot {chatbotId}.
PATCH /chatbots/{chatbotId}/contacts/{contactId} Update a chatbot contact · Update a contact #
Ask an LLM
“How do I change a contact's name or phone number?”
“Can I set custom attributes on an existing contact?”
Tell an agent
Set contact {contactId}'s name to {name} in chatbot {chatbotId}.
Update contact {contactId} in chatbot {chatbotId} with custom attributes {customAttributes}.
DELETE /chatbots/{chatbotId}/contacts/{contactId} Delete a chatbot contact · Delete a contact #
Ask an LLM
“How do I remove a contact from my chatbot?”
“Can I delete a single contact by ID?”
Tell an agent destructive · confirm first
Delete contact {contactId} from chatbot {chatbotId}.
Remove the contact {contactId} in chatbot {chatbotId}.
POST /chatbots/{chatbotId}/custom-attributes Add a custom attribute to contacts · Create a custom attribute #
Ask an LLM
“How do I add a new field to a chatbot's contact records?”
“Can I define a custom attribute as a number or string?”
Tell an agent
Add custom attribute {name} of type {type} to chatbot {chatbotId}'s contacts.
Define a new contact field {name} with type {type} for chatbot {chatbotId}.
GET /chatbots/{chatbotId}/custom-attributes Get the contact custom-attribute schema · Get the custom-attribute schema #
Ask an LLM
“Which custom attributes are defined on my chatbot's contacts?”
“What field types are set up for contact custom attributes?”
Tell an agent
Show the custom-attribute schema for chatbot {chatbotId}.
List the custom fields defined on contacts of chatbot {chatbotId}.
PUT /chatbots/{chatbotId}/custom-attributes/{name} Rename or retyp a custom contact attribute · Update a custom attribute #
Ask an LLM
“How do I rename a custom attribute on contacts?”
“Can I change the data type of an existing contact field?”
Tell an agent
Rename custom attribute {name} on chatbot {chatbotId} to {name} and type {type}.
Change the type of contact field {name} in chatbot {chatbotId} to {type}.

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/chatbase:chatbase-contacts-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

chatbase-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Chatbase Contacts API
  description: REST API for the Chatbase custom AI chatbot / AI agent platform. Message an agent (with streaming), create and retrain chatbots/agents, update settings, list and delete agents, manage agent images, retrieve conversation history and captured leads, and manage contacts and their custom-attribute schema. All requests are authenticated with a Bearer API key created in the Chatbase dashboard under Workspace Settings -> API Keys.
  termsOfService: https://www.chatbase.co/legal/terms
  contact:
    name: Chatbase Support
    url: https://www.chatbase.co/docs
  version: '1.0'
servers:
- url: https://www.chatbase.co/api/v1
security:
- bearerAuth: []
tags:
- name: Contacts
  description: Manage contacts and custom attributes for a chatbot.
paths:
  /chatbots/{chatbotId}/contacts:
    post:
      operationId: createContacts
      tags:
      - Contacts
      summary: Create contacts
      description: Create one or more contacts for a chatbot (up to 1000 per request).
      parameters:
      - $ref: '#/components/parameters/ChatbotIdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                contacts:
                  type: array
                  maxItems: 1000
                  items:
                    $ref: '#/components/schemas/ContactInput'
      responses:
        '200':
          description: The created contacts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Contact'
        '401':
          $ref: '#/components/responses/Unauthorized'
    get:
      operationId: listContacts
      tags:
      - Contacts
      summary: List contacts
      description: Retrieve a paginated list of contacts for a chatbot.
      parameters:
      - $ref: '#/components/parameters/ChatbotIdPath'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: Maximum number of contacts to return per page.
      - name: cursor
        in: query
        required: false
        schema:
          type: string
        description: Cursor for fetching the next page of results.
      responses:
        '200':
          description: A paginated list of contacts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Contact'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /chatbots/{chatbotId}/contacts/{contactId}:
    get:
      operationId: getContact
      tags:
      - Contacts
      summary: Get a contact
      parameters:
      - $ref: '#/components/parameters/ChatbotIdPath'
      - $ref: '#/components/parameters/ContactIdPath'
      responses:
        '200':
          description: The requested contact.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contact'
        '401':
          $ref: '#/components/responses/Unauthorized'
    patch:
      operationId: updateContact
      tags:
      - Contacts
      summary: Update a contact
      parameters:
      - $ref: '#/components/parameters/ChatbotIdPath'
      - $ref: '#/components/parameters/ContactIdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactInput'
      responses:
        '200':
          description: The updated contact.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contact'
        '401':
          $ref: '#/components/responses/Unauthorized'
    delete:
      operationId: deleteContact
      tags:
      - Contacts
      summary: Delete a contact
      parameters:
      - $ref: '#/components/parameters/ChatbotIdPath'
      - $ref: '#/components/parameters/ContactIdPath'
      responses:
        '200':
          description: Deletion confirmation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /chatbots/{chatbotId}/custom-attributes:
    post:
      operationId: createCustomAttribute
      tags:
      - Contacts
      summary: Create a custom attribute
      description: Define a new custom attribute on the contact schema for a chatbot.
      parameters:
      - $ref: '#/components/parameters/ChatbotIdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomAttribute'
      responses:
        '200':
          description: The created custom attribute.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttribute'
        '401':
          $ref: '#/components/responses/Unauthorized'
    get:
      operationId: getCustomAttributes
      tags:
      - Contacts
      summary: Get the custom-attribute schema
      parameters:
      - $ref: '#/components/parameters/ChatbotIdPath'
      responses:
        '200':
          description: The custom-attribute schema for contacts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CustomAttribute'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /chatbots/{chatbotId}/custom-attributes/{name}:
    put:
      operationId: updateCustomAttribute
      tags:
      - Contacts
      summary: Update a custom attribute
      parameters:
      - $ref: '#/components/parameters/ChatbotIdPath'
      - name: name
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the custom attribute to update.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomAttribute'
      responses:
        '200':
          description: The updated custom attribute.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttribute'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Contact:
      allOf:
      - $ref: '#/components/schemas/ContactInput'
      - type: object
        properties:
          id:
            type: string
          createdAt:
            type: string
            format: date-time
    CustomAttribute:
      type: object
      required:
      - name
      - type
      properties:
        name:
          type: string
          description: The attribute identifier.
        type:
          type: string
          enum:
          - text
          - number
          - boolean
          - date
          description: The data type of the attribute.
    Status:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
    ContactInput:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
          format: email
        phone:
          type: string
        customAttributes:
          type: object
          additionalProperties: true
          description: Values for any custom attributes defined on the contact schema.
  parameters:
    ContactIdPath:
      name: contactId
      in: path
      required: true
      schema:
        type: string
      description: The ID of the contact.
    ChatbotIdPath:
      name: chatbotId
      in: path
      required: true
      schema:
        type: string
      description: The ID of the chatbot.
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer API key created in the Chatbase dashboard (Workspace Settings -> API Keys).