reference

Every tenant-facing endpoint, grouped by service.

REST endpoints

Base URL: https://api.tngat.com. Every path below is a route the API actually serves. The prefixes are not uniform — the project collection has no version segment, project-scoped routes add one, and most services live under a versioned prefix — so copy a path rather than reconstructing it from a neighbouring one. Each section names the SDK namespace that wraps the same calls.

A ?orgId= override selects the organization; without it the caller's active organization is used. List endpoints accept ?limit=, ?cursor= and, where noted, ?q= — see the REST API reference for paging headers and the error contract.

Projects — client.projects

MethodPathPurpose
GET/api/projectsList projects in the active org.
POST/api/projectsCreate a project and its three environments.
GET/api/projects/:slugRead one project.
PUT/api/projects/:slugUpdate name, description, port or source.
DELETE/api/projects/:slugDelete a project and everything in it.
GET/api/deploymentsThe org's recent deployment history.
GET/api/v1/projects/:slug/servicesEvery service the project owns, in one call.
GET/api/v1/projects/:slug/accessWho can see the project, and at what role.
GET/api/v1/projects/:slug/membersProject membership.
PUT/api/v1/projects/:slug/members/:userIdChange a member's project role.
DELETE/api/v1/projects/:slug/members/:userIdRemove a member from the project.
GET/api/v1/projects/:slug/transferDry-run a transfer to another org.
POST/api/v1/projects/:slug/transferMove the project to another org (owner in both).

Environments & variables — client.environments

MethodPathPurpose
GET/api/v1/projects/:slug/environmentsEnvironments and their variable counts.
POST/api/v1/projects/:slug/environmentsAdd a custom environment.
GET/api/v1/projects/:slug/environments/routeWhich environment a branch deploys to.
PATCH/api/v1/projects/:slug/environments/:envSlugRename or re-pattern an environment.
DELETE/api/v1/projects/:slug/environments/:envSlugDelete a custom environment.
GET/api/v1/projects/:slug/environments/:envSlug/variablesList variables (secrets masked unless ?reveal=true).
PUT/api/v1/projects/:slug/environments/:envSlug/variablesCreate or rotate one variable.
DELETE/api/v1/projects/:slug/environments/:envSlug/variables/:keyDelete a variable.
GET/api/v1/projects/:slug/environments/:envSlug/variables/exportExport the environment as a .env document.
POST/api/v1/projects/:slug/environments/:envSlug/variables/importImport a .env document.

Applications — client.apps

A deployed service is addressed by project id and service name, never a deployment id.

MethodPathPurpose
GET/api/v1/appsList app services (?projectId=, ?q=).
GET/api/v1/apps/:projectId/:serviceNameRead one app service.
DELETE/api/v1/apps/:projectId/:serviceNameDelete an app service.
GET/api/v1/apps/:projectId/:serviceName/statusLive status and replica counts.
GET/api/v1/apps/:projectId/:serviceName/logsRuntime logs (?tail=).
GET/api/v1/apps/:projectId/:serviceName/metricsCPU, memory and restarts.
POST/api/v1/apps/:projectId/:serviceName/startStart a stopped service.
POST/api/v1/apps/:projectId/:serviceName/stopStop a running service.
POST/api/v1/apps/:projectId/:serviceName/restartRestart in place.
POST/api/v1/apps/:projectId/:serviceName/scaleSet replica count ({ replicas }).
POST/api/v1/apps/:projectId/:serviceName/rollbackRedeploy a previous revision ({ deploymentId }).
WebSocket/api/v1/apps/:projectId/:serviceName/terminalA browser shell (session cookie only).

Managed databases — client.databases

MethodPathPurpose
GET/api/v1/databasesList databases (?projectId=).
POST/api/v1/databasesProvision a database (projectId required).
GET/api/v1/databases/:idRead one database.
PATCH/api/v1/databases/:idResize cpu, memory, storage or replicas.
DELETE/api/v1/databases/:idDelete a database and its data.
GET/api/v1/resources/:type/:id/credentialsConnection details, once ready.
GET/api/metrics/databases/:idDatabase metrics.

Object storage — client.buckets

MethodPathPurpose
GET/api/v1/storageList buckets (?projectId=, ?q=).
POST/api/v1/storageCreate a bucket (projectId required).
GET/api/v1/storage/:idRead one bucket.
PATCH/api/v1/storage/:idChange the quota (GB).
DELETE/api/v1/storage/:idDelete a bucket and its objects.
POST/api/v1/storage/:id/presignMint a time-limited upload or download URL.
GET/api/v1/storage/:id/objectsList objects (?prefix=).
GET/api/v1/storage/:id/objects/*Read one object.
PUT/api/v1/storage/:id/objects/*Write one object.
DELETE/api/v1/storage/:id/objects/*Delete one object.
GET/api/v1/storage/:id/cdnCDN host for a public bucket.
GET/api/metrics/storage/:idBucket usage metrics.

Sandboxes — client.sandboxes

MethodPathPurpose
GET/api/v1/sandboxesList sandboxes.
POST/api/v1/sandboxesCreate a sandbox (projectId required).
GET/api/v1/sandboxes/:idRead one sandbox.
PATCH/api/v1/sandboxes/:idChange name, resources, image, port or entrypoint; a running sandbox is re-deployed.
DELETE/api/v1/sandboxes/:idDelete a sandbox.
WebSocket/api/v1/sandboxes/:id/terminalA browser shell (session cookie only).

There is no REST endpoint that runs a command and returns its output: a machine that needs to execute inside a sandbox drives the terminal socket with a session cookie, or asks a person to.

Edge functions — client.functions

MethodPathPurpose
GET/api/v1/functionsList functions (?projectId=, ?q=).
POST/api/v1/functionsDeploy a function (projectId required).
GET/api/v1/functions/:idRead one function.
PATCH/api/v1/functions/:idUpdate source, runtime or env.
DELETE/api/v1/functions/:idDelete a function.
POST/api/v1/functions/:id/testInvoke with a synthetic request.
GET/api/v1/functions/:id/keysList the keys protecting the invoke endpoint.
POST/api/v1/functions/:id/keysMint a key (plaintext shown once).
DELETE/api/v1/functions/:id/keys/:keyIdRevoke a key.
GET/api/v1/functions/:id/versionsSource version history.
GET/api/v1/functions/:id/versions/:versionIdRead one version.
POST/api/v1/functions/:id/versions/:versionId/rollbackRoll back to a version.
GET/api/v1/functions/:id/logsRecent invocation logs.
GET/api/v1/functions/:id/logs/streamLive log stream (SSE).

The public invoke URL is https://api.tngat.com/edge/f/<slug>.

Networking & security — client.networking

MethodPathPurpose
GET/api/v1/networking/overviewVPC, gateway and firewall summary.
GET/api/v1/networking/vpcsList VPC isolation.
POST/api/v1/networking/vpcsEnable VPC isolation.
DELETE/api/v1/networking/vpcsDisable VPC isolation.
GET/api/v1/networking/gatewaysList gateway middleware.
POST/api/v1/networking/gatewaysCreate a rate-limit, breaker or headers rule.
PATCH/api/v1/networking/gateways/:idUpdate a gateway rule.
DELETE/api/v1/networking/gateways/:idDelete a gateway rule.
GET/api/v1/networking/firewallList firewall rules.
POST/api/v1/networking/firewallApply an allowlist, blocklist or WAF.
DELETE/api/v1/networking/firewall/:nameRemove a firewall rule.

Custom domains — client.domains

MethodPathPurpose
GET/api/v1/domainsList domains (?projectId=, ?serviceName=).
POST/api/v1/domainsAttach a hostname to an app or function.
GET/api/v1/domains/:id/dnsThe DNS records to create.
POST/api/v1/domains/:id/verifyCheck the TXT record and issue a certificate.
POST/api/v1/domains/:id/routingPoint the hostname at its target.
DELETE/api/v1/domains/:idDetach a domain.

Organization, members & invites — client.organization, client.invites

MethodPathPurpose
GET/api/orgThe active organization.
PUT/api/orgUpdate branding and support details.
POST/api/orgCreate an organization (onboarding).
GET/api/org/exportSecret-free export of the whole tenant.
POST/api/org/membersAdd a member directly.
PATCH/api/org/members/:userIdChange a member's org role.
DELETE/api/org/members/:userIdRemove a member.
GET/api/v1/org/invitesList invitations.
POST/api/v1/org/invitesInvite an email address.
GET/api/v1/org/invites/previewLook up an invite before signing in.
POST/api/v1/org/invites/acceptAccept an invite by token.
DELETE/api/v1/org/invites/:idRevoke an invitation.

API keys & service accounts — client.apiKeys, client.serviceAccounts

MethodPathPurpose
GET/api/v1/api-keysList the organization's API keys.
POST/api/v1/api-keysMint a key (plaintext shown once).
DELETE/api/v1/api-keys/:idRevoke a key.
GET/api/v1/service-accountsList service accounts.
GET/api/v1/service-accounts/assignable-rolesRoles a service account may hold.
POST/api/v1/service-accountsCreate a machine identity.
GET/api/v1/service-accounts/:idRead one service account.
PATCH/api/v1/service-accounts/:idChange its role.
POST/api/v1/service-accounts/:id/enableEnable it (and thus its keys).
POST/api/v1/service-accounts/:id/disableDisable it, rejecting all of its keys.
DELETE/api/v1/service-accounts/:idDelete it.
POST/api/v1/service-accounts/:id/keysMint a key bound to it.
DELETE/api/v1/service-accounts/:id/keys/:keyIdRevoke one of its keys.

Audit, metrics & usage — client.audit, client.metrics, client.usage

MethodPathPurpose
GET/api/auditRecent audit rows.
GET/api/audit/eventsFiltered audit events.
GET/api/audit/exportExport the audit log as CSV or JSON.
GET/api/metrics/projects/:slugProject-level metrics.
GET/api/metrics/sync/statusBilling-meter sync status (admin).
POST/api/metrics/syncRun a billing-meter sync (admin).
GET/api/usageCurrent-period usage summary.
GET/api/usage/ledgerThe metered usage ledger.
GET/api/usage/activityDaily activity (?days=).

Agent sessions

The console's AI-agent conversations are persisted per user. These are console-session routes; they are not part of the API-key SDK surface.

MethodPathPurpose
GET/api/v1/agent/sessionsList the caller's agent sessions.
POST/api/v1/agent/sessionsOpen a session.
GET/api/v1/agent/sessions/:idRead a session and its transcript.
PATCH/api/v1/agent/sessions/:idRename a session.
DELETE/api/v1/agent/sessions/:idDelete a session.
POST/api/v1/agent/sessions/:id/messagesAppend a message.
PATCH/api/v1/agent/sessions/:id/messages/:actionIdApprove or reject a tool call.
DELETE/api/v1/agent/sessionsDelete all of the caller's sessions.

Not part of the tenant API

Platform administration (/api/admin/*), authentication (/api/auth/*), first-boot setup, the builder, the orchestrator and the internal edge runtime routes are operated by the platform itself. They are intentionally absent from the SDK and from this list.