Call the API from curl
Fetch a design.md
Section titled “Fetch a design.md”Set a WorkOS access token and your Daytona and OpenAI keys in your shell. V1 has no getdesign API key or run billing. You pay those providers directly.
curl "https://api.getdesign.app/v1/design?url=https://stripe.com" \ -H "Authorization: Bearer $WORKOS_ACCESS_TOKEN" \ -H "x-daytona-api-key: $DAYTONA_API_KEY" \ -H "x-openai-api-key: $OPENAI_API_KEY" \ -H "Accept: text/markdown" \ -o stripe.design.mdPipe it straight into a file
Section titled “Pipe it straight into a file”curl -sS "https://api.getdesign.app/v1/design?url=https://linear.app" \ -H "Authorization: Bearer $WORKOS_ACCESS_TOKEN" \ -H "x-daytona-api-key: $DAYTONA_API_KEY" \ -H "x-openai-api-key: $OPENAI_API_KEY" \ > linear.design.mdUse with jq for palette only
Section titled “Use with jq for palette only”Use format=json for a structured result, then select the palette:
curl -sS "https://api.getdesign.app/v1/design?url=https://stripe.com&format=json" \ -H "Authorization: Bearer $WORKOS_ACCESS_TOKEN" \ -H "x-daytona-api-key: $DAYTONA_API_KEY" \ -H "x-openai-api-key: $OPENAI_API_KEY" \ | jq '.doc.palette' > stripe.palette.jsonJSON output uses the format=json query parameter, not the Accept header. See the API surface for progress streaming and error responses.