> ## Documentation Index
> Fetch the complete documentation index at: https://docs.near.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Move account and billing calls to cloud-platform

> Account, API key, organization and billing management endpoints move to a new host. Inference stays where it is.

Account and billing management endpoints are moving from `https://cloud-api.near.ai` to `https://cloud-platform.near.ai`. The paths stay the same. Read endpoints will be removed from cloud-api on 2026-12-04 and write endpoints on 2026-12-07 (dates are UTC). Inference endpoints (chat completions, responses, models, images, audio, and the like) stay on `https://cloud-api.near.ai`.

## Endpoints by group

### Stay on cloud-api

No action needed.

| Endpoint | Notes |
| - | - |
| `GET /v1/organizations/{org_id}/usage/balance` | No change |
| `POST /v1/billing/costs` | No change |

### Read endpoints, will be removed from cloud-api on 2026-12-04

| Endpoint |
| - |
| `GET /v1/organizations/{org_id}/usage/metrics` |
| `GET /v1/organizations/{org_id}/usage/history` |
| `GET /v1/organizations/{org_id}/usage/timeseries` |
| `GET /v1/organizations/{org_id}/usage/by-model` |
| `GET /v1/workspaces/{workspace_id}/api-keys` |
| `GET /v1/workspaces/{workspace_id}/api-keys/{key_id}/usage/history` |
| `GET /v1/organizations/{org_id}/credit/transfer/capacity` |
| `GET /v1/organizations/{org_id}/credit/transfers` |
| `GET /v1/organizations` |
| `GET /v1/organizations/{org_id}/workspaces` |
| `GET /v1/services` |
| `GET /v1/services/{service_name}` |

### Write and sign-in endpoints, will be removed from cloud-api on 2026-12-07

| Endpoint |
| - |
| `POST /v1/users/me/access-tokens` |
| `GET /v1/auth/login`, `/v1/auth/github`, `/v1/auth/google`, `/v1/auth/callback` |
| `POST /v1/auth/near` |
| `POST /v1/workspaces/{workspace_id}/api-keys` |
| `PATCH /v1/workspaces/{workspace_id}/api-keys/{key_id}` |
| `DELETE /v1/workspaces/{workspace_id}/api-keys/{key_id}` |
| `PATCH /v1/workspaces/{workspace_id}/api-keys/{key_id}/spend-limit` |
| `POST /v1/organizations/{org_id}/credit/transfer` |
| `POST /v1/organizations` |
| `POST /v1/organizations/{org_id}/workspaces` |

### Files

The `/v1/files` endpoints are retired and will be removed on 2026-12-04. There is no replacement.

After removal, cloud-api answers the moved endpoints with HTTP `410 Gone`, and the files endpoints with `404`.

## Before and after

Read: list your organizations.

```bash theme={"dark"}
# Before
curl https://cloud-api.near.ai/v1/organizations \
  -H "Authorization: Bearer $ACCESS_TOKEN"

# After
curl https://cloud-platform.near.ai/v1/organizations \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

Write: create a workspace.

```bash theme={"dark"}
# Before
curl -X POST https://cloud-api.near.ai/v1/organizations/$ORG_ID/workspaces \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-workspace"}'

# After
curl -X POST https://cloud-platform.near.ai/v1/organizations/$ORG_ID/workspaces \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-workspace"}'
```

## Tokens

> [!WARNING]
>
> Access tokens issued by cloud-api are not accepted by cloud-platform. Sign in again against cloud-platform to get a new one.

The moved endpoints take a signed-in user's access token (`$ACCESS_TOKEN` in the examples above), as they do on cloud-api today (the credit transfer endpoints also accept an organization credential on both hosts). API keys (`sk-`) are not accepted on them. `POST /v1/billing/costs` takes an API key and stays on cloud-api.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.