## Accept call

`client.live.sessions.accept(stringsessionID, SessionAcceptParamsbody, RequestOptionsoptions?): void`

**post** `/live/sessions/{session_id}/accept`

Accept an incoming SIP call. Supply session with type live, the model, and startup configuration. Before accepting calls, follow the [Live prompting guide](/api/docs/guides/live-prompting) to write frontend conversation instructions and a separate backend prompt. SIP media format is negotiated; omit audio.format.

### Parameters

- `sessionID: string`

- `body: SessionAcceptParams`

  - `session: Session`

    Model and startup configuration for the Live session that answers the incoming SIP call.

    - `model: (string & {}) | "gpt-live-1"`

      The Live model to use for the accepted call.

      `minLength: 1`

      - `(string & {})`

      - `"gpt-live-1"`

        - `"gpt-live-1"`

    - `type: "live"`

      The session type. Always `live`.

      - `"live"`

    - `audio?: Audio`

      Startup audio output configuration. SIP negotiates the media format; audio.format is only accepted for primary WebSockets. Voice cannot change after startup.

      - `output?: Output`

        Settings for speech generated by the Live model. Choose the voice before starting the session.

        - `voice?: string | BuiltInVoice | CustomVoice`

          The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to `marin` and cannot change after startup.

          - `string`

          - `BuiltInVoice = "alloy" | "ash" | "ballad" | 20 more`

            A built-in voice available for Live speech.

            - `"alloy"`

            - `"ash"`

            - `"ballad"`

            - `"beacon"`

            - `"bossa"`

            - `"cedar"`

            - `"cinder"`

            - `"coral"`

            - `"delta"`

            - `"echo"`

            - `"gleam"`

            - `"marin"`

            - `"meridian"`

            - `"quartz"`

            - `"ripple"`

            - `"sage"`

            - `"shida"`

            - `"shimmer"`

            - `"stone"`

            - `"tempo"`

            - `"verse"`

            - `"vesper"`

            - `"willow"`

          - `CustomVoice`

            - `id: string`

              `minLength: 1`, `maxLength: 128`

    - `delegation?: ClientDelegation | Responses | Decisions | null`

      Who handles tasks delegated by the Live model. Omitted or null selects your application; use `responses` or `decisions` to delegate to the corresponding API.

      - `ClientDelegation`

        Delegate tasks to your application. The Live session emits delegation events that your backend handles.

        - `type: "client"`

          The delegation owner. Always `client` for tasks handled by your application.

          - `"client"`

        - `acknowledgement_delay_ms?: number`

          Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.

          `minimum: 0`, `maximum: 800`

      - `Responses`

        Delegate tasks to a Responses model managed by the Live session.

        - `responses: ResponsesDelegationConfig`

          Backend model, prompt, and tools used when the Live session delegates a task to Responses.

          - `model: string`

            The model used for server-owned Responses delegations.

          - `instructions?: string | null`

            Instructions for the delegated Responses model, separate from Live instructions. See [backend prompting](/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt).

          - `max_output_tokens?: number | null`

            Maximum number of output tokens for each delegated response.

            `minimum: 16`

          - `parallel_tool_calls?: boolean | null`

            Whether the delegated Responses model may request multiple tool calls in a single response.

          - `reasoning?: Reasoning | null`

            Reasoning settings passed to each delegated Responses request.

            - `effort?: "none" | "minimal" | "low" | 3 more | null`

              How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.

              - `"none"`

              - `"minimal"`

              - `"low"`

              - `"medium"`

              - `"high"`

              - `"xhigh"`

            - `summary?: "concise" | "detailed" | "auto" | null`

              The reasoning summary to request from the delegated Responses model, when supported.

              - `"concise"`

              - `"detailed"`

              - `"auto"`

          - `service_tier?: "auto" | "default" | "fast_tier_temp_pilot" | 3 more | null`

            Service tier for delegated Responses requests.

            - `"auto"`

            - `"default"`

            - `"fast_tier_temp_pilot"`

            - `"flex"`

            - `"priority"`

            - `"ultrafast"`

          - `text?: Text | null`

            Text generation settings passed to each delegated Responses request.

            - `verbosity?: "low" | "medium" | "high" | null`

              The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.

              - `"low"`

              - `"medium"`

              - `"high"`

          - `tool_choice?: "auto" | "none" | "required" | LiveFunctionToolChoiceParam | LiveMCPToolChoiceParam | 11 more`

            Controls which tool the Responses backend uses when handling a task delegated by the Live model.

            - `"auto" | "none" | "required"`

              - `"auto"`

              - `"none"`

              - `"required"`

            - `LiveFunctionToolChoiceParam`

              - `name: string`

                `minLength: 1`, `maxLength: 64`

              - `type: "function"`

                - `"function"`

            - `LiveMCPToolChoiceParam`

              - `name: string`

                `minLength: 1`, `maxLength: 64`

              - `server_label: string`

                `minLength: 1`, `maxLength: 64`

              - `type: "mcp"`

                - `"mcp"`

            - `FileSearchToolChoice`

              - `type: "file_search"`

                The tool to call. Always `file_search`.

                - `"file_search"`

            - `WebSearchToolChoice`

              - `type: "web_search"`

                The tool to call. Always `web_search`.

                - `"web_search"`

            - `WebSearchPreview`

              - `type: "web_search_preview"`

                The tool to call. Always `web_search_preview`.

                - `"web_search_preview"`

            - `ImageGenerationToolChoice`

              - `type: "image_generation"`

                The tool to call. Always `image_generation`.

                - `"image_generation"`

            - `ComputerToolChoice`

              - `type: "computer"`

                The tool to call. Always `computer`.

                - `"computer"`

            - `CodeInterpreterToolChoice`

              - `type: "code_interpreter"`

                The tool to call. Always `code_interpreter`.

                - `"code_interpreter"`

            - `ProgrammaticToolCallingToolChoice`

              - `type: "programmatic_tool_calling"`

                The tool to call. Always `programmatic_tool_calling`.

                - `"programmatic_tool_calling"`

            - `ShellToolChoice`

              Forces the model to call the shell tool when a tool call is required.

              - `type: "shell"`

                The tool to call. Always `shell`.

                - `"shell"`

            - `CustomToolChoice`

              - `name: string`

                The name of the custom tool to call.

              - `type: "custom"`

                The tool to call. Always `custom`.

                - `"custom"`

            - `ApplyPatchToolChoice`

              Forces the model to call the apply_patch tool when executing a tool call.

              - `type: "apply_patch"`

                The tool to call. Always `apply_patch`.

                - `"apply_patch"`

            - `LiveAllowedToolsChoiceParam`

              - `tools: Array<LiveFunctionToolChoiceParam | LiveMCPToolChoiceParam | FileSearchToolChoice | 9 more>`

                The tools that the delegated Responses model may call.

                `minItems: 1`, `maxItems: 128`

                - `LiveFunctionToolChoiceParam`

                  - `name: string`

                    `minLength: 1`, `maxLength: 64`

                  - `type: "function"`

                    - `"function"`

                - `LiveMCPToolChoiceParam`

                  - `name: string`

                    `minLength: 1`, `maxLength: 64`

                  - `server_label: string`

                    `minLength: 1`, `maxLength: 64`

                  - `type: "mcp"`

                    - `"mcp"`

                - `FileSearchToolChoice`

                  - `type: "file_search"`

                    The tool to call. Always `file_search`.

                    - `"file_search"`

                - `WebSearchToolChoice`

                  - `type: "web_search"`

                    The tool to call. Always `web_search`.

                    - `"web_search"`

                - `WebSearchPreview`

                  - `type: "web_search_preview"`

                    The tool to call. Always `web_search_preview`.

                    - `"web_search_preview"`

                - `ImageGenerationToolChoice`

                  - `type: "image_generation"`

                    The tool to call. Always `image_generation`.

                    - `"image_generation"`

                - `ComputerToolChoice`

                  - `type: "computer"`

                    The tool to call. Always `computer`.

                    - `"computer"`

                - `CodeInterpreterToolChoice`

                  - `type: "code_interpreter"`

                    The tool to call. Always `code_interpreter`.

                    - `"code_interpreter"`

                - `ProgrammaticToolCallingToolChoice`

                  - `type: "programmatic_tool_calling"`

                    The tool to call. Always `programmatic_tool_calling`.

                    - `"programmatic_tool_calling"`

                - `ShellToolChoice`

                  Forces the model to call the shell tool when a tool call is required.

                  - `type: "shell"`

                    The tool to call. Always `shell`.

                    - `"shell"`

                - `CustomToolChoice`

                  - `name: string`

                    The name of the custom tool to call.

                  - `type: "custom"`

                    The tool to call. Always `custom`.

                    - `"custom"`

                - `ApplyPatchToolChoice`

                  Forces the model to call the apply_patch tool when executing a tool call.

                  - `type: "apply_patch"`

                    The tool to call. Always `apply_patch`.

                    - `"apply_patch"`

              - `type: "allowed_tools"`

                The tool choice type. Always `allowed_tools`.

                - `"allowed_tools"`

              - `mode?: "none" | "auto" | "required" | null`

                How to select a tool from the allowed set.

                - `"none"`

                - `"auto"`

                - `"required"`

          - `tools?: Array<FunctionTool | WebSearch | FileSearch | 10 more>`

            Tools available to the Responses backend while it handles tasks delegated by the Live model.

            - `FunctionTool`

              A function tool available to the Responses backend when the Live model delegates a task.

              - `name: string`

                The name the delegated Responses model uses when calling this function.

              - `type: "function"`

                The tool type. Always `function`.

                - `"function"`

              - `description?: string | null`

                What the function does and when the delegated Responses model should call it.

              - `parameters?: Record<string, unknown> | null`

                A JSON Schema object describing the arguments accepted by the function.

              - `strict?: boolean | null`

                Whether the delegated Responses model must follow the function’s parameter schema exactly.

            - `WebSearch`

              A web search tool available to the Live session’s Responses backend.

              - `type: "web_search"`

                The tool type. Always `web_search`.

                - `"web_search"`

            - `FileSearch`

              - `type: "file_search"`

                - `"file_search"`

            - `CodeInterpreter`

              - `type: "code_interpreter"`

                - `"code_interpreter"`

            - `Shell`

              A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported.

              - `type: "shell"`

                - `"shell"`

              - `environment?: ContainerAuto | ContainerReference | Local | null`

                - `ContainerAuto`

                  - `type: "container_auto"`

                    Automatically creates a container for this request

                    - `"container_auto"`

                  - `file_ids?: Array<string> | null`

                    An optional list of uploaded files to make available to your code.

                    `maxItems: 50`

                  - `memory_limit?: "1g" | "4g" | "16g" | "64g" | null`

                    The memory limit for the container.

                    - `"1g"`

                    - `"4g"`

                    - `"16g"`

                    - `"64g"`

                  - `network_policy?: Disabled | Allowlist | null`

                    Network access policy for the container.

                    - `Disabled`

                      - `type: "disabled"`

                        Disable outbound network access. Always `disabled`.

                        - `"disabled"`

                    - `Allowlist`

                      - `allowed_domains: Array<string>`

                        A list of allowed domains when type is `allowlist`.

                        `minItems: 1`

                      - `type: "allowlist"`

                        Allow outbound network access only to specified domains. Always `allowlist`.

                        - `"allowlist"`

                  - `skills?: Array<SkillReference | Inline> | null`

                    An optional list of skills referenced by id or inline data.

                    `maxItems: 200`

                    - `SkillReference`

                      - `skill_id: string`

                        The ID of the referenced skill.

                        `minLength: 1`, `maxLength: 64`

                      - `type: "skill_reference"`

                        References a skill created with the /v1/skills endpoint.

                        - `"skill_reference"`

                      - `version?: string | null`

                        Optional skill version. Use a positive integer or 'latest'. Omit for default.

                    - `Inline`

                      - `description: string`

                        The description of the skill.

                      - `name: string`

                        The name of the skill.

                      - `source: Source`

                        Inline skill payload

                        - `data: string`

                          Base64-encoded skill zip bundle.

                          `minLength: 1`, `maxLength: 70254592`

                        - `media_type: "application/zip"`

                          The media type of the inline skill payload. Must be `application/zip`.

                          - `"application/zip"`

                        - `type: "base64"`

                          The type of the inline skill source. Must be `base64`.

                          - `"base64"`

                      - `type: "inline"`

                        Defines an inline skill for this request.

                        - `"inline"`

                - `ContainerReference`

                  - `container_id: string`

                    The ID of the referenced container.

                  - `type: "container_reference"`

                    References a container created with the /v1/containers endpoint

                    - `"container_reference"`

                - `Local`

                  - `type: "local"`

                    Use a local computer environment.

                    - `"local"`

                  - `skills?: Array<Skill> | null`

                    An optional list of skills.

                    `maxItems: 200`

                    - `description: string`

                      The description of the skill.

                    - `name: string`

                      The name of the skill.

                    - `path: string`

                      The path to the directory containing the skill.

            - `ImageGeneration`

              - `type: "image_generation"`

                - `"image_generation"`

            - `Mcp`

              - `type: "mcp"`

                - `"mcp"`

            - `Custom`

              - `type: "custom"`

                - `"custom"`

            - `Namespace`

              - `type: "namespace"`

                - `"namespace"`

            - `ToolSearch`

              - `type: "tool_search"`

                - `"tool_search"`

            - `ProgrammaticToolCalling`

              - `type: "programmatic_tool_calling"`

                - `"programmatic_tool_calling"`

            - `Computer`

              - `type: "computer"`

                - `"computer"`

            - `ApplyPatch`

              - `type: "apply_patch"`

                - `"apply_patch"`

        - `type: "responses"`

          The delegation owner. Always `responses` for tasks handled by the Responses API.

          - `"responses"`

        - `acknowledgement_delay_ms?: number`

          Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.

          `minimum: 0`, `maximum: 800`

      - `Decisions`

        - `decisions: DecisionsDelegationConfig`

          - `model: string`

            `minLength: 1`

          - `questions: Array<DecisionQuestion>`

            Native Decision API questions evaluated together, in order.

            `minItems: 1`, `maxItems: 64`

            - `Choice`

              - `choices: Array<DecisionChoiceOption>`

                `minItems: 2`, `maxItems: 255`

                - `value: string | boolean`

                  - `string`

                  - `boolean`

                - `description?: string`

              - `instructions: string | Array<DecisionInputText | InputImage | InputJSON>`

                - `string`

                - `Array<DecisionInputText | InputImage | InputJSON>`

                  - `DecisionInputText`

                    - `text: string`

                      The text input to the model.

                      `maxLength: 10485760`

                    - `type: "input_text"`

                      - `"input_text"`

                  - `InputImage`

                    - `image_url: string`

                      A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.

                      `maxLength: 20971520`

                    - `type: "input_image"`

                      - `"input_image"`

                    - `detail?: "low" | "high" | "auto" | "original" | null`

                      The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.

                      - `"low"`

                      - `"high"`

                      - `"auto"`

                      - `"original"`

                  - `InputJSON`

                    - `data: DecisionJSONObject | Array<DecisionJSONObject>`

                      - `DecisionJSONObject = Record<string, unknown>`

                      - `Array<DecisionJSONObject>`

                    - `type: "input_json"`

                      - `"input_json"`

              - `type: "choice"`

                - `"choice"`

              - `name?: string`

            - `Predicate`

              - `instructions: string | Array<DecisionInputText | InputImage | InputJSON>`

                - `string`

                - `Array<DecisionInputText | InputImage | InputJSON>`

                  - `DecisionInputText`

                  - `InputImage`

                    - `image_url: string`

                      A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.

                      `maxLength: 20971520`

                    - `type: "input_image"`

                      - `"input_image"`

                    - `detail?: "low" | "high" | "auto" | "original" | null`

                      The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.

                      - `"low"`

                      - `"high"`

                      - `"auto"`

                      - `"original"`

                  - `InputJSON`

                    - `data: DecisionJSONObject | Array<DecisionJSONObject>`

                      - `DecisionJSONObject = Record<string, unknown>`

                      - `Array<DecisionJSONObject>`

                    - `type: "input_json"`

                      - `"input_json"`

              - `type: "predicate"`

                - `"predicate"`

              - `name?: string`

            - `Score`

              - `instructions: string | Array<DecisionInputText | InputImage | InputJSON>`

                - `string`

                - `Array<DecisionInputText | InputImage | InputJSON>`

                  - `DecisionInputText`

                  - `InputImage`

                    - `image_url: string`

                      A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.

                      `maxLength: 20971520`

                    - `type: "input_image"`

                      - `"input_image"`

                    - `detail?: "low" | "high" | "auto" | "original" | null`

                      The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.

                      - `"low"`

                      - `"high"`

                      - `"auto"`

                      - `"original"`

                  - `InputJSON`

                    - `data: DecisionJSONObject | Array<DecisionJSONObject>`

                      - `DecisionJSONObject = Record<string, unknown>`

                      - `Array<DecisionJSONObject>`

                    - `type: "input_json"`

                      - `"input_json"`

              - `levels: Array<Level>`

                `minItems: 2`, `maxItems: 10`

                - `label: string`

                - `description?: string`

              - `type: "score"`

                - `"score"`

              - `name?: string`

        - `type: "decisions"`

          - `"decisions"`

        - `acknowledgement_delay_ms?: number`

          Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations.

          `minimum: 0`, `maximum: 800`

    - `input?: Array<InitialItem>`

      Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and a configured rendered-token limit (8,192 by default).

      `maxItems: 128`

      - `Developer`

        A developer message included in the initial text history of a Live session.

        - `content: Array<Content>`

          The message content. Supply exactly one text part for the initial Live conversation history.

          `minItems: 1`, `maxItems: 1`

          - `text: string`

            The message text to include in the Live session’s initial conversation history.

          - `type?: "input_text"`

            The text content type. Always `input_text`.

            - `"input_text"`

        - `role: "developer"`

          The author of this history message. Always `developer`.

          - `"developer"`

        - `id?: string | null`

          An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.

        - `status?: "incomplete" | "completed" | null`

          The supplied message’s status. Live uses its text as history and does not resume an incomplete message.

          - `"incomplete"`

          - `"completed"`

        - `type?: "message"`

          The history item type. Always `message`.

          - `"message"`

      - `User`

        A user message included in the initial text history of a Live session.

        - `content: Array<Content>`

          The message content. Supply exactly one text part for the initial Live conversation history.

          `minItems: 1`, `maxItems: 1`

          - `text: string`

            The message text to include in the Live session’s initial conversation history.

          - `type?: "input_text"`

            The text content type. Always `input_text`.

            - `"input_text"`

        - `role: "user"`

          The author of this history message. Always `user`.

          - `"user"`

        - `id?: string | null`

          An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.

        - `status?: "incomplete" | "completed" | null`

          The supplied message’s status. Live uses its text as history and does not resume an incomplete message.

          - `"incomplete"`

          - `"completed"`

        - `type?: "message"`

          The history item type. Always `message`.

          - `"message"`

      - `Assistant`

        An assistant message included in the initial text history of a Live session.

        - `content: Array<Text | OutputText>`

          The message content. Supply exactly one text part for the initial Live conversation history.

          `minItems: 1`, `maxItems: 1`

          - `Text`

            Assistant text supplied as conversation history when starting a Live session.

            - `text: string`

              The message text to include in the Live session’s initial conversation history.

            - `type?: "text"`

              The text content type. Always `text`.

              - `"text"`

          - `OutputText`

            Assistant output text supplied as conversation history when starting a Live session.

            - `text: string`

              The message text to include in the Live session’s initial conversation history.

            - `type: "output_text"`

              The text content type. Always `output_text`.

              - `"output_text"`

        - `role: "assistant"`

          The author of this history message. Always `assistant`.

          - `"assistant"`

        - `id?: string | null`

          An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.

        - `status?: "incomplete" | "completed" | null`

          The supplied message’s status. Live uses its text as history and does not resume an incomplete message.

          - `"incomplete"`

          - `"completed"`

        - `type?: "message"`

          The history item type. Always `message`.

          - `"message"`

    - `instructions?: string | null`

      Frontend instructions for voice, conversation, interruptions, and when to delegate. Start with the [Live prompting guide](/api/docs/guides/live-prompting); put business rules and tool workflows in a separate [backend prompt](/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt). Limited to 16,384 client-supplied tokens. Omitted or blank instructions use server defaults. Immutable after startup.

    - `store?: boolean`

      Whether to store the session for later forking and recording download. Defaults to false for new sessions.

    - `triggers?: Array<DecisionTrigger>`

      At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.

      `maxItems: 2`

      - `decisions: Decisions`

        Questions evaluated using the current transcript and the session's shared Decision items.

        - `questions: Array<DecisionQuestion>`

          Native Decision API questions evaluated together, in order.

          `minItems: 1`, `maxItems: 64`

          - `Choice`

          - `Predicate`

          - `Score`

      - `event_type: "session.input_transcript.delta" | "session.output_transcript.delta"`

        - `"session.input_transcript.delta"`

        - `"session.output_transcript.delta"`

      - `type: "decisions"`

        - `"decisions"`

### Example

```typescript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});

await client.live.sessions.accept('session_id', { session: { model: 'gpt-live-1', type: 'live' } });
```
