Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Surveys

Surveys, responses and answers (PII-free), and pushing responses in from other survey tools.

List published surveys whose owner node is in the key's subtree

get

Requires surveys:read.

Authorizations
AuthorizationstringRequired

An API key created in Settings → API (ca_live_…).

Query parameters
cursorstringOptional

Opaque pagination cursor from a prior response's next_cursor.

limitinteger · min: 1 · max: 100OptionalDefault: 25
Responses
200

A page of surveys.

application/json
next_cursorstring · nullableRequired

Pass as ?cursor= to fetch the next page; null on the last page.

has_morebooleanRequired
get/surveys
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
}

Get a single published survey (with its published definition)

get

Requires surveys:read.

Authorizations
AuthorizationstringRequired

An API key created in Settings → API (ca_live_…).

Path parameters
idstring · uuidRequired
Responses
200

OK

application/json
idstring · uuidOptional
namestringOptional
descriptionstringOptional
node_idstring · uuidOptional
statusstringOptionalExample: published
primary_languagestringOptionalExample: en
published_atstring · nullableOptional
created_atstring · date-timeOptional
published_definitionobjectOptional

The published survey definition (pages/questions).

get/surveys/{id}
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": {}
}

List responses for a survey (newest first)

get

Requires surveys:read. Respondent PII is not included.

Authorizations
AuthorizationstringRequired

An API key created in Settings → API (ca_live_…).

Path parameters
idstring · uuidRequired
Query parameters
cursorstringOptional

Opaque pagination cursor from a prior response's next_cursor.

limitinteger · min: 1 · max: 100OptionalDefault: 25
Responses
200

A page of responses.

application/json
next_cursorstring · nullableRequired

Pass as ?cursor= to fetch the next page; null on the last page.

has_morebooleanRequired
get/surveys/{id}/responses
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
}

List the answers for a single response

get

Requires surveys:read.

Authorizations
AuthorizationstringRequired

An API key created in Settings → API (ca_live_…).

Path parameters
idstring · uuidRequired
responseIdstring · uuidRequired
Responses
200

OK

application/json
get/surveys/{id}/responses/{responseId}/answers
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"
    }
  ]
}

Push survey responses from another tool into a property

post

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.

Authorizations
AuthorizationstringRequired

An API key created in Settings → API (ca_live_…).

Body

A batch of completed survey responses for one property, from one source. Validation is all-or-nothing.

sourcestring · min: 1 · max: 120Required

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.

property_idstring · uuidOptional

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.

rating_scaleinteger · enumRequired

The scale every rating in the batch is on.

Possible values:
Responses
200

The batch was processed; see each item's status.

application/json
property_idstring · uuidRequired
createdintegerRequired
updatedintegerRequired
skippedintegerRequired
post/survey-responses
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