The API
Read a page's design system and fetch what is in your projects. Keys are made in Settings, on the Pro plan and above. Each call to /extract spends one credit, returned if the read fails.
Authentication
Make a key in Settings and send it as a bearer token. Keys are shown once. Each key has a per-minute limit set by your plan; a 429 says when to retry.
curl https://api.designlang.app/api/v1/extract \
-H "Authorization: Bearer dla_..." \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'Endpoints
POST /api/v1/extractGET /api/v1/projectsGET /api/v1/projects/{id}/snapshotsGET /api/v1/snapshots/{id}The full description is at /api/v1/openapi.json.
Errors
Every error is JSON with an error message and a code: invalid_key, revoked_key, plan_required, quota, rate_limited, bad_url, not_found.