Idempotency-Key; retries with the same user, key, and body return the same sessionclient_secret without reserving credits or capacity@beatapi/realtime.active and the selectedcurl --location 'https://api.beatapi.io/v1/realtime/sessions' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"max_duration_seconds": 60,
"allowed_origins": [
"https://app.example.com"
],
"metadata": {
"customer_id": "cus_123"
}
}'{
"data": {
"id": "string",
"object": "realtime.session",
"status": "ready",
"client_secret": "string",
"expires_at": "2019-08-24T14:15:22.123Z",
"max_duration_seconds": 15,
"allowed_origins": [
"http://example.com"
],
"credits": {
"reserved": 0,
"settled": 0,
"refunded": 0
},
"request_id": "string",
"created_at": "2019-08-24T14:15:22.123Z",
"connected_at": "2019-08-24T14:15:22.123Z",
"closed_at": "2019-08-24T14:15:22.123Z"
}
}