Get a contact field
get/api/v1/contacts/fields/{fieldId}This API retrieves the details of a specific field associated with the contact module, identified by the field ID. It provides a comprehensive overview of the selected field, including the field ID, name, field type, and other relevant metadata.
Code snippet
curl -X 'GET' \
'https://{yourdomain}/api/v1/contacts/fields/{fieldId}' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}'
Path parameters
| fieldIdintegerRequired | The unique identifier for the field. When provided, it returns the details of the field associated with this ID. |
Example response
200 Success
{
"data": {
"fieldId": 5,
"apiName": "cf_state",
"fieldName": "State",
"fieldTypeId": 2,
"fieldTypeName": "Single select dropdown",
"placeholderText": "Select your state",
"description": "The field is mandatory",
"instructions": "The field is mandatory",
"isRequired": true,
"showInCreateForm": true,
"isSystemField": true,
"isActive": true
}
}