cURL
curl --request GET \ --url https://www.chatbase.co/api/v1/chatbots/{chatbotId}/custom-attributes \ --header 'Authorization: Bearer <token>'
{ "message": "Success", "data": [ { "name": "department", "label": "Department", "type": "text", "description": "Employee department", "archived": false } ] }
Retrieves the custom attributes schema for contacts
API key in Bearer token format
ID of the chatbot
Custom attributes schema retrieved successfully
"Success"
Array of custom attribute definitions
Show child attributes
Attribute name
"department"
Display label for the attribute
"Department"
Attribute data type
text
number
boolean
date
"text"
Description of the attribute
"Employee department"
Whether the attribute is archived
false