> ## 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.

# Cloud Platform API

> REST API for accounts, organizations, workspaces, API keys, members, usage and billing on NEAR AI Cloud

The Cloud Platform API manages your NEAR AI Cloud account: organizations, workspaces, API keys, members, invitations, usage and billing. Inference (chat completions, responses, images and the like) is served by the [NEAR AI Cloud API](https://docs.near.ai/api-reference/introduction.md).

```text theme={"dark"}
https://cloud-platform.near.ai
```

For a walkthrough that signs in from a script and calls these endpoints, see [Manage your account with the Cloud Platform API](https://docs.near.ai/cloud/guides/cloud-platform-management.md). If you are moving existing scripts, see the [migration guide](https://docs.near.ai/cloud/guides/cloud-platform-migration.md).

## Authentication

Send `Authorization: Bearer <credential>` with every request that needs one.

| Credential | Prefix | Use for |
| - | - | - |
| **Session access token** | none | Almost every endpoint. Get one by signing in, or by refreshing with a refresh token. |
| **Refresh token** | `rt_` | Getting a new access token, and signing out. |
| **Reporting token** | `rpt-` | Read-only usage reporting. |
| **API key** | `sk-` | Looking up the cost of individual requests with `POST /v1/billing/costs`. |

Tokens issued by another NEAR AI service are not accepted here. Each endpoint page lists which credentials it accepts under **Authorizations**.


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