Sysnee Docs

API reference

The routes an access token can call, with the scope each one requires. Generated from openapi.json.

Base URL: https://api.cloud.sysnee.com. Send Authorization: Bearer <token> with a personal access token (sysnee_pat_…) or an OAuth access token (sysnee_oat_…). A token only reaches the routes of its scopes, and never more than the user's role allows. Routes not listed here refuse tokens. See Tokens and scopes.

The full schemas (request bodies, parameters, patterns) are in openapi.json.

Account and projects

MethodRouteScopeWhat it does
GET/v1/auth/meaccount:readThe signed-in user and their organization
GET/v1/projectsaccount:readList projects
GET/v1/projects/defaultaccount:readThe default project
GET/v1/projects/{id}account:readGet a project

Sites

MethodRouteScopeWhat it does
GET/v1/resources/deploysites:readList sites
POST/v1/resources/deploysites:deployCreate a site
GET/v1/resources/deploy/name-availabilitysites:readCheck whether a site name is free
GET/v1/resources/deploy/{id}sites:readGet a site
PATCH/v1/resources/deploy/{id}sites:deployChange a site (SPA mode, build settings, Git source)
DELETE/v1/resources/deploy/{id}sites:deleteDelete a site
GET/v1/resources/deploy/{id}/deploymentssites:readList deployments
POST/v1/resources/deploy/{id}/deploymentssites:deployDeploy a zip archive (multipart, field "archive")
POST/v1/resources/deploy/{id}/redeploysites:deployBuild the Git source again
GET/v1/resources/deploy/{id}/deployments/{deploymentId}sites:readGet a deployment
GET/v1/resources/deploy/{id}/deployments/{deploymentId}/logssites:readBuild log of a deployment, from a byte offset
POST/v1/resources/deploy/{id}/deployments/{deploymentId}/activatesites:deployServe an earlier deployment (rollback)
GET/v1/resources/deploy/{id}/domainssites:readList custom domains
POST/v1/resources/deploy/{id}/domainssites:deployAdd a custom domain
PATCH/v1/resources/deploy/{id}/domains/{domainId}sites:deployChange a custom domain (e.g. redirect target)
DELETE/v1/resources/deploy/{id}/domains/{domainId}sites:deleteRemove a custom domain
POST/v1/resources/deploy/{id}/domains/{domainId}/verifysites:deployCheck the DNS records of a custom domain now
GET/v1/resources/deploy/{id}/analyticssites:readSite analytics for a period
POST/v1/resources/deploy/{id}/deletion-requestsites:deleteRequest the deletion of a site; a person confirms it in the console
POST/v1/resources/deploy/{id}/domains/{domainId}/deletion-requestsites:deleteRequest the removal of a domain; a person confirms it in the console

PostgreSQL

MethodRouteScopeWhat it does
GET/v1/resources/postgresdatabases:readList PostgreSQL databases
POST/v1/resources/postgresdatabases:writeCreate a PostgreSQL database (account level 3)
GET/v1/resources/postgres/{id}databases:readGet a PostgreSQL database
POST/v1/resources/postgres/{id}/stopdatabases:writeStop a PostgreSQL database
POST/v1/resources/postgres/{id}/startdatabases:writeStart a stopped PostgreSQL database
POST/v1/resources/postgres/{id}/deletion-requestdatabases:deleteRequest the deletion of a database; a person confirms it in the console

Billing

MethodRouteScopeWhat it does
GET/v1/billing/usage/currentbilling:readUsage so far in the current period
GET/v1/billing/usage/monthsbilling:readMonths that have usage
GET/v1/billing/usagebilling:readUsage detail (JSON or CSV)
GET/v1/billing/invoicesbilling:readList invoices
GET/v1/billing/invoices/{id}billing:readGet an invoice