cURL
curl --request PATCH \ --url https://www.chatbase.co/api/v1/chatbots/{chatbotId}/contacts/{contactId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "data": { "external_id": "user_123", "name": "John Doe", "email": "john@example.com", "phonenumber": "+1234567890", "stripe_accounts": [ { "label": "main", "stripe_id": "cus_123abc456", "stripe_email": "john@example.com" } ], "custom_attributes": { "department": "Engineering", "subscription_tier": "Enterprise" } } } '
{ "message": "Success", "data": { "id": "contact_internal_123", "external_id": "user_123", "name": "John Doe", "email": "john@example.com", "phonenumber": "+1234567890", "stripe_accounts": [ { "label": "main", "stripe_id": "cus_123abc456", "stripe_email": "john@example.com" } ], "custom_attributes": { "department": "Sales", "subscription_tier": "Premium" }, "created_at": 1704067200, "updated_at": 1704153600 } }
Updates an existing contact’s information
Documentation IndexFetch the complete documentation index at: https://chatbase.co/docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://chatbase.co/docs/llms.txt
Use this file to discover all available pages before exploring further.
API key in Bearer token format
ID of the chatbot
External ID of the contact
Show child attributes
Contact updated successfully
"Success"