Skip to main content
POST
/
surveys
/
{id_or_slug}
/
program-from-file
/
{fileId}
Trigger AI programming from a file
curl --request POST \
  --url https://api.questra.ai/surveys/{id_or_slug}/program-from-file/{fileId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Org-Id: <x-org-id>'
{
  "id": "<string>",
  "user_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "content": [
    {
      "type": "<string>",
      "text": "<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

id_or_slug
string
required

Unique ID or slug of the survey to program

fileId
string
required

ID of the uploaded questionnaire file to program from

Response

Programming job queued successfully

id
string
required

Unique ID of the user message created for this programming job

user_id
string
required

ID of the user who triggered the job

created_at
string<date-time>
required

Timestamp when the job was created

content
object[]
required

Content parts of the message