Skip to main content
GET
/
surveys
/
{survey_id_or_slug}
/
export
/
{format}
Export survey
curl --request GET \
  --url https://api.questra.ai/surveys/{survey_id_or_slug}/export/{format} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Org-Id: <x-org-id>'
{
  "contents": "<string>",
  "content_type": "<string>",
  "schema": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Org-Id
string
required

The ID of the organization to make requests against. Found on your Settings page.

Path Parameters

survey_id_or_slug
string
required

Unique ID or slug of the survey to export

format
string
required

The format to export the survey into

Response

contents
string
required

Raw contents of the export

content_type
string
required

Mime type of the content

schema
string
required

The schema used to validate the content type (e.g. json schema, .dat file, etc)