Sysnee Docs

Referência da API

As rotas que um token de acesso pode chamar, com o escopo de cada uma. Gerada do openapi.json.

URL base: https://api.cloud.sysnee.com. Envie Authorization: Bearer <token> com um token pessoal (sysnee_pat_…) ou um token OAuth (sysnee_oat_…). Um token só chega às rotas dos escopos dele, e nunca a mais do que o papel do usuário permite. As rotas que não estão aqui recusam tokens. Veja Tokens e escopos.

Os schemas completos (corpos, parâmetros e padrões) estão no openapi.json.

Conta e projetos

MétodoRotaEscopoO que faz
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

MétodoRotaEscopoO que faz
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

MétodoRotaEscopoO que faz
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

Cobrança

MétodoRotaEscopoO que faz
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