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.
Respostas
200Default ResponseCampos e exemplo da resposta
Campo Tipo Descrição defsobrigatórioobject[]defs[].keyobrigatóriostringdefs[].typeobrigatóriostringValores: stringnumberbooleandatedefs[].labelopcionalstringdefs[].requiredobrigatóriobooleanJSON{ "defs": [ { "key": "string", "type": "string", "label": "string", "required": true } ]}
401RFC 7807 problem details for UNAUTHORIZED (401).403RFC 7807 problem details for FORBIDDEN (403).
As respostas de erro seguem o formato RFC 7807 (application/problem+json), com um código estável no campo code. Ver os códigos de erro
Exemplo em curl
curl 'https://api.messages.ccxcompany.co/v2/organizations/me/custom-attribute-defs' \ -H "Authorization: Bearer $CCX_API_KEY"