Retrieve a list of custom fields (get)
The get Ortto endpoint of the custom-field entity is used to retrieve a list of the custom contact (person) or accounts (previously organizations) fields in Ortto’s customer data platform (CDP).
This page provides descriptions of this endpoint’s:
- the response payload.
HTTP method and request resources
Custom contact field endpoint
POST https://api.ap3api.com/v1/person/custom-field/getCustom accounts (previously organization) field endpoint
POST https://api.ap3api.com/v1/accounts/custom-field/getNOTE: Ortto customers who have their instance region set to Australia or Europe will need to use specific service endpoints relative to the region:
Australia: https://api.au.ap3api.com/ Europe: https://api.eu.ap3api.com/For example: https://api.eu.ap3api.com/v1/<entity/endpoint>
All other Ortto users will use the default service endpoint (https://api.ap3api.com/).
Path and query parameters
This endpoint takes no additional path and/or query parameters.
Headers
This endpoint requires a custom API key and content type (
application/jsonfor the request body) in the header of the request:
X-Api-Key: CUSTOM-PRIVATE-API-KEYContent-Type: application/jsonRequest body
This endpoint does not take a request body.
Response payload
The response payload consists of a JSON object with the elements listed in the table below.
The following JSON object is an example of the custom field data that Ortto retrieves from your Ortto account’s CDP after a request to this endpoint.
Example get custom person fields response payload from Ortto’s CDP
json
{ "fields": [ { "field": { "id": "int:cm:rating", "name": "Rating", "display_type": "integer", "liquid_name": "people.custom.rating" }, "tracked_value": false } ] }Example get custom accounts fields response payload from Ortto’s CDP
json
{ "fields": [ { "id": "str:oc:industry", "name": "Industry", "display_type": "text", "liquid_name": "accounts.custom.industry" } ] }This endpoint will also return single/multi-select field values:
Example get custom person fields response payload with single-select field values
json
{ "fields": [ { "field": { "id": "str:cm:plan-tier", "name": "Plan tier", "display_type": "single_select", "liquid_name": "people.custom.plan-tier", "dic_items": [ "Bronze", "Silver", "Gold" ] }, "tracked_value": true } ] }Response payload elements
The following table lists all elements (arrays, objects, or fields) in the response from a request to this endpoint.
Element
Type
Description
fields
arrayof objectsThe
fieldsarray consists of an array of objects, where each object contains data for the custom person or accounts fields in your CDP.* Person is an array of objects containing
fieldinstances andtracked_value.* Accounts is an array of field objects.
field
stringIdentifies a custom person (contact) field object.
id
stringThe identifier for the field name in Ortto’s custom field ID format.
name
stringThe name specified for the field when it was created.
display_type
stringThe name of the field
type. See a list of field types under Request body in Create a custom field (create).
liquid_name
stringThe Liquid language tag for the field.
dic_items
arrayA list of the field’s values.
tracked_value
booleanIf
true, updates to the person (contact) field are tracked and created as a custom activity. Otherwise,false.