SVG Lab Guides API
The Guides API from SVG Lab — 2 operation(s) for guides.
The Guides API from SVG Lab — 2 operation(s) for guides.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/svglab-app:svglab-app-guides-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SVG Lab Guides API
version: '1'
summary: 'SVG Lab''s Design Engine over HTTP: projects, Design Engine operations, the MCP''s drawing and illustration tools, AI Generate, placeholder photos and finished files.'
description: 'Use when the task needs a real, editable vector file (logo, icon set, app screen, social graphic) rather than an SVG string pasted into chat. Keys belong to a workspace (svglab.app profile page, API keys): svl_live_ keys spend the account''s credits; test_ keys are the sandbox (1000 test credits a month per workspace, watermarked svg and png, no AI Generate). A Design Engine call costs 1 credit; failed calls are never billed. Every error says what to change in fix.'
contact:
email: support@svglab.app
url: https://svglab.app/api-docs
termsOfService: https://svglab.app/terms
servers:
- url: https://svglab.app/api/v1
security:
- bearer: []
tags:
- name: Guides
paths:
/guides:
get:
operationId: listGuides
summary: SVG Lab's design and drawing guides, one line each (the MCP's docs). 1 credit
responses:
'200':
description: Guides.
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'401':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
tags:
- Guides
/guides/{topic}:
get:
operationId: getGuide
summary: One guide, as the MCP serves it. 1 credit
parameters:
- name: topic
in: path
required: true
schema:
type: string
description: Guide id from GET /api/v1/guides.
responses:
'200':
description: The guide.
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
tags:
- Guides
components:
responses:
Error:
description: error names what happened, fix what to change.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
required:
- ok
- error
- message
- fix
properties:
ok:
const: false
error:
enum:
- not_found
- missing_key
- invalid_key
- key_revoked
- team_workspace_not_ready
- missing_scope
- account_suspended
- end_customer_id_required
- end_customer_id_email
- end_customer_id_invalid
- end_customer_not_partner
- end_customer_suspended
- key_daily_cap
- end_customer_daily_cap
- sandbox_credits_used_up
- sandbox_no_ai_generate
- sandbox_export_format
- credits_needed
- rate_limited
- bad_request
- invalid_json
- payload_too_large
- project_not_found
- operation_failed
- editor_starting
- still_running
- idempotency_in_progress
- idempotency_key_reused
- idempotency_key_invalid
- webhook_url_invalid
- job_not_found
- export_failed
- ai_generate_failed
- ai_generate_unavailable
- limiter_unavailable
- credits_unavailable
- api_not_ready
- unavailable
message:
type: string
fix:
type: string
retry_after_s:
type: number
resets_at:
type: string
format: date-time
Result:
type: object
required:
- ok
properties:
ok:
type: boolean
credits:
type: integer
description: Credits this request cost.
job:
type: object
properties:
id:
type: string
status:
type: string
additionalProperties: true
securitySchemes:
bearer:
type: http
scheme: bearer
description: 'A workspace key: svl_live_... (live) or test_... (sandbox).'
x-error-fixes:
not_found:
status: 404
fix: Check the method and path against GET /api/v1/openapi.json.
missing_key:
status: 401
fix: 'Send Authorization: Bearer <key>. Create a key on your SVG Lab profile page (svglab.app/profile, API keys).'
invalid_key:
status: 401
fix: 'The key is unknown or was revoked. Create a key on your profile page and send it as Authorization: Bearer <key>.'
key_revoked:
status: 401
fix: Create a new key on your profile page; a revoked key never works again.
team_workspace_not_ready:
status: 409
fix: Use a key of your personal workspace. Team workspaces get API keys when team projects open in the editor.
missing_scope:
status: 403
fix: Create a key with the scope named in scope_needed.
account_suspended:
status: 403
fix: Write to support@svglab.app.
end_customer_id_required:
status: 400
fix: 'A partner key names the end customer on every call: send the header SVGLab-End-Customer with your own id for them.'
end_customer_id_email:
status: 400
fix: 'Send your own opaque id for the end customer (letters, digits and . _ : -), never an email address.'
end_customer_id_invalid:
status: 400
fix: 'Use 1 to 64 letters, digits and . _ : - for the end customer id, starting with a letter or digit.'
end_customer_not_partner:
status: 400
fix: Only partner keys name an end customer. Drop the SVGLab-End-Customer header, or use a partner key.
end_customer_suspended:
status: 403
fix: The partner account can lift the suspension on its profile page.
key_daily_cap:
status: 429
fix: Wait until resets_at, or raise this key's daily credit cap on your profile page.
end_customer_daily_cap:
status: 429
fix: Wait until resets_at, or raise this end customer's daily credit cap on your profile page.
sandbox_credits_used_up:
status: 429
fix: Wait until resets_at, or use a live key.
sandbox_no_ai_generate:
status: 403
fix: AI Generate needs a live key; test_ keys run the Design Engine only.
sandbox_export_format:
status: 403
fix: test_ keys export watermarked svg and png; use a live key for pdf and code.
credits_needed:
status: 402
fix: Add credits with a plan or a top-up at https://svglab.app/billing.
rate_limited:
status: 429
fix: Wait retry_after_s seconds and send the call again.
bad_request:
status: 400
fix: Fix the field the message names; GET /api/v1/openapi.json lists every field.
invalid_json:
status: 400
fix: 'Send a JSON object body with Content-Type: application/json.'
payload_too_large:
status: 413
fix: Send a body under 16 MB; an image for AI Generate must be under 12 MB.
project_not_found:
status: 404
fix: Use a project id from GET /api/v1/projects, or the id POST /api/v1/projects returned.
operation_failed:
status: 422
fix: 'Read message: it names what to change. Nothing after the failing operation ran.'
editor_starting:
status: 503
fix: The server editor is still opening. Send the same call again after retry_after_s.
still_running:
status: 504
fix: The call is still finishing in the editor. Check with GET /api/v1/projects/{id}?describe=true before you repeat it.
idempotency_in_progress:
status: 409
fix: A request with this Idempotency-Key is still running. Poll GET /api/v1/jobs/{job_id}.
idempotency_key_reused:
status: 422
fix: This Idempotency-Key was used for a different request. Use a new key for a new request.
idempotency_key_invalid:
status: 400
fix: Use 1 to 160 visible ASCII characters for Idempotency-Key.
webhook_url_invalid:
status: 400
fix: Use a public https URL on port 443 for webhook_url.
job_not_found:
status: 404
fix: Use the job id a POST returned; jobs are kept for 7 days.
export_failed:
status: 502
fix: Nothing was charged. Send the export again; for pdf, export fewer artboards at once.
ai_generate_failed:
status: 502
fix: Nothing was charged. Send it again, or simplify the prompt.
ai_generate_unavailable:
status: 503
fix: Nothing was charged. Try again in a few minutes.
limiter_unavailable:
status: 503
fix: Nothing was run or charged. Try again in a minute.
credits_unavailable:
status: 503
fix: Nothing was run or charged. Try again in a minute.
api_not_ready:
status: 503
fix: The API is being switched on. Try again later.
unavailable:
status: 503
fix: Nothing was charged. Try again in a minute.