/
Docs
/
The app's HTTP API has two public faces: the project-token routes the command line and the Figma plugin read a design system through, and the agent routes an account token reaches after designsource login. Everything else under /api is the app's own, behind a session cookie, and not for integration. One page on credentials, one per route family, one on the device sign-in, one on the shapes the routes answer, and one generated from the code for every error code.
- AuthenticationThe project token and the account token, which routes take which, and how a refusal reads.
- Project routesThe seven routes a project token reads a design system through, with their query, headers and answers.
- Agent routesThe routes an account token reaches: list and create design systems, read one's kit or snapshot, generate a screen, revoke the token.
- Device authorizationThe four routes that turn a code shown in a terminal into an account token, and their timings.
- Data formatsThe shapes the routes answer: the canonical token JSON, the snapshot, the kit manifest, the starter manifest and the recipe.
- Error codesEvery machine-readable code the API answers, with its status, where it comes from and what it means.