Extract a styleguide
Changed onExtract colors, typography, spacing, and component styles from a website.
Request
- Base URL: https://api.context.dev/v1
- URL: https://api.context.dev/v1/web/styleguide
- Auth: HTTP bearer
Query parameters
Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The domain will be automatically normalized and validated. You must provide either 'domain' or 'directUrl', but not both.
Exact URL to inspect. Provide either domain or directUrl, not both.
Maximum age of cached brand data in ms. Defaults to 3 months; clamped to 0–1 year. 0 refreshes.
Optional browser color scheme to emulate for websites that respond to prefers-color-scheme. This value is part of the styleguide cache key.
enabled turns on zero data retention. Returns 403 ZDR_NOT_ENABLED unless your organization has ZDR.
Labels for filtering usage in the dashboard.
Comma-separated labels for filtering usage, e.g. production,team-alpha.
[ "production", "team-alpha" ]
Response
Successful response
Example response
{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"
}Changes
- warning
added the new
NO_PUBLISHED_MARKDOWNenum value to theresponse property for the response status
- warning
- warning
added the new
USAGE_EXCEEDEDenum value to theresponse property for the response status
- warning