THISBIT VOICE & TRANSCRIPTS / DOCUMENTATION
Authentication
Authenticate to the API you are calling. Studio’s control and customer APIs have separate Microsoft Entra audiences and permission checks.
| Caller → host | Credential | Authority |
|---|---|---|
| Browser → control | Delegated bearer token for control, access_as_user, allowlisted client. | Tenant membership and the workspace named in the route. |
| Browser → customer API | Delegated bearer token for that customer API, access_as_user, allowlisted client. | The deployment’s tenant, workspace membership and project/source access. |
| Thisbit owner → customer API (Managed Cloud) | Bearer token Thisbit issued for the signed-in owner, verified against the host’s configured Thisbit key. | That owner’s own isolated workspace, created on first sign-in. It never reaches the deployment’s Entra workspace. |
| Customer service → control | App token with Customer.Control; X-Studio-Workspace header. | The managed identity’s declared workspace binding. |
| Control → customer health | App token for the customer API with Control.Health. | Configured health identity and declared origin. |
User sign-in
The browser uses authorization-code PKCE. An administrator must grant tenant consent before users can obtain the relevant token. Guests are refused. Tokens remain in memory and are never stored in the workspace catalog or forwarded to another service.
Control’s public /app-config supplies sign-in configuration, not credentials. GET /v1/workspaces returns the customer origin and delegated scope only for a verified deployment. Obtain a separate token for that scope.
Enrollment and signed proof
- Generate a P-256 device key and retain its private key on the device.
- Ask control for an
enrollchallenge with the public JWK. Sign it and enroll the device with a name. An available seat and active entitlement are required. - For processing, request a
processchallenge naming the enrolled device and exact processing payload. - Sign the challenge and send it with the job to the customer API. Control verifies membership, entitlement and proof.
The compact ES256 proof has header typ: studio-device-proof. Its claims are aud (workspace ID), sub (member object ID), jti (challenge ID), nonce, action, payload_sha256 and exp. Copy the challenge’s nonce, digest and expiry exactly; do not send the private key. Challenges expire after 120 seconds and are single-use.
The Python reference is studio.hosted.auth.sign_proof; the cross-client fixture is tests/fixtures/hosted-device-proof-v1.json, which every client signer must reproduce.
Third-party integrations
The upload/job API uses the user and device flow above. Separately, capture integrations use an operator-configured backend bearer secret delegated to a fixed member, explicit project allowlist and enrolled licensed device. This credential applies only to capture routes. Browser recorder links carry a capability for one microphone capture (two hours of recording permission plus 24 hours of result read access); they cannot create or delete captures. Membership and project access are rechecked on each request and stream batch; recording/processing also require device and subscription eligibility. Configure both API and worker; never expose the integration secret through app-config.
Allow browser origins explicitly in CORS configuration. Do not embed a client secret or operator credential in a webpage. See the upload walkthrough for the current contract.