Rest API
Get quality control questions
GET /api/v1/ai/quality/control
GET
/api/v1/ai/quality/control
List the control questions the AI is scored against for a website, oldest first. A quality control report grades the AI on every one of these.
Use cases
- Account investigation: See what the account measures answer quality against, and whether anything is being measured at all
- Before a report run: A report needs at least one control question, so read these before starting one
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” x-api-key
required
string
Your API key from account settings.
x-user-email
required
string
The email address of your user.
x-account-id
required
string
The ID of your account. You can find this in the account settings.
x-website-id
required
string
The ID of the workspace you want to use.
Responses
Section titled “ Responses ”The control questions for the website.
object
items
Array<object>
object
accountId
string
websiteId
string
id
Unique identifier for this control question.
string
question
string
answer
The answer the AI is graded against.
string
createdAt
Unix timestamp (ms) when the question was created.
number
segmentId
string
audienceId
string
Example
{ "items": [ { "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "websiteId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "question": "How long does delivery take?", "answer": "Standard delivery takes three to five working days.", "createdAt": 1641081600000 } ]}Bad request - missing websiteId.
Unauthorized - invalid API key.