---
title: "Mint a widget access token"
---

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

# Mint a widget access token

Path: CloudRaker Workspace API › Organization Settings

`GET /organization/widget-token`

Mints a short-lived access token scoped to the caller's organization and user for the embeddable User Management and API Key widgets, always. The Domain Verification widget scope is included only when the caller's organization has the `domain-verification` rollout flag enabled — an unflagged organization gets a token that cannot drive that widget. Authorization: organization administrators only. Returns 503 when the widget integration is unavailable.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.cloudraker.com/organization/widget-token \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/organization/widget-token';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/organization/widget-token"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

A short-lived widget access token.

#### Example

```json
{
  "token": "eyJhbGciOi…"
}
```

- `token` (`getWidgetToken.response.200.token`; string, required)
  - example `"eyJhbGciOi…"`


Source: https://docs.cloudraker.com/workspace/api/organization-settings/get-widget-token/index.md
