SurveyTale Docs

Upload Bulk Contacts

Uploads contacts in bulk. This endpoint expects the bulk request shape: `contacts` must be an array, and each contact item must contain an `attributes` array of `{ attributeKey, value }` objects. Unlike `POST /management/contacts`, this endpoint does not accept a top-level `attributes` object. Each contact must include an `email` attribute in its `attributes` array, and that email must be valid.

Authorization

apiKeyAuth
x-api-key<token>

Use your SurveyTale x-api-key to authenticate.

In: header

Request Body

application/json

The contacts to upload. Use the full nested bulk body shown in the example or cURL snippet: { workspaceId, contacts: [{ attributes: [{ attributeKey: { key, name }, value }] }] }. Each contact must include an email attribute inside its attributes array.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json