CRM
Create custom company attribute
Changed onCreates a custom attribute on your team's companies. The key is derived from the label. The call is idempotent: if an attribute with the same key and type already exists, it returns 201 with that attribute and already_existed set to true. options is required for DROPDOWN attributes and rejected for other types.
post/v2/api/crm/companies/attributes
Request
- Base URLhttps://api.withallo.com
- URLhttps://api.withallo.com/v2/api/crm/companies/attributes
- AuthAPI key in header Authorization
Request body
Example request
{
"label": "Industry segment",
"type": "DROPDOWN",
"options": [
{
"label": "Enterprise",
"key": "enterprise"
}
],
"prompt": "Pick the segment that matches the company size mentioned on the call."
}Response
The attribute that was created, or the existing one when already_existed is true
Example response
{
"data": {
"key": "industry_segment",
"label": "Industry segment",
"type": "DROPDOWN",
"options": [
{
"key": "enterprise",
"label": "Enterprise"
}
],
"prompt": "Pick the segment that matches the company size mentioned on the call.",
"source": "allo"
}
}Changes
- info
endpoint added
- info