Skip to main content

Test Drive API Documentation

GET: Retrieve Test Drive

Description

This route is used to retrieve a list of copilot questions and see the answers it for a specific project.

Method

GET

Query Parameters

  • sort (string): The field by which to sort the test drive.
  • page (number): The page number of the results.
  • limit (number): The number of items per page.
  • searchTerm (string): Optional search term to filter test drive.

Response

  • Returns a JSON response with the list of test drive or an error message.

Status Codes

  • 200 OK: Test Drive retrieved successfully.
  • 500 Internal Server Error: Error listing Test Drive.

Throws

  • An error if request validation or test drive retrieval fails.

Example cURL

curl --location 'https://app.ai12z.net/api/projects/{projectId}/test' \
--header 'Authorization: Bearer <YOUR_KEY>' \
--data-urlencode 'sort=name' \
--data-urlencode 'page=1' \
--data-urlencode 'limit=10'