Skip to content

API reference

The addresses, how to authenticate, the error shape and the limits shared by every endpoint.

Applies to EngineCloud
View as Markdown
On this page
  1. Authenticating
  2. Errors
  3. The contract

Every project has one base address: https://<ref>.data.sypnia.com in Sypnia Cloud, or your engine’s public address.

PrefixWhatPage
/auth/v1users: sign-up, sign-in, sessions, e-mail, providersAuth endpoints
/auth/v1/adminusers and settings, with a secret keyAuth endpoints
/auth/v1/oauthmachines: tokens, device flow, registrationOAuth endpoints
/rest/v1the Data API, transactions, the API descriptionData and SQL endpoints
/sql/v1SQL, transactions, migrations, schemaData and SQL endpoints
https://mcp.data.sypnia.com (self-hosted: /mcp)the MCP server, one for every projectMCP
/.well-known/…jwks.json, oauth-authorization-server, openid-configuration, oauth-protected-resourceOAuth endpoints
/health200 {"status":"ok"} when the engine and the database answer—
every familyerror codes and limitsErrors and limits

Authenticating

HeaderCarries
apikey: syp_pk_… / syp_sk_…the project key (needed on /auth/v1 and /rest/v1 from apps)
Authorization: Bearer <token>a user’s access token, a PAT, or a secret key
Authorization: DPoP <token> + DPoP: <proof>a DPoP-bound token
X-Sypnia-CSRF: <value of the sypnia-csrf cookie>with a cookie session (the refresh token in the __Secure-sypnia-rt cookie, cross-subdomain sessions)

Errors

JSON
{ "error": { "code": "invalid_credentials", "message": "Wrong e-mail or password", "hint": null } }

code is stable and in snake_case; message is for people and may change. The OAuth endpoints answer as RFC 6749 requires: { "error": "invalid_client", "error_description": "…" }.

StatusMeans
202an e-mail is being retried (email_queued_retry): not an error
400the request is malformed (invalid_query, validation_failed…)
401no valid credential (missing_api_key, invalid_token, invalid_dpop_proof, secret_key_in_browser)
403a valid credential without the right (insufficient_scope, scope_not_allowed, person_required)
404unknown project, table or record (unknown_project, table_not_found)
405, 406a method or a schema the endpoint does not serve
409conflict (email_exists, migration_checksum_mismatch, expectation_failed)
422valid shape, refused content (weak_password, invalid_email)
429rate limited; Retry-After says when
503the database or a dependency is unavailable; Retry-After

Every code, with what to do about it, is in Errors and limits.

The contract

The complete, machine-readable contract is spec/openapi.yaml in the repository. These pages and the engine follow it.

  1. Authenticating
  2. Errors
  3. The contract

    Search pages, sections and terms