List the org's typed custom attribute definitions
GET/v2/organizations/me/custom-attribute-defs
Returns the dictionary that drives Contact.attributes validation. Returns { defs: [] } for orgs that haven't configured any.
Auth: contacts:read — every member that can read contacts also needs the schema to render the editor.
Respuestas
200Default ResponseCampos y ejemplo de la respuesta
Campo Tipo Descripción defsobligatorioobject[]defs[].keyobligatoriostringdefs[].typeobligatoriostringValores: stringnumberbooleandatedefs[].labelopcionalstringdefs[].requiredobligatoriobooleanJSON{ "defs": [ { "key": "string", "type": "string", "label": "string", "required": true } ]}
401RFC 7807 problem details for UNAUTHORIZED (401).403RFC 7807 problem details for FORBIDDEN (403).
Las respuestas de error siguen el formato RFC 7807 (application/problem+json), con un código estable en el campo code. Ver los códigos de error
Ejemplo en curl
curl 'https://api.messages.ccxcompany.co/v2/organizations/me/custom-attribute-defs' \ -H "Authorization: Bearer $CCX_API_KEY"