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/extractRead one page
GET /api/v1/projectsList your projects
GET /api/v1/projects/{id}/snapshotsList a project's snapshots
GET /api/v1/snapshots/{id}One snapshot with its data

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.