curl --request POST \
--url https://api.questra.ai/surveys/{id_or_slug}/pay \
--header 'Authorization: Bearer <token>' \
--header 'X-Org-Id: <x-org-id>'{
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"user_id": "<string>",
"org_id": "<string>",
"first_page_id": "<string>",
"locked": false,
"paid_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"programmed_from_file_id": "<string>",
"programming_started_at": "2023-11-07T05:31:56Z",
"programming_completed_at": "2023-11-07T05:31:56Z"
}Use a credit from your organization’s balance to pay for the specified survey to allow for exporting and synchonization
curl --request POST \
--url https://api.questra.ai/surveys/{id_or_slug}/pay \
--header 'Authorization: Bearer <token>' \
--header 'X-Org-Id: <x-org-id>'{
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"user_id": "<string>",
"org_id": "<string>",
"first_page_id": "<string>",
"locked": false,
"paid_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"programmed_from_file_id": "<string>",
"programming_started_at": "2023-11-07T05:31:56Z",
"programming_completed_at": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique ID or slug of the survey to pay for
Unique ID for the survey
Unique slug used for survey URLs
Human-readable name for the survey
Unique ID of the user who owns the survey
Unique ID of the organization who owns the survey
Unique ID of the first page of the survey
Whether or not the survey is locked by an AI agent for updates
Date and time the survey was paid for. Surveys that haven't been paid for cannot be exported.
Date and time the survey was created
Date and time the survey was updated
Unique ID of the file the survey was programmed from
Date and time the survey began programming
Date and time the survey finished programming