post
https://api-v2.pandavideo.com.br/user/apikey?isSubaccount=&userId=
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
POST /user/apikey
Creates (or regenerates) an API key for a sub-account. If the sub-account already has a key, calling this replaces it in place — the previous key is immediately invalidated.
AuthorizationOnly parent accounts can generate API keys for their sub-accounts. The sub-account must be owned by the authenticated parent.
HTTP Method & Path
POST /user/apikey?isSubaccount=true&userId={subaccount_id}
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 | Panda API token (without Bearer prefix) |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
isSubaccount | boolean | Yes | Must be true (lowercase, compared strictly as the string "true") to target a sub-account |
userId | string (uuid) | Yes | Sub-account to generate the key for (required when isSubaccount=true) |
Replaces the existing key. If the sub-account already has an API key, this call overwrites it; the old key stops working immediately and cannot be recovered.
The key value is shown only once. The fullapi_keyis returned only in this response — it is stored hashed and never returned again byGET /user/apikey. If lost, generate a new one.
There is no request body.
Response
Success Response (200)
{
"apikey": {
"id": "5750356b-628c-0000-0000-999999999",
"user_id": "efsd2323-df17-46b6-bfd8-e0990b04010",
"api_key": "panda-07ac29b909fb...",
"created_at": "2026-01-06T15:06:15.000Z"
}
}| Field | Type | Description |
|---|---|---|
apikey.id | string (uuid) | API key record ID |
apikey.user_id | string (uuid) | Sub-account user that owns the key |
apikey.api_key | string | The generated key (prefix panda-) — shown only here |
apikey.created_at | string (ISO 8601) | Creation timestamp |
Error Responses
- 400 Bad Request — missing/invalid query params, or ownership failures:
"invalid user","invalid subaccount user","invalid user or subaccount","subaccount does not belong to the user". - 401 Unauthorized — Invalid or missing API token.
- 500 Internal Server Error — Server error.
Example Usage
cURL
curl -X POST \
'https://api-v2.pandavideo.com.br/user/apikey?isSubaccount=true&userId=your_subaccount_id_here' \
-H 'Authorization: your_api_token_here'