POST /accounts/{account_id}/moq/relays/{relay_id}/tokens
Mints a new relay-scoped token and adds it to the relay's accepted-auth registry. The token value (secret) is shown once in the response. A relay may hold up to 10 tokens; creating an 11th is rejected.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
relay_id |
String | Yes |
Relay unique identifier (32 hex characters). |
account_id |
String | Yes |
Cloudflare account identifier. |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
label |
String | No |
Optional, customer-set label. |
operations[] |
Array | Yes |
Non-empty subset of the V1 roles the token is allowed to perform. Signed into the token. |
expires |
String | No |
Optional expiry (RFC 3339). Defaults to 1 year from creation; rejected if more than 1 year in the future. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.