attach_call
const url = 'https://app.everruns.com/api/v1/sessions/example/voice/example/attach';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"instructions":"Always confirm before placing an order.","model":"gpt-realtime","provider_id":"prov_01h…","reasoning_effort":"medium","voice":"alloy","provider_call_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.everruns.com/api/v1/sessions/example/voice/example/attach \ --header 'Content-Type: application/json' \ --data '{ "instructions": "Always confirm before placing an order.", "model": "gpt-realtime", "provider_id": "prov_01h…", "reasoning_effort": "medium", "voice": "alloy", "provider_call_id": "example" }'Attach an external voice call to the session.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”Request body for voice attach.
object
Extra system instructions appended to the realtime session prompt.
Example
Always confirm before placing an order.Provider-side realtime model identifier. When omitted the server picks the agent’s configured default.
Example
gpt-realtimeRealtime provider binding: the prefixed public id of the provider
connection to route this voice connection through (e.g. prov_…). Lets
an org with more than one realtime-capable provider pick which one serves
the connection. When omitted, the server resolves the org’s default (or
single) realtime provider. The bound provider’s driver MUST declare the
realtime service, otherwise the request is rejected with 400.
Example
prov_01h…Reasoning effort hint passed through to the realtime model. One of low, medium, high.
When omitted the server picks the provider’s default.
Example
mediumRealtime voice preset (provider-specific). When omitted the server picks the agent’s configured default.
Example
alloyResponses
Section titled “ Responses ”Realtime sideband attached
Response body for voice attach.
object
Timestamp when the connection’s lease expires (RFC 3339).
Provider-side model identifier used for the realtime session.
Realtime provider routing this connection.
Provider-side call identifier of the connected realtime call.
Reasoning effort tier for thinking-capable models.
Realtime voice preset selected for the connection.
Prefixed public identifier of the voice connection. See ID Schema.
Example generated
{ "expires_at": "2026-04-15T12:00:00Z", "model": "example", "provider": "example", "provider_call_id": "example", "reasoning_effort": "example", "voice": "example", "voice_connection_id": "example"}