cURL
curl --request POST \ --url https://www.chatbase.co/api/v1/chatbots/{chatbotId}/contacts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "users": [ { "external_id": "user_123", "name": "John Doe", "email": "[email protected]", "phonenumber": "+1234567890", "stripe_accounts": [ { "label": "main", "stripe_id": "cus_123abc456", "stripe_email": "[email protected]" } ], "custom_attributes": { "department": "Sales", "subscription_tier": "Premium" } } ] } '
{ "message": "Success", "data": [ { "id": "contact_internal_123", "external_id": "user_123", "name": "John Doe", "email": "[email protected]", "phonenumber": "+1234567890", "stripe_accounts": [ { "label": "main", "stripe_id": "cus_123abc456", "stripe_email": "[email protected]" } ], "custom_attributes": { "department": "Sales", "subscription_tier": "Premium" }, "created_at": 1704067200, "updated_at": 1704153600 } ] }
Creates one or more contacts for a specific chatbot (max 1000 per request)
API key in Bearer token format
ID of the chatbot
Array of contacts to create (1-1000)
1 - 1000
Show child attributes
Contacts created successfully
"Success"