post
https://api-v2.pandavideo.com.br/live_stream_key/
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
POST /live_stream_key
Creates a live stream key for one of your sub-accounts. The parent account must own the target sub-account.
AuthorizationOnly parent accounts create live stream keys for their sub-accounts. The
subaccount_idmust belong to a sub-account owned by the authenticated parent. Sub-account-tier callers are rejected.
HTTP Method & Path
POST /live_stream_key
Base URL: https://api-v2.pandavideo.com.br
Authentication Requirements
- Security Scheme:
PandaAuth(apiKey) - Header:
Authorization: <your_api_token>(no Bearer prefix)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | Yes | Your parent account API token |
Request Body
Content-Type: application/json
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
title | string | Yes | Display name for the stream key | minLength 3 |
subaccount_id | string (uuid) | No | Target sub-account (must be owned by the parent) | — |
set_default | boolean | No | Make this the default key | Defaults to false |
The first key created for an account is always forced todefault: true. Settingset_default: trueclearsdefaulton the account's other keys (scoped per sub-account). Unknown fields are rejected (additionalProperties: false).
Example Request
{ "subaccount_id": "efcb5915-df17-46b6-bfd8-e8998bc94917", "title": "Main Stream Key", "set_default": true }Response
Success Response (200)
{
"id": "08d7f7aa-25ff-47af-9892-b5e52c6b5a93",
"title": "Main Stream Key",
"stream_key": "d377666e-a3a8-410f-a5a3-d80e5b2b2888",
"created_at": "2026-04-22T15:36:19.323Z",
"default": true,
"subaccount_id": "efcb5915-df17-46b6-bfd8-e8998bc94917"
}| Field | Type | Description |
|---|---|---|
id | string (uuid) | Live stream key ID |
title | string | Display name |
stream_key | string (uuid) | RTMP stream key value |
created_at | string (ISO 8601) | Creation timestamp |
default | boolean | Whether this is the default key |
subaccount_id | string (uuid) | Owning sub-account |
Error Responses
Validation and business failures return 400 Bad Request, e.g.:
titlemissing/too short (validation)."Subaccounts are not allowed to create stream keys""subaccount not found."/"invalid subaccount.""customer not found"/"subscription not found""the plan has no slot available to create stream key"
Other: 401 Unauthorized; 404 Not Found ("User not found"); 500 Internal Server Error.
Example Usage
cURL
curl -X POST \
'https://api-v2.pandavideo.com.br/live_stream_key' \
-H 'Authorization: your_api_token_here' \
-H 'Content-Type: application/json' \
-d '{ "subaccount_id": "your_sub_account_id_here", "title": "Main Stream Key", "set_default": true }'