Skip to main content
Create a Pipecat avatar media session

Authorizations

Authorization
string
header
required

Production API key created at https://app.protoface.com for https://api.protoface.com; no activation step or environment switch. Pass the full secret shown once at creation as Authorization: Bearer sk_live_…, not the short dashboard identifier. HTTP 401 missing_authorization means the header did not parse; the key was not looked up. A token that passes parsing can return api_key.unknown, api_key.revoked, api_key.expired, or api_key.environment. See https://docs.protoface.com/reference/errors#authentication-codes.

Body

application/json

Start request for a Pipecat avatar media session.

avatar_id
string
required

Stable av_... avatar id.

idle_timeout_seconds
integer
default:30
Required range: 1 <= x <= 600
max_duration_seconds
integer | null
Required range: 1 <= x <= 3600
metadata
object
quality
enum<string>
default:standard

Video output quality tier (standard SD is supported on Pipecat sessions).

Available options:
standard,
high
relay_mode
string
default:websocket
Allowed value: "websocket"

Response

Successful Response

Pipecat avatar media session.

relay
PipecatWebSocketRelayView · object
required

Short-lived direct media connection details for the Pipecat plugin.

session
Session · object
required

Public session resource — what GET /v1/sessions/{id} returns.

Example:
object
string
default:pipecat.session
Allowed value: "pipecat.session"