Contacts
Create Custom Attribute
Create a new custom attribute for contacts in a chatbot.
Request
URL
Path Parameters
The ID of the chatbot to create the custom attribute for
Headers
Bearer <YOUR_API_KEY>
application/json
Body Parameters
The name of the custom attribute. Must be unique within the chatbot.
- Must only contain lowercase letters, numbers, and underscores
- Must start with a letter
- Once created, cannot be deleted from the schema
The type of the custom attribute. Cannot be changed after creation.
Allowed values: text
, number
, boolean
, date
The display label for the custom attribute
A description of the custom attribute
Important Notes
- Custom attributes cannot be deleted once created
- If you need to discontinue use of a field, you can archive it using the update endpoint
- Archived fields:
- Cannot be used when creating new contacts
- Cannot be updated in existing contacts
- Can only be set to null
- Still return their existing values in responses
- Choose field names carefully as they are permanent
- Plan your schema design thoroughly before creating attributes
Response
Success Response
- Status: 200 OK
- Content-Type: application/json
Success message
Error Responses
400 Bad Request
- Invalid request body
- Reserved field name used
- Invalid field name format
401 Unauthorized
- Invalid or missing API key
404 Not Found
- Chatbot not found
429 Too Many Requests
- Rate limit exceeded
500 Internal Server Error
- Server error occurred