---
title: "Create contacts for a chatbot"
method: POST
path: "/chatbots/{chatbotId}/contacts"
tags: ["Contacts"]
---

# Create contacts for a chatbot

`POST /chatbots/{chatbotId}/contacts`

Creates one or more contacts for a specific chatbot (max 1000 per request)

## Path parameters

- `chatbotId` string, required

## Request body

- object
  - `users` ContactInput[], required — Array of contacts to create (1-1000)
    - `external_id` string, required — External contact identifier
    - `name` string — Contact's name
    - `email` string, email — Contact's email address
    - `phonenumber` string — Contact's phone number
    - `stripe_accounts` StripeAccountInput[] — Array of Stripe accounts associated with this contact
      - `label` string, required — Label identifier for the Stripe account
      - `stripe_id` string, required — Stripe customer ID
      - `stripe_email` string, email — Email address associated with the Stripe account
    - `custom_attributes` object — Custom attributes for the contact

## Response `200`

Contacts created successfully

- object
  - `message` string
  - `data` Contact[]
    - `id` string — Internal contact ID
    - `external_id` string — External contact identifier
    - `name` string — Contact's name
    - `email` string, email — Contact's email address
    - `phonenumber` string — Contact's phone number
    - `stripe_accounts` StripeAccount[] — Array of Stripe accounts associated with this contact
      - `label` string, required — Label identifier for the Stripe account
      - `stripe_id` string, required — Stripe customer ID
      - `stripe_email` string, email — Email address associated with the Stripe account
    - `custom_attributes` object — Custom attributes for the contact
    - `created_at` integer — Contact creation timestamp (Unix timestamp)
    - `updated_at` integer — Last update timestamp (Unix timestamp)

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `404` — Not Found - Resource does not exist
- `409` — Conflict - External IDs or emails already exist
- `429` — Rate Limited - Too many requests
- `500` — Internal Server Error

---

[API](https://skmtc.dev/chatbase/apis/chatbase-api-v1.md) · [All operations](https://skmtc.dev/chatbase/apis/chatbase-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chatbase/chatbase-api-v1/revisions/3a2187967746/schema)
