Surveys
Surveys, responses and answers (PII-free), and pushing responses in from other survey tools.
Requires surveys:read.
An API key created in Settings → API (ca_live_…).
Opaque pagination cursor from a prior response's next_cursor.
25A page of surveys.
Pass as ?cursor= to fetch the next page; null on the last page.
Missing or invalid API key.
The key lacks the required scope, the account's plan does not include it, or the key's owner no longer has the access it needs. The last is checked on every call: a key works only while the user who created it is active in the account and holds api_keys.manage where the key is bound, plus the permission behind each write scope it carries. Every call with such a key gets the same 403, whatever its scope, until the owner's access is restored or an administrator creates a new key.
GET /api/v4/surveys HTTP/1.1
Host: app.customer-alliance.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"node_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "published",
"primary_language": "en",
"published_at": null,
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"next_cursor": null,
"has_more": true
}Requires surveys:read.
An API key created in Settings → API (ca_live_…).
OK
publishedenThe published survey definition (pages/questions).
Missing or invalid API key.
The key lacks the required scope, the account's plan does not include it, or the key's owner no longer has the access it needs. The last is checked on every call: a key works only while the user who created it is active in the account and holds api_keys.manage where the key is bound, plus the permission behind each write scope it carries. Every call with such a key gets the same 403, whatever its scope, until the owner's access is restored or an administrator creates a new key.
Not found or outside the key's scope.
GET /api/v4/surveys/{id} HTTP/1.1
Host: app.customer-alliance.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"node_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "published",
"primary_language": "en",
"published_at": null,
"created_at": "2026-01-01T00:00:00.000Z",
"published_definition": {}
}Requires surveys:read. Respondent PII is not included.
An API key created in Settings → API (ca_live_…).
Opaque pagination cursor from a prior response's next_cursor.
25A page of responses.
Pass as ?cursor= to fetch the next page; null on the last page.
Missing or invalid API key.
The key lacks the required scope, the account's plan does not include it, or the key's owner no longer has the access it needs. The last is checked on every call: a key works only while the user who created it is active in the account and holds api_keys.manage where the key is bound, plus the permission behind each write scope it carries. Every call with such a key gets the same 403, whatever its scope, until the owner's access is restored or an administrator creates a new key.
Not found or outside the key's scope.
GET /api/v4/surveys/{id}/responses HTTP/1.1
Host: app.customer-alliance.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"survey_id": "123e4567-e89b-12d3-a456-426614174000",
"node_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "completed",
"channel": "email",
"overall_score": null,
"started_at": "2026-01-01T00:00:00.000Z",
"completed_at": null,
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"next_cursor": null,
"has_more": true
}Requires surveys:read.
An API key created in Settings → API (ca_live_…).
OK
Missing or invalid API key.
The key lacks the required scope, the account's plan does not include it, or the key's owner no longer has the access it needs. The last is checked on every call: a key works only while the user who created it is active in the account and holds api_keys.manage where the key is bound, plus the permission behind each write scope it carries. Every call with such a key gets the same 403, whatever its scope, until the owner's access is restored or an administrator creates a new key.
Not found or outside the key's scope.
GET /api/v4/surveys/{id}/responses/{responseId}/answers HTTP/1.1
Host: app.customer-alliance.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"question_id": "text",
"question_path": "text",
"question_type": "rating",
"value": null,
"numeric_value": null,
"comment": null,
"answered_at": "2026-01-01T00:00:00.000Z"
}
]
}Requires surveys:write. Writes up to 100 completed responses, with their answers, from a survey tool Customer Alliance does not run, under a named source — the automated form of the review inbox's survey CSV upload. Each source's responses are kept in one survey managed for you and hidden from the survey endpoints and statistics; each response also appears in the inbox, and in GET /reviews, as an upload review. See Pushing reviews and survey responses.
In answers, a number answers a rating question and a string a free-text one. A question keeps the type — and, for a rating, the scale — it was first given: answering it otherwise later is a 422, as is growing the source's survey past its question limit, and nothing is written. Identity is (source, external_id): a repeat push replaces that response's answers. Each item's outcome is in results.
An API key created in Settings → API (ca_live_…).
A batch of completed survey responses for one property, from one source. Validation is all-or-nothing.
Where the data comes from, e.g. Zenchef. Created on first use and matched case-insensitively after that — the same sources the review inbox's CSV upload offers.
The property (leaf node) to write to. Optional when the key is bound to a single property; required when it is bound to a group. Must be within the key's node scope.
The scale every rating in the batch is on.
The batch was processed; see each item's status.
Invalid request.
Missing or invalid API key.
The key lacks the required scope, the account's plan does not include it, or the key's owner no longer has the access it needs. The last is checked on every call: a key works only while the user who created it is active in the account and holds api_keys.manage where the key is bound, plus the permission behind each write scope it carries. Every call with such a key gets the same 403, whatever its scope, until the owner's access is restored or an administrator creates a new key.
property_id is missing, out of scope, or not a property (leaf) node; or the batch contradicts a question's established type or scale, or would take the source's survey past its question limit.
Rate limit exceeded. Honour the Retry-After header.
POST /api/v4/survey-responses HTTP/1.1
Host: app.customer-alliance.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 251
{
"source": "Navili",
"property_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rating_scale": 5,
"responses": [
{
"external_id": "nv-9",
"rating": 4,
"responded_at": "2026-09-01",
"answers": {
"Cleanliness": 5,
"What could we improve?": "Breakfast could start earlier."
}
}
]
}{
"source": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
},
"property_id": "123e4567-e89b-12d3-a456-426614174000",
"created": 1,
"updated": 1,
"skipped": 1,
"results": [
{
"external_id": "text",
"status": "created",
"response_id": null,
"review_id": null,
"reason": "erased"
}
]
}Last updated
