General
Lookups
General Lookups API Calls
General Lookups
This API returns all lookup values to be used in all other API calls including the Contact Centre API.
Path |
---|
GET /lookups |
Request (GET)
Any of the following query parameters can be provided for filtering results.
Query Parameter | Data type | Description |
---|---|---|
type | string | Filter by lookup type |
category | string | Filter by lookup category |
Response (JSON)
Data is returned as a JSON object in the following format:
JSON response |
---|
{
"lookups": [{
"id": "56926d84-6039-4f32-b46a-73d2d5d7f7c5",
...
}, ...]
}
Filter Lookups
To filter the lookup fields pass the type can category like below to filter the lookups.
Path |
---|
GET /lookups/{type}/{category} |
Example: /lookups/bank/accounts
Custom Field Lookups
This API returns lookup values to be used in all other API calls.
Path |
---|
GET /lookups/custom_fields/{people|companies} |
Request (GET)
Response (JSON)
Data is returned as a JSON object in the following format:
{
"status": true,
"records": {
"Farm Type": {
"type": "enum",
"name": "Farm Type",
"description": "Main produce",
"options": ["Pork", "Veggies"]
},
...
}
}