Create a Realtime app key
POST
/v1/realtime/apps/{realtime_app_id}/keysbird realtime apps keys create <realtime-app-id>curl -X POST "https://us1.platform.bird.com/v1/realtime/apps/{realtime_app_id}/keys" \
-H "Authorization: Bearer $TOKEN"Réponse201
{
"id": "rak_01krdgeqcxet5s7t44vh8rt9mg",
"key": "d0e95a856ddc1b09d4c8",
"secret": "862925e1991a8b6902f9"
}
Adds a new key to the app and returns it with its secret. Store the secret when you receive it because later responses do not include it. Use this together with revoke for zero-downtime rotation: add a key, roll it out across your clients, then revoke the old key.
Paramètres
realtime_app_idstringID of the Realtime app (rap_ prefix), as returned when the app was created.
Contenu de la réponse
idstring
obligatoire
keystring
obligatoire
The public app key clients use to connect.
secretstring
The key secret, used for server-side request signing. Returned only when the key is created, and never shown again: store it securely. If lost, create a new key and revoke this one.
revoked_atnullable string
obligatoire
When the key was revoked, or null if still active.
created_atstring
obligatoire
Ressources associées
Poursuivez avec la documentation, les guides et les exemples sur ce sujet.