Create a session claim
Create a claim that starts a session on an idle shared recorder, for passing to it over Bluetooth. The recorder redeems it and records to your account for `duration_minutes` (default 60). An unknown recorder, an account device, or a recorder with an open session returns 404. To start from the web instead, use `POST /shared-recorders/{id}/sessions`. See [Devices](/docs/devices#shared-recorders).
/devices/sessionsAuthorization
bearerAuth Send Authorization: Bearer <token> with one of: an app session access token from /auth/verify-otp or /auth/refresh; an OAuth access token from /oauth/token issued for the API origin (its scopes are its permissions); or a personal access token starting with optima_pat_ (see /docs/personal-access-tokens). Personal access tokens cannot create or list tokens, revoke other tokens, sign out, or delete or restore the account. Content routes need the permission of their layer: audio:read/audio:write for recordings, turns:read/turns:write for turns, contacts, source signals, and events, and insights:read/insights:write for suggestions and session summaries; search and recall need turns:read and insights:read. A request without the permission, or for an account whose layer is turned off, returns 403 FORBIDDEN. See /docs/authentication#scopes.
In: header
Header Parameters
Send 1 to pin the documented API contract. If omitted, the latest version is selected.
"1"Value in
- "1"
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/devices/sessions" \ -H "X-API-Version: 1" \ -H "Content-Type: application/json" \ -d '{ "device_id": "string" }'{ "success": true, "data": { "claim_token": "stringstringstringstringstringstringstrings", "expires_at": "2019-08-24T14:15:22Z" }}