Skip to main content
GET
Extract a styleguide
10 credits See the guide for examples and usage.

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <API_KEY>. Keys have full access unless restricted to specific permissions.

Query Parameters

domain
string

Domain to analyze, such as stripe.com. Provide either domain or directUrl, not both.

Minimum string length: 3
directUrl
string<uri>

Exact page URL to analyze. Provide either domain or directUrl, not both.

maxAgeMs
integer | null
default:7776000000

Maximum age of a cached result, in milliseconds. 0 always fetches fresh. Defaults to 90 days (7776000000 ms). Values above 1 year (31536000000 ms) are capped at 1 year.

colorScheme
enum<string>

Emulate a light or dark color scheme. Each scheme is cached separately.

Available options:
light,
dark
timeoutOpts
object

Request deadline and what to return when it passes.

zdr
enum<string>

enabled turns off request logs and traces and keeps request and response content out of usage logs. Brand data and hosted assets may still be stored. Returns 403 ZDR_NOT_ENABLED unless your organization has ZDR.

Available options:
enabled,
disabled
tags
string[]

Comma-separated labels for this request, such as production,team-alpha. Filter usage and request logs by them. Labels for this request. Filter usage and request logs by them in the dashboard or with GET /org/logs.

Maximum array length: 20
Required string length: 1 - 50
Example:
policies
string[]

Comma-separated access policy IDs to apply; each URL must pass all of them. Requires access policies enabled for your organization; otherwise returns ACCESS_POLICIES_NOT_ENABLED.

Response

The styleguide.

cache_metadata
object
required

Cache status of this response.

request_id
string<uuid>
required

Unique ID of this request, also in X-Request-Id. Include it when contacting support.

Example:

"3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"

finalDOMState
enum<string>

loaded, or still-loading when capture ended before the page finished loading.

Available options:
loaded,
still-loading
status
string

Always ok on success.

domain
string

Normalized domain that was analyzed.

styleguide
object

Design tokens and component styles extracted from the website.

code
integer

HTTP status code, repeated in the body.

key_metadata
object

Credits this request used and your remaining balance.