List options for a filter
Lists the allowed values for one filter; send an option's id, not its name, as the value in an opportunity's filters. search matches ids, names and alternate names, ignoring case and accents. Results are paged by number with page and per_page, and meta.total counts every match. State options need country_id, and city options need country_id with an optional state_id; without country_id both lists are empty. An unknown filter_slug returns 400.
Authorization
apiKey API key as Bearer token: Authorization: Bearer
In: header
Path Parameters
A filter's slug from GET /filters, such as multi_select--country. A filter with no options_url returns an empty list.
Query Parameters
Text to match against option ids, names and alternate names, ignoring case and accents.
1-based page number. Defaults to 1.
11 <= valueOptions per page, from 1 to 100. Defaults to 50.
501 <= value <= 100ISO 3166-1 alpha-2 country code, such as US. multi_select--state and multi_select--city list nothing without it; other filters ignore it.
Narrows multi_select--city to one state or province: the state option's id (US-CA) or its bare code (CA). Other filters ignore it.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://terac.com/api/external/v2/filters/string/options"{
"data": [
{
"id": "string",
"name": "string"
}
],
"meta": {
"total": 0,
"page": 0,
"per_page": 0
}
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"error": {
"code": "UNAUTHORIZED",
"message": "API key required. Include Authorization: Bearer <key> header."
}
}{
"error": {
"code": "FORBIDDEN",
"message": "This account is not permitted to use the API."
}
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 61 seconds."
}
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}List available filters GET
Lists the audience filters an opportunity's `filters` can use, with each one's slug, type and supported operators. The catalog is the same for every organization and is not paginated. A filter with an `options_url` takes values from a fixed list: read them from `GET /filters/{filter_slug}/options` and send their `id`s. `integer--age` takes a `$gte` / `$lte` range within `min` and `max`, and the two `reference--` filters take opportunity ids.
List subscribable webhook event types GET
Lists the event types a webhook subscription can receive, each with a description. Read this rather than hardcoding a list: new event types are added without a breaking change, and appear here first.