Skip to content
Zaraftis API
Esc
↑↓navigate↵open⌘Jpreview

List scans

Scan history for the workspace, newest first, with headline metric values for each scan. Filter by brand_id, setup_id, status, and date range.

GET/scans
Authorization
AuthorizationBearer token · headerrequired

API key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.

or
AuthorizationOAuth2 access token · headerrequired

OAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.

Query parameters
page_tokenstring

The next_page_token from the previous page. Send it with the same filters and limit.

limitinteger

Items per page. A route can set a lower maximum or default; its own entry says so.

min 1 · max 100 · default: 25
Responses
200

One scan list page

successbooleanrequired
dataScanListPagerequired

One keyset page: items plus the pagination footer.

Show properties
itemsScanItem[]required
Show properties
Array of ScanItem
scan_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
brand_idstring<uuid>required
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
brand_namestringrequired
min length 1
statusstringrequired
Allowed:queuedrunningcompletedfailed
triggered_bystring | nullrequired
Show properties
Any of:
string
string
null
null
created_atstring<date-time>required
matches ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
completed_atstring<date-time> | nullrequired
Show properties
Any of:
string<date-time>
string<date-time>
null
null
countrystringrequired
min length 2 · max length 2
languagestringrequired
min length 2 · max length 10
platformsstring[]required
prompt_countinteger | nullrequired
Show properties
Any of:
integer
integer
null
null
requestedinteger | nullrequired
Show properties
Any of:
integer
integer
null
null
completedinteger | nullrequired
Show properties
Any of:
integer
integer
null
null
failedintegerrequired
min 0 · max 9007199254740991
setup_idstring<uuid> | nullrequired
Show properties
Any of:
string<uuid>
string<uuid>
null
null
setup_version_idstring<uuid> | nullrequired
Show properties
Any of:
string<uuid>
string<uuid>
null
null
setup_checksumstring | nullrequired
Show properties
Any of:
string
string
null
null
metricsScanMetricsFieldMaprequired
paginationListPaginationrequired

Cursor pagination footer. next_page_token is present only when has_more is true; the token is opaque and filter- and limit-bound.

Show properties
has_morebooleanrequired
next_page_tokenstring
min length 1
request_idstringrequired
min length 1
Request
curl -X GET 'https://api.zaraftis.com/v1/scans' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "success": true,
  "data": {
    "items": [
      {
        "scan_id": "9a59f0f5-5572-476d-a7fc-c960ef43a5af",
        "brand_id": "1bb61461-e5e3-4ebb-8cc6-5b0c37f1b7da",
        "brand_name": "string",
        "status": "queued",
        "triggered_by": "string",
        "created_at": "2019-08-24T14:15:22Z",
        "completed_at": "2019-08-24T14:15:22Z",
        "country": "st",
        "language": "string",
        "platforms": [
          "string"
        ],
        "prompt_count": 0,
        "requested": 0,
        "completed": 0,
        "failed": 0,
        "setup_id": "223e7533-659b-4438-b6f4-f841a5d7dfa9",
        "setup_version_id": "46e86b42-ef3c-4109-b8e4-2fc5ae51285c",
        "setup_checksum": "string",
        "metrics": {
          "property1": {
            "value": 0,
            "quality": "complete",
            "method_version": "string"
          },
          "property2": {
            "value": 0,
            "quality": "complete",
            "method_version": "string"
          }
        }
      }
    ],
    "pagination": {
      "has_more": true,
      "next_page_token": "string"
    }
  },
  "request_id": "string"
}

Was this page helpful?