Authenticate with API tokens
Create a token under Account settings → API tokens in the console, choosing a name, scopes and expiry. The token (oc_…) is shown once; send it with every request in the Authorization: Bearer header.
Developers / API · CLI

December 1, 2026 · API v1
API base URL
https://dash.app.onecloud.im/api/v1Create a token under Account settings → API tokens in the console, choosing a name, scopes and expiry. The token (oc_…) is shown once; send it with every request in the Authorization: Bearer header.
read is for viewing, write for creating, deploying, changing and deleting, and exec for running commands in containers (web terminal). Tokens with only the read scope cannot read secret values in plain text.
Every endpoint and request/response format is documented at /api/v1/docs. You can paste a token into the docs page and try calls right away.
Create a token with the scopes you need under Account settings → API tokens.
Run oc login in your terminal. A token for this machine is issued and stored.
Run oc up in your app folder to upload, build and deploy it.
Automate repeated tasks with the REST API or the GitHub Action.
Commonly used endpoints. See the API docs for the full list.
| HTTP / Endpoint | Purpose | Required scope |
|---|---|---|
| GET/auth/me | Your account | read |
| GET/projects | List projects | read |
| GET/projects/{projectId} | Project, services and members | read |
| GET/projects/{projectId}/services | List services | read |
| GET/projects/{projectId}/services/{serviceId} | Service status and instances | read |
| GET/projects/{projectId}/services/{serviceId}/deployments | Deploy history | read |
| GET/projects/{projectId}/services/{serviceId}/logs | Search logs | read |
| GET/projects/{projectId}/services/{serviceId}/metrics | Metrics | read |
| GET/projects/{projectId}/services/{serviceId}/variables | Environment variables (masked) | read |
| GET/projects/{projectId}/usage | Project usage | read |
| HTTP / Endpoint | Purpose | Required scope |
|---|---|---|
| POST/projects | Create a project | write |
| POST/projects/{projectId}/services | Create a service (app or database) | write |
| POST/projects/{projectId}/services/{serviceId}/deploy | Redeploy | write |
| POST/projects/{projectId}/services/{serviceId}/deployments/{deploymentId}/rollback | Roll back to a previous deploy | write |
| PATCH/projects/{projectId}/services/{serviceId}/variables | Set or unset environment variables | write |
| POST/projects/{projectId}/services/{serviceId}/domains | Add a custom domain | write |
| POST/projects/{projectId}/services/{serviceId}/terminal | Open a web terminal | exec + write |
oc login, oc up (folder upload deploys), oc logs, oc variables, oc env (environments), oc domain, oc db and oc shell — all from your terminal. Link a folder to a project with oc link so you don't have to name the target every time.
Use it to deploy after your tests pass, or to deploy without the GitHub app. It uploads your repository folder, deploys it and outputs the deployment ID and service URL. Store the token in repository secrets as ONECLOUD_TOKEN.
Create a separate token for each purpose and keep expiry short. Revoke unused tokens from the console at any time.
Replace ONECLOUD_TOKEN and the project and service IDs with values from your console. The examples contain no real credentials.
# ONECLOUD_TOKEN=oc_… (Console → Account settings → API tokens)
curl "https://dash.app.onecloud.im/api/v1/projects" \
-H "Authorization: Bearer $ONECLOUD_TOKEN"curl -X POST "https://dash.app.onecloud.im/api/v1/projects/$PROJECT_ID/services/$SERVICE_ID/deploy" \
-H "Authorization: Bearer $ONECLOUD_TOKEN"oc login # email & password, 2FA supported
cd my-app
oc up # upload this folder, build & deploy
oc logs -f # live logs
oc variables set NODE_ENV=production
oc domain add app.example.com # prints the DNS records to create
oc db create postgres --name pg # managed PostgreSQL
oc env list # production · staging · developmentname: deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: <OneCloud Deploy action> # action path from the console guide
with:
token: ${{ secrets.ONECLOUD_TOKEN }}
project: my-app
service: webUse the remote MCP connector in Claude and ChatGPT, or an API token over stdio in local clients such as Cursor. The same scopes (read, write, exec) apply, and destructive actions require confirmation.