Skip to content

API reference

The Run API: addresses, authentication, errors, pagination and limits.

Applies to EngineCloud
View as Markdown
On this page
  1. Authentication
  2. Errors
  3. Pagination
  4. Idempotency

Base address: https://run.api.sypnia.com/v1 Cloud, or <engine>/v1 Engine. Requests and responses are JSON over HTTPS.

Authentication

Authorization: Bearer <token>, where the token is one of:

TokenGetsScopes
Sypnia session (console, device flow)what your organization role allowsrun:read, run:deploy, run:admin per role
Personal access token (syp_pat_…)the scopes you gave it, within your rolechosen at creation
Deploy token (syp_rdt_…)deploy one app to listed environmentsrun:deploy on that app
Engine API key (syp_rk_…) Enginethe engine’s admin or a scope you choseper key
Case key (syp_rck_…)call one case that starts external, at POST /hooks/<case-id> of the app; nothing elsethat case only

Errors

Every error has the same shape:

JSON
{ "error": { "code": "deploy_not_ready", "message": "dpl_7h3k is still building.", "doc_url": "https://run.docs.sypnia.com/api#errors" } }
StatusCodes
400invalid_request, invalid_config
401unauthorized
403forbidden, approval_required
404not_found
409conflict, deploy_not_ready, domain_taken, name_taken
402credits_exhausted Cloud
429rate_limited (with Retry-After)
5xxinternal, aws_unavailable

Pagination

Lists return { "data": [...], "next": "<cursor>" }; pass ?cursor= for the next page and ?limit= (1–100, default 20).

Idempotency

POST requests accept Idempotency-Key; a repeat within 24 hours returns the first result.

  • Endpoints

    Apps, deploys, releases, environment, domains, jobs, queues, logs and tokens.

  1. Authentication
  2. Errors
  3. Pagination
  4. Idempotency

    Search pages, sections and terms