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

# View Company Credits

> Allows you to see how many credits (tokens) a company has available for use on the platform.

**Endpoint**\
`GET /companies/{id}/credits`

**Authentication**: `authorization:  {idToken}`

**Parameters**

Send the **company id** via query parameter

| Field  | Type | Description                        |
| ------ | ---- | ---------------------------------- |
| credit | int  | Number of available credits/tokens |

**cURL Example**

```bash theme={null}
curl -X GET "https://gateway.orkeia.ai/companies/12345/credits"           -H "authorization:  <your_idToken>"
```

## Responses

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": {"12345"}
}
```

### 500 — Bad Request

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Client Error

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
