Skip to content

API reference

The App API: addresses, authentication, errors and limits.

Applies to EngineCloud
View as Markdown
On this page
  1. Authentication
  2. Errors
  3. Limits

API: https://app.api.sypnia.com/v1 Cloud, or your App server’s address followed by /v1 Engine.

Authentication

Authorization: Bearer <token>, with one of:

TokenFromCan
Session tokenapp login or any Sypnia command line (device flow)everything your role allows
Personal access tokenAccount → Tokens, with scopes and an end datewhat its scopes allow
OAuth tokenan agent or app you authorizedwhat you allowed it

Tokens used by agents can never approve, top up, spend credits, raise limits or manage members: those answer 403 person_required. In a browser, App uses your Sypnia session cookie instead of a token.

Errors

JSON
{ "error": { "code": "role_required", "message": "Topping up needs the owner or billing role in La Espiga. Ask Ana or Luis." } }
StatusCodes
400invalid_request, amount_too_small (a top-up under USD 5)
401unauthorized
402insufficient_credits, spending_limit_reached
403forbidden, role_required, person_required
404not_found
409already_exists, conflict
413too_large
415type_not_allowed
429rate_limited (with retry-after)

Limits

600 requests a minute per token, and 30 messages a minute per session. Every limit is in Limits.

  • Endpoints

    Account, organizations, projects, the board, sessions, uploads, credits, limits and notifications.

  1. Authentication
  2. Errors
  3. Limits

    Search pages, sections and terms