SurfacedBySurfacedBy Docs
DocumentationConsoleReference

Scans

Preview the cost of a Console check, submit it, follow its status, read its results, and cancel it.

Ask an AI:Open in ChatGPTOpen in Claude

A scan is one Console check. Submit it with a domain_id and optional keywords (prompts) and platforms; the credits are debited when it is accepted. The preview operation takes the same body and returns the cost without debiting. Triggering a check walks through the full flow and the request fields.

A scan's status is pending, then running, and ends as completed, failed, or cancelled. The list operation returns your 50 most recent scans, optionally filtered by domain_id. Only one scan can be pending or running per domain. Each scan carries measurement_scope, measurement_label, status, answers_total, answers_completed, answers_failed, visibility_score, brand_coverage_pct, citation_count, market_position, market_basis, started_at, completed_at, duration_seconds, error_message, selected_platforms, customer_keywords, and created_at; Triggering a check describes each field.

The results operation returns what a completed check measured: Visibility Score, Brand Coverage, AI Mentions, per-platform results, cited sources, and each prompt's presence on each platform. Market Position comes from the saved Full Check publication, with its reference in headline.market_basis; it is null when unranked or unavailable. The endpoint returns 409 results_not_ready with the check's status until the check has completed, and for a check that failed or was cancelled. Read the results describes each field. The scan.completed webhook for a Console check carries the results URL as results_url.

Submitting requires an Idempotency-Key header. If you lose the submission response, follow Recover an unconfirmed check before sending another request. Cancelling a pending scan refunds its credits; cancelling a running scan does not.

GET
/scans

Query Parameters

domain_id?Domain Id
cursor?Cursor
page_size?Page Size
Default50
Range1 <= value <= 200

Header Parameters

X-API-Key?X-Api-Key

Response Body

curl -X GET "https://api.surfacedby.com/api/v1/console/scans?domain_id=string&cursor=string&page_size=50" \  -H "X-API-Key: string"
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
POST
/scans

Header Parameters

Idempotency-Key?Idempotency-Key
X-API-Key?X-Api-Key
content_project_id?Content Project Id
domain_idDomain Id
Length1 <= length
keywords?Keywords
max_credits?Max Credits
platforms?Platforms
[key: string]any

Response Body

curl -X POST "https://api.surfacedby.com/api/v1/console/scans" \  -H "Idempotency-Key: string" \  -H "X-API-Key: string" \  -H "Content-Type: application/json" \  -d '{    "domain_id": "string"  }'
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
POST
/scans/preview

Header Parameters

X-API-Key?X-Api-Key
content_project_id?Content Project Id
domain_idDomain Id
Length1 <= length
keywords?Keywords
max_credits?Max Credits
platforms?Platforms
[key: string]any

Response Body

curl -X POST "https://api.surfacedby.com/api/v1/console/scans/preview" \  -H "X-API-Key: string" \  -H "Content-Type: application/json" \  -d '{    "domain_id": "string"  }'
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
GET
/scans/{scan_id}

Path Parameters

scan_idScan Id

Header Parameters

X-API-Key?X-Api-Key

Response Body

curl -X GET "https://api.surfacedby.com/api/v1/console/scans/string" \  -H "X-API-Key: string"
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
GET
/scans/{scan_id}/results

Path Parameters

scan_idScan Id

Header Parameters

X-API-Key?X-Api-Key

Response Body

curl -X GET "https://api.surfacedby.com/api/v1/console/scans/string/results" \  -H "X-API-Key: string"
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
POST
/scans/{scan_id}/cancel

Path Parameters

scan_idScan Id

Header Parameters

X-API-Key?X-Api-Key

Response Body

curl -X POST "https://api.surfacedby.com/api/v1/console/scans/string/cancel" \  -H "X-API-Key: string"
null
{
  "detail": [
    {
      "ctx": {},
      "input": null,
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}