8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `name: string`13- `name: string`
12 14
13- `expires_in_seconds: optional integer`15- `expires_in_seconds: optional integer`
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `name: string`13- `name: string`
12 14
13- `expires_in_seconds: optional integer`15- `expires_in_seconds: optional integer`
10 10
11### Body Parameters11### Body Parameters
12 12
13Content type: `application/json`
14
13- `certificate_ids: array of string`15- `certificate_ids: array of string`
14 16
15 `minItems: 1`, `maxItems: 10`17 `minItems: 1`, `maxItems: 10`
10 10
11### Body Parameters11### Body Parameters
12 12
13Content type: `application/json`
14
13- `certificate: string`15- `certificate: string`
14 16
15 The certificate content in PEM format17 The certificate content in PEM format
10 10
11### Body Parameters11### Body Parameters
12 12
13Content type: `application/json`
14
13- `certificate_ids: array of string`15- `certificate_ids: array of string`
14 16
15 `minItems: 1`, `maxItems: 10`17 `minItems: 1`, `maxItems: 10`
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `name: optional string`19- `name: optional string`
18 20
19 The updated name for the certificate21 The updated name for the certificate
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `retention_type: "zero_data_retention" or "modified_abuse_monitoring" or "enhanced_zero_data_retention" or "enhanced_modified_abuse_monitoring"`13- `retention_type: "zero_data_retention" or "modified_abuse_monitoring" or "enhanced_zero_data_retention" or "enhanced_modified_abuse_monitoring"`
12 14
13 The desired organization data retention type.15 The desired organization data retention type.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `body: Aws { external_id, kms_arn, name, 3 more } or Gcp { audience, kms_key_location, kms_key_name, 9 more } or Azure { key_name, name, tenant_id, 4 more }`13- `body: Aws { external_id, kms_arn, name, 3 more } or Gcp { audience, kms_key_location, kms_key_name, 9 more } or Azure { key_name, name, tenant_id, 4 more }`
12 14
13 - `Aws object { external_id, kms_arn, name, 3 more }`15 - `Aws object { external_id, kms_arn, name, 3 more }`
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `project_id: string`13- `project_id: string`
12 14
13- `provider: Aws { bucket, role_arn, type } or Azure { account_name, container, resource_group, 3 more } or Gcp { bucket, type, workload_identity_pool_id, 2 more } or Oci { bucket, region, tenancy_ocid, type }`15- `provider: Aws { bucket, role_arn, type } or Azure { account_name, container, resource_group, 3 more } or Gcp { bucket, type, workload_identity_pool_id, 2 more } or Oci { bucket, region, tenancy_ocid, type }`
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `name: string`13- `name: string`
12 14
13 Human readable name for the group.15 Human readable name for the group.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `name: string`19- `name: string`
18 20
19 New display name for the group.21 New display name for the group.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `role_id: string`19- `role_id: string`
18 20
19 Identifier of the role to assign.21 Identifier of the role to assign.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `user_id: string`19- `user_id: string`
18 20
19 Identifier of the user to add to the group.21 Identifier of the user to add to the group.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `email: string`13- `email: string`
12 14
13 Send an email to this address15 Send an email to this address
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `name: string`13- `name: string`
12 14
13 The friendly name of the project, this name appears in reports.15 The friendly name of the project, this name appears in reports.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `external_key_id: optional string or null`19- `external_key_id: optional string or null`
18 20
19 External key ID to associate with the project.21 External key ID to associate with the project.
34 34
35### Body Parameters35### Body Parameters
36 36
37Content type: `application/json`
38
37- `expires_in_seconds: optional integer`39- `expires_in_seconds: optional integer`
38 40
39 Number of seconds from this request until the API key expires. Must comply with the organization and project expiry policies. Expired keys cannot be updated. Retrying resets the expiry relative to the new request. Omit to keep the current expiration.41 Number of seconds from this request until the API key expires. Must comply with the organization and project expiry policies. Expired keys cannot be updated. Retrying resets the expiry relative to the new request. Omit to keep the current expiration.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `certificate_ids: array of string`21- `certificate_ids: array of string`
20 22
21 `minItems: 1`, `maxItems: 10`23 `minItems: 1`, `maxItems: 10`
15 15
16### Body Parameters16### Body Parameters
17 17
18Content type: `application/json`
19
18- `certificate_ids: array of string`20- `certificate_ids: array of string`
19 21
20 `minItems: 1`, `maxItems: 10`22 `minItems: 1`, `maxItems: 10`
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `retention_type: "organization_default" or "none" or "zero_data_retention" or 3 more`19- `retention_type: "organization_default" or "none" or "zero_data_retention" or 3 more`
18 20
19 The desired project data retention type.21 The desired project data retention type.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `group_id: string`19- `group_id: string`
18 20
19 Identifier of the group to add to the project.21 Identifier of the group to add to the project.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `role_id: string`23- `role_id: string`
22 24
23 Identifier of the role to assign.25 Identifier of the role to assign.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `code_interpreter: optional object { enabled } or null`19- `code_interpreter: optional object { enabled } or null`
18 20
19 The code interpreter permission update.21 The code interpreter permission update.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `mode: "allow_list" or "deny_list"`19- `mode: "allow_list" or "deny_list"`
18 20
19 The model permissions mode to apply.21 The model permissions mode to apply.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `batch_1_day_max_input_tokens: optional integer`23- `batch_1_day_max_input_tokens: optional integer`
22 24
23 The maximum batch input tokens per day. Only relevant for certain models.25 The maximum batch input tokens per day. Only relevant for certain models.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `permissions: array of string`19- `permissions: array of string`
18 20
19 Permissions to grant to the role.21 Permissions to grant to the role.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `description: optional string or null`23- `description: optional string or null`
22 24
23 New description for the role.25 New description for the role.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `name: string`19- `name: string`
18 20
19 The name of the service account being created.21 The name of the service account being created.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `name: optional string`23- `name: optional string`
22 24
23 The updated service account name.25 The updated service account name.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `expires_in_seconds: optional integer or null`23- `expires_in_seconds: optional integer or null`
22 24
23 Number of seconds until the API key expires.25 Number of seconds until the API key expires.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `currency: "USD"`19- `currency: "USD"`
18 20
19 The currency for the threshold amount.21 The currency for the threshold amount.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `currency: "USD"`23- `currency: "USD"`
22 24
23 The currency for the threshold amount.25 The currency for the threshold amount.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `currency: "USD"`19- `currency: "USD"`
18 20
19 The currency for the threshold amount. Currently, only `USD` is supported.21 The currency for the threshold amount. Currently, only `USD` is supported.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `role: string`19- `role: string`
18 20
19 `owner` or `member`21 `owner` or `member`
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `role: optional string or null`23- `role: optional string or null`
22 24
23 `owner` or `member`25 `owner` or `member`
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `role_id: string`23- `role_id: string`
22 24
23 Identifier of the role to assign.25 Identifier of the role to assign.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `permissions: array of string`13- `permissions: array of string`
12 14
13 Permissions to grant to the role.15 Permissions to grant to the role.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `description: optional string or null`19- `description: optional string or null`
18 20
19 New description for the role.21 New description for the role.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `currency: "USD"`13- `currency: "USD"`
12 14
13 The currency for the threshold amount.15 The currency for the threshold amount.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `currency: "USD"`19- `currency: "USD"`
18 20
19 The currency for the threshold amount.21 The currency for the threshold amount.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `currency: "USD"`13- `currency: "USD"`
12 14
13 The currency for the threshold amount. Currently, only `USD` is supported.15 The currency for the threshold amount. Currently, only `USD` is supported.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `developer_persona: optional string or null`19- `developer_persona: optional string or null`
18 20
19 Developer persona metadata.21 Developer persona metadata.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `role_id: string`19- `role_id: string`
18 20
19 Identifier of the role to assign.21 Identifier of the role to assign.
17 17
18### Body Parameters18### Body Parameters
19 19
20Content type: `application/json`
21
20- `input: string`22- `input: string`
21 23
22 The text to generate audio for. The maximum length is 4096 characters.24 The text to generate audio for. The maximum length is 4096 characters.
10format, plain text in `text`, `srt`, or `vtt` format, or a stream of10format, plain text in `text`, `srt`, or `vtt` format, or a stream of
11transcript events. Supported formats depend on the model.11transcript events. Supported formats depend on the model.
12 12
13### Body Parameters
14
15Content type: `multipart/form-data`
16
17- `file: string`
18
19 The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
20 The request must include enough format metadata for the file to be identified. We recommend an extension-bearing filename and an appropriate content type.
21
22- `model: string or AudioModel`
23
24 ID of the model to use. The options are `gpt-transcribe`, `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.
25
26 - `string`
27
28 - `AudioModel = "whisper-1" or "gpt-transcribe" or "gpt-4o-transcribe" or 3 more`
29
30 - `"whisper-1"`
31
32 - `"gpt-transcribe"`
33
34 - `"gpt-4o-transcribe"`
35
36 - `"gpt-4o-mini-transcribe"`
37
38 - `"gpt-4o-mini-transcribe-2025-12-15"`
39
40 - `"gpt-4o-transcribe-diarize"`
41
42- `chunking_strategy: optional "auto" or VadConfig { type, prefix_padding_ms, silence_duration_ms, threshold } or null`
43
44 Controls how the audio is cut into chunks. When set to `"auto"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection parameters manually. If unset, the audio is transcribed as a single block. Required when using `gpt-4o-transcribe-diarize` for inputs longer than 30 seconds.
45
46 - `"auto"`
47
48 Automatically set chunking parameters based on the audio. Must be set to `"auto"`.
49
50 - `"auto"`
51
52 - `VadConfig object { type, prefix_padding_ms, silence_duration_ms, threshold }`
53
54 - `type: "server_vad"`
55
56 Must be set to `server_vad` to enable manual chunking using server side VAD.
57
58 - `"server_vad"`
59
60 - `prefix_padding_ms: optional integer (default: 300)`
61
62 Amount of audio to include before the VAD detected speech (in
63 milliseconds).
64
65 - `silence_duration_ms: optional integer (default: 200)`
66
67 Duration of silence to detect speech stop (in milliseconds).
68 With shorter values the model will respond more quickly,
69 but may jump in on short pauses from the user.
70
71 - `threshold: optional number (default: 0.5)`
72
73 Sensitivity threshold (0.0 to 1.0) for voice activity detection. A
74 higher threshold will require louder audio to activate the model, and
75 thus might perform better in noisy environments.
76
77- `include: optional array of TranscriptionInclude`
78
79 Additional information to include in the transcription response.
80 `logprobs` will return the log probabilities of the tokens in the
81 response to understand the model's confidence in the transcription.
82 `logprobs` only works with response_format set to `json` and only with
83 the models `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `gpt-4o-mini-transcribe-2025-12-15`. This field is not supported when using `gpt-4o-transcribe-diarize`.
84
85 - `"logprobs"`
86
87- `keywords: optional array of string`
88
89 Words or phrases to guide transcription of the input audio. Supported by `gpt-transcribe`.
90
91- `known_speaker_names: optional array of string`
92
93 Optional list of speaker names that correspond to the audio samples provided in `known_speaker_references[]`. Each entry should be a short identifier (for example `customer` or `agent`). Up to 4 speakers are supported.
94
95 `maxItems: 4`
96
97- `known_speaker_references: optional array of string`
98
99 Optional list of audio samples (as [data URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs)) that contain known speaker references matching `known_speaker_names[]`. Each sample must be between 2 and 10 seconds, and can use any of the same input audio formats supported by `file`.
100
101 `maxItems: 4`
102
103- `language: optional string`
104
105 The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format will improve accuracy and latency.
106
107- `languages: optional array of string`
108
109 Possible languages of the input audio, in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. Supported by `gpt-transcribe`.
110
111 `minItems: 1`
112
113- `prompt: optional string`
114
115 An optional text to guide the model's style or continue a previous audio segment. The [prompt](/api/docs/guides/speech-to-text#prompting) should match the audio language. This field is not supported when using `gpt-4o-transcribe-diarize`.
116
117- `response_format: optional AudioResponseFormat (default: "json")`
118
119 The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, `vtt`, or `diarized_json`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, the only supported format is `json`. For `gpt-4o-transcribe-diarize`, the supported formats are `json`, `text`, and `diarized_json`, with `diarized_json` required to receive speaker annotations.
120
121 - `"json"`
122
123 - `"text"`
124
125 - `"srt"`
126
127 - `"verbose_json"`
128
129 - `"vtt"`
130
131 - `"diarized_json"`
132
133- `stream: optional boolean or null (default: false)`
134
135 If set to true, the model response data will be streamed to the client
136 as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
137 See the [Streaming section of the Speech-to-Text guide](/api/docs/guides/speech-to-text?lang=curl#streaming)
138 for more information.
139
140 Note: Streaming is not supported for the `whisper-1` model and will be ignored.
141
142- `temperature: optional number (default: 0)`
143
144 The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.
145
146- `timestamp_granularities: optional array of "word" or "segment" (default: ["segment"])`
147
148 The timestamp granularities to populate for this transcription. `response_format` must be set `verbose_json` to use timestamp granularities. Either or both of these options are supported: `word`, or `segment`. Note: There is no additional latency for segment timestamps, but generating word timestamps incurs additional latency.
149 This option is not available for `gpt-4o-transcribe-diarize`.
150
151 - `"word"`
152
153 - `"segment"`
154
13### Returns155### Returns
14 156
15- `Transcription object { text, languages, logprobs, usage }`157- `Transcription object { text, languages, logprobs, usage }`
12[deprecation schedule](https://developers.openai.com/api/docs/deprecations)12[deprecation schedule](https://developers.openai.com/api/docs/deprecations)
13for details.13for details.
14 14
15### Body Parameters
16
17Content type: `multipart/form-data`
18
19- `file: string`
20
21 The audio file object (not file name) translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough format metadata for the file to be identified. We recommend an extension-bearing filename and an appropriate content type.
22
23- `model: string or AudioModel`
24
25 ID of the model to use. Only `whisper-1` (which is powered by our open source Whisper V2 model) is currently available.
26
27 - `string`
28
29 - `AudioModel = "whisper-1" or "gpt-transcribe" or "gpt-4o-transcribe" or 3 more`
30
31 - `"whisper-1"`
32
33 - `"gpt-transcribe"`
34
35 - `"gpt-4o-transcribe"`
36
37 - `"gpt-4o-mini-transcribe"`
38
39 - `"gpt-4o-mini-transcribe-2025-12-15"`
40
41 - `"gpt-4o-transcribe-diarize"`
42
43- `prompt: optional string`
44
45 An optional text to guide the model's style or continue a previous audio segment. The [prompt](/api/docs/guides/speech-to-text#prompting) should be in English.
46
47- `response_format: optional "json" or "text" or "srt" or 2 more (default: "json")`
48
49 The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
50
51 - `"json"`
52
53 - `"text"`
54
55 - `"srt"`
56
57 - `"verbose_json"`
58
59 - `"vtt"`
60
61- `temperature: optional number (default: 0)`
62
63 The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.
64
15### Returns65### Returns
16 66
17- `Translation object { text }`67- `Translation object { text }`
6 6
7Upload a voice consent recording.7Upload a voice consent recording.
8 8
9### Body Parameters
10
11Content type: `multipart/form-data`
12
13- `language: string`
14
15 The BCP 47 language tag for the consent phrase (for example, `en-US`).
16
17- `name: string`
18
19 The label to use for this consent recording.
20
21- `recording: string`
22
23 The consent audio recording file. Maximum size is 10 MiB.
24
25 Supported MIME types:
26 `audio/mpeg`, `audio/wav`, `audio/x-wav`, `audio/ogg`, `audio/aac`, `audio/flac`, `audio/webm`, `audio/mp4`.
27
9### Returns28### Returns
10 29
11- `VoiceConsent object { id, created_at, language, 2 more }`30- `VoiceConsent object { id, created_at, language, 2 more }`
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `name: string`19- `name: string`
18 20
19 The updated label for this consent recording.21 The updated label for this consent recording.
12 12
13### Body Parameters13### Body Parameters
14 14
15Content type: `application/json`
16
15- `name: string`17- `name: string`
16 18
17 The name of the new voice.19 The name of the new voice.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `completion_window: "24h"`13- `completion_window: "24h"`
12 14
13 The time frame within which the batch should be processed. Currently only `24h` is supported.15 The time frame within which the batch should be processed. Currently only `24h` is supported.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `model: string`13- `model: string`
12 14
13 The model to use for the agent. The requested model name is preserved.15 The model to use for the agent. The requested model name is preserved.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `compaction: optional object { async } or null`21- `compaction: optional object { async } or null`
20 22
21 Context compaction settings. Omit to keep the current settings. A supplied object replaces the settings; null or an empty object enables background compaction.23 Context compaction settings. Omit to keep the current settings. A supplied object replaces the settings; null or an empty object enables background compaction.
1480 1480
1481 `minItems: 0`, `maxItems: 2000`1481 `minItems: 0`, `maxItems: 2000`
1482 1482
1483 - `review: optional "none" or "auto_review"`
1484
1485 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
1486
1487 - `"none"`
1488
1489 - `"auto_review"`
1490
1483- `type: "agent.session.created" (default: "agent.session.created")`1491- `type: "agent.session.created" (default: "agent.session.created")`
1484 1492
1485 The type of the object. Always `agent.session.created`.1493 The type of the object. Always `agent.session.created`.
1493 "type": "agent.session.created",1501 "type": "agent.session.created",
1494 "event_id": "event_id",1502 "event_id": "event_id",
1495 "session": {1503 "session": {
1504 "review": "none",
1496 "metadata": {1505 "metadata": {
1497 "foo": "string"1506 "foo": "string"
1498 },1507 },
3984 3993
3985 - `"create_subagent_call"`3994 - `"create_subagent_call"`
3986 3995
3987 The current public item type.
3988
3989 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`3996 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`
3990 3997
3991 A request to send input to another agent.3998 A request to send input to another agent.
4038 4045
4039 - `"send_subagent_input_call"`4046 - `"send_subagent_input_call"`
4040 4047
4041 The current public item type.
4042
4043 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`4048 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
4044 4049
4045 A request to resume a subagent.4050 A request to resume a subagent.
4078 4083
4079 - `"resume_subagent_call"`4084 - `"resume_subagent_call"`
4080 4085
4081 The current public item type.
4082
4083 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`4086 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`
4084 4087
4085 A request to wait for one or more subagents.4088 A request to wait for one or more subagents.
4118 4121
4119 - `"wait_for_subagents_call"`4122 - `"wait_for_subagents_call"`
4120 4123
4121 The current public item type.
4122
4123 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`4124 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
4124 4125
4125 A request to interrupt a subagent's current turn. The subagent remains available.4126 A request to interrupt a subagent's current turn. The subagent remains available.
4158 4159
4159 - `"interrupt_subagent_call"`4160 - `"interrupt_subagent_call"`
4160 4161
4161 The current public item type.
4162
4163 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`4162 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
4164 4163
4165 A request to close a subagent.4164 A request to close a subagent.
4198 4197
4199 - `"close_subagent_call"`4198 - `"close_subagent_call"`
4200 4199
4201 The current public item type.
4202
4203- `output_index: integer or null`4200- `output_index: integer or null`
4204 4201
4205 The index of the item in the turn output, when the item is agent output.4202 The index of the item in the turn output, when the item is agent output.
5228 5225
5229 `minItems: 0`, `maxItems: 2000`5226 `minItems: 0`, `maxItems: 2000`
5230 5227
5228 - `review: optional "none" or "auto_review"`
5229
5230 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
5231
5232 - `"none"`
5233
5234 - `"auto_review"`
5235
5231- `type: "agent.session.idle" (default: "agent.session.idle")`5236- `type: "agent.session.idle" (default: "agent.session.idle")`
5232 5237
5233 The type of the object. Always `agent.session.idle`.5238 The type of the object. Always `agent.session.idle`.
5241 "type": "agent.session.idle",5246 "type": "agent.session.idle",
5242 "event_id": "event_id",5247 "event_id": "event_id",
5243 "session": {5248 "session": {
5249 "review": "none",
5244 "metadata": {5250 "metadata": {
5245 "foo": "string"5251 "foo": "string"
5246 },5252 },
6316 6322
6317 `minItems: 0`, `maxItems: 2000`6323 `minItems: 0`, `maxItems: 2000`
6318 6324
6325 - `review: optional "none" or "auto_review"`
6326
6327 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
6328
6329 - `"none"`
6330
6331 - `"auto_review"`
6332
6319- `type: "agent.session.in_progress" (default: "agent.session.in_progress")`6333- `type: "agent.session.in_progress" (default: "agent.session.in_progress")`
6320 6334
6321 The type of the object. Always `agent.session.in_progress`.6335 The type of the object. Always `agent.session.in_progress`.
6329 "type": "agent.session.in_progress",6343 "type": "agent.session.in_progress",
6330 "event_id": "event_id",6344 "event_id": "event_id",
6331 "session": {6345 "session": {
6346 "review": "none",
6332 "metadata": {6347 "metadata": {
6333 "foo": "string"6348 "foo": "string"
6334 },6349 },
7404 7419
7405 `minItems: 0`, `maxItems: 2000`7420 `minItems: 0`, `maxItems: 2000`
7406 7421
7422 - `review: optional "none" or "auto_review"`
7423
7424 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
7425
7426 - `"none"`
7427
7428 - `"auto_review"`
7429
7407- `type: "agent.session.requires_action" (default: "agent.session.requires_action")`7430- `type: "agent.session.requires_action" (default: "agent.session.requires_action")`
7408 7431
7409 The type of the object. Always `agent.session.requires_action`.7432 The type of the object. Always `agent.session.requires_action`.
7417 "type": "agent.session.requires_action",7440 "type": "agent.session.requires_action",
7418 "event_id": "event_id",7441 "event_id": "event_id",
7419 "session": {7442 "session": {
7443 "review": "none",
7420 "metadata": {7444 "metadata": {
7421 "foo": "string"7445 "foo": "string"
7422 },7446 },
8492 8516
8493 `minItems: 0`, `maxItems: 2000`8517 `minItems: 0`, `maxItems: 2000`
8494 8518
8519 - `review: optional "none" or "auto_review"`
8520
8521 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
8522
8523 - `"none"`
8524
8525 - `"auto_review"`
8526
8495- `type: "agent.session.failed" (default: "agent.session.failed")`8527- `type: "agent.session.failed" (default: "agent.session.failed")`
8496 8528
8497 The type of the object. Always `agent.session.failed`.8529 The type of the object. Always `agent.session.failed`.
8505 "type": "agent.session.failed",8537 "type": "agent.session.failed",
8506 "event_id": "event_id",8538 "event_id": "event_id",
8507 "session": {8539 "session": {
8540 "review": "none",
8508 "metadata": {8541 "metadata": {
8509 "foo": "string"8542 "foo": "string"
8510 },8543 },
10159 10192
10160 - `"create_subagent_call"`10193 - `"create_subagent_call"`
10161 10194
10162 The current public item type.
10163
10164 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`10195 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`
10165 10196
10166 A request to send input to another agent.10197 A request to send input to another agent.
10213 10244
10214 - `"send_subagent_input_call"`10245 - `"send_subagent_input_call"`
10215 10246
10216 The current public item type.
10217
10218 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`10247 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
10219 10248
10220 A request to resume a subagent.10249 A request to resume a subagent.
10253 10282
10254 - `"resume_subagent_call"`10283 - `"resume_subagent_call"`
10255 10284
10256 The current public item type.
10257
10258 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`10285 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`
10259 10286
10260 A request to wait for one or more subagents.10287 A request to wait for one or more subagents.
10293 10320
10294 - `"wait_for_subagents_call"`10321 - `"wait_for_subagents_call"`
10295 10322
10296 The current public item type.
10297
10298 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`10323 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
10299 10324
10300 A request to interrupt a subagent's current turn. The subagent remains available.10325 A request to interrupt a subagent's current turn. The subagent remains available.
10333 10358
10334 - `"interrupt_subagent_call"`10359 - `"interrupt_subagent_call"`
10335 10360
10336 The current public item type.
10337
10338 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`10361 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
10339 10362
10340 A request to close a subagent.10363 A request to close a subagent.
10373 10396
10374 - `"close_subagent_call"`10397 - `"close_subagent_call"`
10375 10398
10376 The current public item type.
10377
10378- `output_index: integer`10399- `output_index: integer`
10379 10400
10380 The index of the output item in the turn output.10401 The index of the output item in the turn output.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `create_automation_params: AutomationScheduleParam`13- `create_automation_params: AutomationScheduleParam`
12 14
13 Creates an automation without invoking it immediately.15 Creates an automation without invoking it immediately.
236 238
237 - `"application/zip"`239 - `"application/zip"`
238 240
239 A ZIP archive.
240
241 - `type: "base64" (default: "base64")`241 - `type: "base64" (default: "base64")`
242 242
243 The type of the object. Always `base64`.243 The type of the object. Always `base64`.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `expression: optional string`19- `expression: optional string`
18 20
19 Only accepted for periodic automations.21 Only accepted for periodic automations.
244 246
245 - `"application/zip"`247 - `"application/zip"`
246 248
247 A ZIP archive.
248
249 - `type: "base64" (default: "base64")`249 - `type: "base64" (default: "base64")`
250 250
251 The type of the object. Always `base64`.251 The type of the object. Always `base64`.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `environment: object { type, capability_directories, desktop, 8 more }`19- `environment: object { type, capability_directories, desktop, 8 more }`
18 20
19 The required hosting type and its configuration.21 The required hosting type and its configuration.
186 188
187 - `"application/zip"`189 - `"application/zip"`
188 190
189 A ZIP archive.
190
191 - `type: "base64" (default: "base64")`191 - `type: "base64" (default: "base64")`
192 192
193 The type of the object. Always `base64`.193 The type of the object. Always `base64`.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `hosted_environment_file_param: HostedEnvironmentFileParam`21- `hosted_environment_file_param: HostedEnvironmentFileParam`
20 22
21 A file materialized in an OpenAI-hosted execution environment.23 A file materialized in an OpenAI-hosted execution environment.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `capability_directories: optional array of string or null`13- `capability_directories: optional array of string or null`
12 14
13 Directories that contain capabilities exposed to the agent. Defaults to an empty list.15 Directories that contain capabilities exposed to the agent. Defaults to an empty list.
170 172
171 - `"application/zip"`173 - `"application/zip"`
172 174
173 A ZIP archive.
174
175 - `type: "base64" (default: "base64")`175 - `type: "base64" (default: "base64")`
176 176
177 The type of the object. Always `base64`.177 The type of the object. Always `base64`.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `capability_directories: optional array of string or null`21- `capability_directories: optional array of string or null`
20 22
21 Directories that expose capabilities to the agent.23 Directories that expose capabilities to the agent.
178 180
179 - `"application/zip"`181 - `"application/zip"`
180 182
181 A ZIP archive.
182
183 - `type: "base64" (default: "base64")`183 - `type: "base64" (default: "base64")`
184 184
185 The type of the object. Always `base64`.185 The type of the object. Always `base64`.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `environment: EnvironmentParam`13- `environment: EnvironmentParam`
12 14
13 An inline execution environment or a reference to an environment template.15 An inline execution environment or a reference to an environment template.
210 212
211 - `"application/zip"`213 - `"application/zip"`
212 214
213 A ZIP archive.
214
215 - `type: "base64" (default: "base64")`215 - `type: "base64" (default: "base64")`
216 216
217 The type of the object. Always `base64`.217 The type of the object. Always `base64`.
820 820
821 Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. Omission or null defaults to an empty map.821 Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. Omission or null defaults to an empty map.
822 822
823- `review: optional "none" or "auto_review"`
824
825 Action review mode. Omit to use none.
826
827 - `"none"`
828
829 Keep the existing execution behavior without automatic action review.
830
831 - `"auto_review"`
832
833 Review eligible actions automatically. Deny manual approval fallbacks.
834
823- `stream: optional boolean (default: false)`835- `stream: optional boolean (default: false)`
824 836
825 Whether to stream session events as server-sent events. Defaults to `false`.837 Whether to stream session events as server-sent events. Defaults to `false`.
832 844
833### Returns845### Returns
834 846
835847- `AgentSession object { id, agent, created_at, 9 more }`- `AgentSession object { id, agent, created_at, 10 more }`
836 848
837 A Managed Agents session.849 A Managed Agents session.
838 850
1794 1806
1795 `minItems: 0`, `maxItems: 2000`1807 `minItems: 0`, `maxItems: 2000`
1796 1808
1809 - `review: optional "none" or "auto_review"`
1810
1811 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
1812
1813 - `"none"`
1814
1815 - `"auto_review"`
1816
1797### Example1817### Example
1798 1818
1799```http1819```http
1904 },1924 },
1905 "vault_ids": [1925 "vault_ids": [
1906 "string"1926 "string"
19071927 ] ],
1928 "review": "none"
1908}1929}
1909```1930```
1008 1008
1009 `minItems: 0`, `maxItems: 2000`1009 `minItems: 0`, `maxItems: 2000`
1010 1010
1011 - `review: optional "none" or "auto_review"`
1012
1013 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
1014
1015 - `"none"`
1016
1017 - `"auto_review"`
1018
1011- `first_id: string or null`1019- `first_id: string or null`
1012 1020
1013 The ID of the first resource in `data`, or `null` if the page is empty.1021 The ID of the first resource in `data`, or `null` if the page is empty.
1136 },1144 },
1137 "vault_ids": [1145 "vault_ids": [
1138 "string"1146 "string"
11391147 ] ],
1148 "review": "none"
1140 }1149 }
1141 ],1150 ],
1142 "first_id": "first_id",1151 "first_id": "first_id",
16 16
17### Returns17### Returns
18 18
1919- `AgentSession object { id, agent, created_at, 9 more }`- `AgentSession object { id, agent, created_at, 10 more }`
20 20
21 A Managed Agents session.21 A Managed Agents session.
22 22
978 978
979 `minItems: 0`, `maxItems: 2000`979 `minItems: 0`, `maxItems: 2000`
980 980
981 - `review: optional "none" or "auto_review"`
982
983 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
984
985 - `"none"`
986
987 - `"auto_review"`
988
981### Example989### Example
982 990
983```http991```http
1082 },1090 },
1083 "vault_ids": [1091 "vault_ids": [
1084 "string"1092 "string"
10851093 ] ],
1094 "review": "none"
1086}1095}
1087```1096```
4 4
5**post** `/agents/sessions/{session_id}`5**post** `/agents/sessions/{session_id}`
6 6
77Updates session metadata, model, reasoning effort, or service tier. Model settings apply to subsequent turns. Omitted fields are unchanged. See [managing sessions](/api/docs/guides/agents-api/sessions/manage).Updates session tools, metadata, model, reasoning effort, or service tier. Model settings apply to subsequent turns. Omitted fields are unchanged. See [managing sessions](/api/docs/guides/agents-api/sessions/manage).
8 8
9### Path Parameters9### Path Parameters
10 10
16 16
17### Body Parameters17### Body Parameters
18 18
1919- `agent: optional object { model, reasoning, service_tier }`Content type: `application/json`
20 20
2121 Model settings for subsequent turns. Omitted fields stay unchanged.- `agent: optional object { model, reasoning, service_tier, tools }`
22
23 Agent settings to update on this session. Omitted fields stay unchanged.
22 24
23 - `model: optional string`25 - `model: optional string`
24 26
76 78
77 Uses the ultrafast service tier.79 Uses the ultrafast service tier.
78 80
81 - `tools: optional array of AgentToolParam or null`
82
83 Replaces the session tools. Functions and MCP servers change on the next model call. Built-in tools change by the next turn. Omit to keep the current tools, or pass null or an empty array to clear them.
84
85 `minItems: 0`, `maxItems: 16384`
86
87 - `Function object { description, name, parameters, 2 more }`
88
89 A function defined by the application.
90
91 - `description: string`
92
93 A description of what the function does.
94
95 `minLength: 0`, `maxLength: 1048576`
96
97 - `name: string`
98
99 The name of the function.
100
101 `minLength: 0`, `maxLength: 1048576`
102
103 - `parameters: map[unknown]`
104
105 A JSON Schema object describing the function's arguments.
106
107 - `type: "function" (default: "function")`
108
109 The type of the object. Always `function`.
110
111 - `"function"`
112
113 - `defer_loading: optional boolean (default: false)`
114
115 Whether this function is deferred and discovered through tool search. Defaults to `false`.
116
117 - `ToolSearch object { type }`
118
119 Discovers deferred function tools and loads them into the model context.
120
121 - `type: "tool_search" (default: "tool_search")`
122
123 The type of the object. Always `tool_search`.
124
125 - `"tool_search"`
126
127 - `ProgrammaticToolCalling object { type, enabled }`
128
129 Enables calling tools from model-generated code.
130
131 - `type: "programmatic_tool_calling" (default: "programmatic_tool_calling")`
132
133 The type of the object. Always `programmatic_tool_calling`.
134
135 - `"programmatic_tool_calling"`
136
137 - `enabled: optional boolean (default: true)`
138
139 Whether tools can be called from model-generated code. Defaults to `true`.
140
141 - `Mcp object { server_label, transport, type, 5 more }`
142
143 Tools provided by a remote MCP server.
144
145 - `server_label: string`
146
147 A label used to identify the MCP server in tool calls.
148
149 `minLength: 0`, `maxLength: 1048576`
150
151 - `transport: McpTransportParam`
152
153 The transport used to connect to the MCP server.
154
155 - `HTTP object { server_url, type, authorization, headers }`
156
157 Connects to an MCP server over HTTP.
158
159 - `server_url: string`
160
161 The URL of the MCP server.
162
163 `minLength: 0`, `maxLength: 1048576`
164
165 - `type: "http" (default: "http")`
166
167 The type of the object. Always `http`.
168
169 - `"http"`
170
171 - `authorization: optional string or null`
172
173 The authorization value sent to the MCP server, if any.
174
175 `minLength: 0`, `maxLength: 1048576`
176
177 - `headers: optional map[string] or null`
178
179 Additional HTTP headers sent to the MCP server.
180
181 - `Stdio object { command, cwd, type, 3 more }`
182
183 Starts an MCP server as a local process.
184
185 - `command: string`
186
187 The command used to start the MCP server.
188
189 `minLength: 0`, `maxLength: 1048576`
190
191 - `cwd: string`
192
193 The working directory used to start the MCP server.
194
195 `minLength: 0`, `maxLength: 1048576`
196
197 - `type: "stdio" (default: "stdio")`
198
199 The type of the object. Always `stdio`.
200
201 - `"stdio"`
202
203 - `args: optional array of string or null`
204
205 Arguments passed to the MCP server command.
206
207 `minItems: 0`, `maxItems: 16384`
208
209 - `env: optional map[string] or null`
210
211 Environment variables set for the MCP server process.
212
213 - `env_vars: optional array of string or null`
214
215 Environment variable names to inherit from the selected execution environment.
216
217 `minItems: 0`, `maxItems: 16384`
218
219 - `type: "mcp" (default: "mcp")`
220
221 The type of the object. Always `mcp`.
222
223 - `"mcp"`
224
225 - `allowed_tools: optional array of string or null`
226
227 The MCP tools the agent may call. All server tools are allowed when omitted.
228
229 `minItems: 0`, `maxItems: 16384`
230
231 - `connection_origin: optional "service" or "environment" or null`
232
233 Selects where outbound MCP HTTP connections originate. Omitted or `service` uses the Managed Agents service network; `environment` uses the session's selected environment.
234
235 - `"service"`
236
237 Uses the Managed Agents service network.
238
239 - `"environment"`
240
241 Uses the session's execution environment.
242
243 - `credential_id: optional string or null`
244
245 The attached vault credential used to authenticate this MCP server. Optional when exactly one attached credential matches the server URL.
246
247 `minLength: 0`, `maxLength: 1048576`
248
249 - `request_metadata: optional map[unknown] or null`
250
251 Metadata included with requests to this MCP server.
252
253 - `required: optional boolean (default: false)`
254
255 Whether this MCP server must initialize before the first turn. Defaults to `false`.
256
257 - `WebSearch object { type, allowed_domains, context_size, 2 more }`
258
259 Web search.
260
261 - `type: "web_search" (default: "web_search")`
262
263 The type of the object. Always `web_search`.
264
265 - `"web_search"`
266
267 - `allowed_domains: optional array of string or null`
268
269 Domains the search may include.
270
271 `minItems: 0`, `maxItems: 16384`
272
273 - `context_size: optional "low" or "medium" or "high" or null`
274
275 The amount of search context made available to the model. Defaults to `medium`.
276
277 - `"low"`
278
279 - `"medium"`
280
281 - `"high"`
282
283 - `location: optional object { city, country, region, timezone } or null`
284
285 Approximate location used to localize search results.
286
287 - `city: optional string or null`
288
289 The city name.
290
291 `minLength: 0`, `maxLength: 1048576`
292
293 - `country: optional string or null`
294
295 The two-letter ISO country code, such as `US`.
296
297 `minLength: 0`, `maxLength: 1048576`
298
299 - `region: optional string or null`
300
301 The region or state name.
302
303 `minLength: 0`, `maxLength: 1048576`
304
305 - `timezone: optional string or null`
306
307 The IANA timezone, such as `America/Los_Angeles`.
308
309 `minLength: 0`, `maxLength: 1048576`
310
311 - `mode: optional "disabled" or "cached" or "live" or null`
312
313 The source used for web search results. Defaults to `live`.
314
315 - `"disabled"`
316
317 Disables web search.
318
319 - `"cached"`
320
321 Uses cached search results.
322
323 - `"live"`
324
325 Searches the live web.
326
327 - `ComputerUse object { type, include_screenshots }`
328
329 Browser use in an OpenAI-hosted session.
330
331 - `type: "computer_use" (default: "computer_use")`
332
333 The type of the object. Always `computer_use`.
334
335 - `"computer_use"`
336
337 - `include_screenshots: optional boolean (default: false)`
338
339 Whether computer tool outputs include screenshots. Defaults to `false`.
340
341 - `Automations object { type }`
342
343 Lets the agent manage its own scheduled wakeups.
344
345 - `type: "automations" (default: "automations")`
346
347 The type of the object. Always `automations`.
348
349 - `"automations"`
350
79- `metadata: optional map[string] or null`351- `metadata: optional map[string] or null`
80 352
81 Replaces all metadata. Omit to leave unchanged, or pass null or {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters.353 Replaces all metadata. Omit to leave unchanged, or pass null or {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters.
82 354
355- `review: optional "none" or "auto_review"`
356
357 Default action review for new root turns. Existing turns and their subagents keep their review mode.
358
359 - `"none"`
360
361 Keep the existing execution behavior without automatic action review.
362
363 - `"auto_review"`
364
365 Review eligible actions automatically. Deny manual approval fallbacks.
366
83### Returns367### Returns
84 368
85369- `AgentSession object { id, agent, created_at, 9 more }`- `AgentSession object { id, agent, created_at, 10 more }`
86 370
87 A Managed Agents session.371 A Managed Agents session.
88 372
1044 1328
1045 `minItems: 0`, `maxItems: 2000`1329 `minItems: 0`, `maxItems: 2000`
1046 1330
1331 - `review: optional "none" or "auto_review"`
1332
1333 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
1334
1335 - `"none"`
1336
1337 - `"auto_review"`
1338
1047### Example1339### Example
1048 1340
1049```http1341```http
1149 },1441 },
1150 "vault_ids": [1442 "vault_ids": [
1151 "string"1443 "string"
11521444 ] ],
1445 "review": "none"
1153}1446}
1154```1447```
22 22
23### Body Parameters23### Body Parameters
24 24
25Content type: `application/json`
26
25- `events: array of AgentSessionInputParam`27- `events: array of AgentSessionInputParam`
26 28
27 The input events to submit to the session.29 The input events to submit to the session.
1290 1290
1291 `minItems: 0`, `maxItems: 2000`1291 `minItems: 0`, `maxItems: 2000`
1292 1292
1293 - `review: optional "none" or "auto_review"`
1294
1295 Review applied to eligible actions in this session. Omitted when review is none and automatic review is not enabled. Omission means none.
1296
1297 - `"none"`
1298
1299 - `"auto_review"`
1300
1293 - `type: "agent.session.created" (default: "agent.session.created")`1301 - `type: "agent.session.created" (default: "agent.session.created")`
1294 1302
1295 The type of the object. Always `agent.session.created`.1303 The type of the object. Always `agent.session.created`.
2502 2510
2503 - `"create_subagent_call"`2511 - `"create_subagent_call"`
2504 2512
2505 The current public item type.
2506
2507 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`2513 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`
2508 2514
2509 A request to send input to another agent.2515 A request to send input to another agent.
2556 2562
2557 - `"send_subagent_input_call"`2563 - `"send_subagent_input_call"`
2558 2564
2559 The current public item type.
2560
2561 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`2565 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
2562 2566
2563 A request to resume a subagent.2567 A request to resume a subagent.
2596 2600
2597 - `"resume_subagent_call"`2601 - `"resume_subagent_call"`
2598 2602
2599 The current public item type.
2600
2601 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`2603 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`
2602 2604
2603 A request to wait for one or more subagents.2605 A request to wait for one or more subagents.
2636 2638
2637 - `"wait_for_subagents_call"`2639 - `"wait_for_subagents_call"`
2638 2640
2639 The current public item type.
2640
2641 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`2641 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
2642 2642
2643 A request to interrupt a subagent's current turn. The subagent remains available.2643 A request to interrupt a subagent's current turn. The subagent remains available.
2676 2676
2677 - `"interrupt_subagent_call"`2677 - `"interrupt_subagent_call"`
2678 2678
2679 The current public item type.
2680
2681 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`2679 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
2682 2680
2683 A request to close a subagent.2681 A request to close a subagent.
2716 2714
2717 - `"close_subagent_call"`2715 - `"close_subagent_call"`
2718 2716
2719 The current public item type.
2720
2721 - `output_index: integer or null`2717 - `output_index: integer or null`
2722 2718
2723 The index of the item in the turn output, when the item is agent output.2719 The index of the item in the turn output, when the item is agent output.
882 882
883 - `"create_subagent_call"`883 - `"create_subagent_call"`
884 884
885 The current public item type.
886
887 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`885 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`
888 886
889 A request to send input to another agent.887 A request to send input to another agent.
936 934
937 - `"send_subagent_input_call"`935 - `"send_subagent_input_call"`
938 936
939 The current public item type.
940
941 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`937 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
942 938
943 A request to resume a subagent.939 A request to resume a subagent.
976 972
977 - `"resume_subagent_call"`973 - `"resume_subagent_call"`
978 974
979 The current public item type.
980
981 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`975 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`
982 976
983 A request to wait for one or more subagents.977 A request to wait for one or more subagents.
1016 1010
1017 - `"wait_for_subagents_call"`1011 - `"wait_for_subagents_call"`
1018 1012
1019 The current public item type.
1020
1021 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`1013 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
1022 1014
1023 A request to interrupt a subagent's current turn. The subagent remains available.1015 A request to interrupt a subagent's current turn. The subagent remains available.
1056 1048
1057 - `"interrupt_subagent_call"`1049 - `"interrupt_subagent_call"`
1058 1050
1059 The current public item type.
1060
1061 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`1051 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
1062 1052
1063 A request to close a subagent.1053 A request to close a subagent.
1096 1086
1097 - `"close_subagent_call"`1087 - `"close_subagent_call"`
1098 1088
1099 The current public item type.
1100
1101- `first_id: string or null`1089- `first_id: string or null`
1102 1090
1103 The ID of the first resource in `data`, or `null` if the page is empty.1091 The ID of the first resource in `data`, or `null` if the page is empty.
888 888
889 - `"create_subagent_call"`889 - `"create_subagent_call"`
890 890
891 The current public item type.
892
893 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`891 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`
894 892
895 A request to send input to another agent.893 A request to send input to another agent.
942 940
943 - `"send_subagent_input_call"`941 - `"send_subagent_input_call"`
944 942
945 The current public item type.
946
947 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`943 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
948 944
949 A request to resume a subagent.945 A request to resume a subagent.
982 978
983 - `"resume_subagent_call"`979 - `"resume_subagent_call"`
984 980
985 The current public item type.
986
987 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`981 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`
988 982
989 A request to wait for one or more subagents.983 A request to wait for one or more subagents.
1022 1016
1023 - `"wait_for_subagents_call"`1017 - `"wait_for_subagents_call"`
1024 1018
1025 The current public item type.
1026
1027 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`1019 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
1028 1020
1029 A request to interrupt a subagent's current turn. The subagent remains available.1021 A request to interrupt a subagent's current turn. The subagent remains available.
1062 1054
1063 - `"interrupt_subagent_call"`1055 - `"interrupt_subagent_call"`
1064 1056
1065 The current public item type.
1066
1067 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`1057 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
1068 1058
1069 A request to close a subagent.1059 A request to close a subagent.
1102 1092
1103 - `"close_subagent_call"`1093 - `"close_subagent_call"`
1104 1094
1105 The current public item type.
1106
1107- `first_id: string or null`1095- `first_id: string or null`
1108 1096
1109 The ID of the first resource in `data`, or `null` if the page is empty.1097 The ID of the first resource in `data`, or `null` if the page is empty.
894 894
895 - `"create_subagent_call"`895 - `"create_subagent_call"`
896 896
897 The current public item type.
898
899 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`897 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`
900 898
901 A request to send input to another agent.899 A request to send input to another agent.
948 946
949 - `"send_subagent_input_call"`947 - `"send_subagent_input_call"`
950 948
951 The current public item type.
952
953 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`949 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
954 950
955 A request to resume a subagent.951 A request to resume a subagent.
988 984
989 - `"resume_subagent_call"`985 - `"resume_subagent_call"`
990 986
991 The current public item type.
992
993 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`987 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`
994 988
995 A request to wait for one or more subagents.989 A request to wait for one or more subagents.
1028 1022
1029 - `"wait_for_subagents_call"`1023 - `"wait_for_subagents_call"`
1030 1024
1031 The current public item type.
1032
1033 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`1025 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
1034 1026
1035 A request to interrupt a subagent's current turn. The subagent remains available.1027 A request to interrupt a subagent's current turn. The subagent remains available.
1068 1060
1069 - `"interrupt_subagent_call"`1061 - `"interrupt_subagent_call"`
1070 1062
1071 The current public item type.
1072
1073 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`1063 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
1074 1064
1075 A request to close a subagent.1065 A request to close a subagent.
1108 1098
1109 - `"close_subagent_call"`1099 - `"close_subagent_call"`
1110 1100
1111 The current public item type.
1112
1113- `first_id: string or null`1101- `first_id: string or null`
1114 1102
1115 The ID of the first resource in `data`, or `null` if the page is empty.1103 The ID of the first resource in `data`, or `null` if the page is empty.
888 888
889 - `"create_subagent_call"`889 - `"create_subagent_call"`
890 890
891 The current public item type.
892
893 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`891 - `AgentSendSubagentInputCallItem object { id, content, recipient_agent_id, 4 more }`
894 892
895 A request to send input to another agent.893 A request to send input to another agent.
942 940
943 - `"send_subagent_input_call"`941 - `"send_subagent_input_call"`
944 942
945 The current public item type.
946
947 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`943 - `AgentResumeSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
948 944
949 A request to resume a subagent.945 A request to resume a subagent.
982 978
983 - `"resume_subagent_call"`979 - `"resume_subagent_call"`
984 980
985 The current public item type.
986
987 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`981 - `AgentWaitForSubagentsCallItem object { id, recipient_agent_ids, sender_agent_id, 3 more }`
988 982
989 A request to wait for one or more subagents.983 A request to wait for one or more subagents.
1022 1016
1023 - `"wait_for_subagents_call"`1017 - `"wait_for_subagents_call"`
1024 1018
1025 The current public item type.
1026
1027 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`1019 - `AgentInterruptSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
1028 1020
1029 A request to interrupt a subagent's current turn. The subagent remains available.1021 A request to interrupt a subagent's current turn. The subagent remains available.
1062 1054
1063 - `"interrupt_subagent_call"`1055 - `"interrupt_subagent_call"`
1064 1056
1065 The current public item type.
1066
1067 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`1057 - `AgentCloseSubagentCallItem object { id, recipient_agent_id, sender_agent_id, 3 more }`
1068 1058
1069 A request to close a subagent.1059 A request to close a subagent.
1102 1092
1103 - `"close_subagent_call"`1093 - `"close_subagent_call"`
1104 1094
1105 The current public item type.
1106
1107- `first_id: string or null`1095- `first_id: string or null`
1108 1096
1109 The ID of the first resource in `data`, or `null` if the page is empty.1097 The ID of the first resource in `data`, or `null` if the page is empty.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `metadata: optional map[string] or null`13- `metadata: optional map[string] or null`
12 14
13 Key-value pairs to associate with the vault, such as an application or team identifier.15 Key-value pairs to associate with the vault, such as an application or team identifier.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `metadata: optional map[string]`21- `metadata: optional map[string]`
20 22
21 Replaces all metadata. Omit to leave unchanged, or pass {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters.23 Replaces all metadata. Omit to leave unchanged, or pass {} to clear it. Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `auth: CredentialAuthCreateParam`21- `auth: CredentialAuthCreateParam`
20 22
21 The authentication method and write-only secret values to store.23 The authentication method and write-only secret values to store.
22 22
23### Body Parameters23### Body Parameters
24 24
25Content type: `application/json`
26
25- `auth: optional CredentialAuthRotateParam`27- `auth: optional CredentialAuthRotateParam`
26 28
27 Replacement values for the credential's existing authentication method.29 Replacement values for the credential's existing authentication method.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `model: string or "gpt-5" or "gpt-5-mini" or "gpt-5-nano" or 39 more`13- `model: string or "gpt-5" or "gpt-5-mini" or "gpt-5-nano" or 39 more`
12 14
13 ID of the model to use. You can use the [List models](/api/reference/resources/models/methods/list) API to see all of your available models, or see our [Model overview](/api/docs/models) for descriptions of them.15 ID of the model to use. You can use the [List models](/api/reference/resources/models/methods/list) API to see all of your available models, or see our [Model overview](/api/docs/models) for descriptions of them.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `description: optional string or null`19- `description: optional string or null`
18 20
19 The description of the assistant. The maximum length is 512 characters.21 The description of the assistant. The maximum length is 512 characters.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `user: string`13- `user: string`
12 14
13 A free-form string that identifies your end user; ensures this Session can access other objects that have the same `user` scope.15 A free-form string that identifies your end user; ensures this Session can access other objects that have the same `user` scope.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 107 more or string or null`21- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 107 more or string or null`
20 22
21 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.23 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.
20 20
21### Body Parameters21### Body Parameters
22 22
23Content type: `application/json`
24
23- `access_programs: optional object { cyber }`25- `access_programs: optional object { cyber }`
24 26
25 Domain-specific access programs to use for this request.27 Domain-specific access programs to use for this request.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `conversation: optional string or BetaResponseConversationParam or null`21- `conversation: optional string or BetaResponseConversationParam or null`
20 22
21 The conversation that this response belongs to. Items from this conversation are prepended to `input_items` for this response request.23 The conversation that this response belongs to. Items from this conversation are prepended to `input_items` for this response request.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `messages: optional array of object { content, role, attachments, metadata }`13- `messages: optional array of object { content, role, attachments, metadata }`
12 14
13 A list of [messages](/api/docs/assistants/migration) to start the thread with.15 A list of [messages](/api/docs/assistants/migration) to start the thread with.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `assistant_id: string`13- `assistant_id: string`
12 14
13 The ID of the [assistant](/api/docs/assistants/migration) to use to execute this run.15 The ID of the [assistant](/api/docs/assistants/migration) to use to execute this run.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `metadata: optional Metadata or null`19- `metadata: optional Metadata or null`
18 20
19 Set of 16 key-value pairs that can be attached to an object. This can be21 Set of 16 key-value pairs that can be attached to an object. This can be
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `content: string or array of ImageFileContentBlock or ImageURLContentBlock or TextContentBlockParam`19- `content: string or array of ImageFileContentBlock or ImageURLContentBlock or TextContentBlockParam`
18 20
19 The text contents of the message.21 The text contents of the message.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `metadata: optional Metadata or null`23- `metadata: optional Metadata or null`
22 24
23 Set of 16 key-value pairs that can be attached to an object. This can be25 Set of 16 key-value pairs that can be attached to an object. This can be
24 24
25### Body Parameters25### Body Parameters
26 26
27Content type: `application/json`
28
27- `assistant_id: string`29- `assistant_id: string`
28 30
29 The ID of the [assistant](/api/docs/assistants/migration) to use to execute this run.31 The ID of the [assistant](/api/docs/assistants/migration) to use to execute this run.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `tool_outputs: array of object { output, tool_call_id }`23- `tool_outputs: array of object { output, tool_call_id }`
22 24
23 A list of tools for which the outputs are being submitted.25 A list of tools for which the outputs are being submitted.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `metadata: optional Metadata or null`23- `metadata: optional Metadata or null`
22 24
23 Set of 16 key-value pairs that can be attached to an object. This can be25 Set of 16 key-value pairs that can be attached to an object. This can be
25 25
26### Body Parameters26### Body Parameters
27 27
28Content type: `application/json`
29
28- `messages: array of ChatCompletionMessageParam`30- `messages: array of ChatCompletionMessageParam`
29 31
30 A list of messages comprising the conversation so far. Depending on the32 A list of messages comprising the conversation so far. Depending on the
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `metadata: Metadata or null`21- `metadata: Metadata or null`
20 22
21 Set of 16 key-value pairs that can be attached to an object. This can be23 Set of 16 key-value pairs that can be attached to an object. This can be
10 10
11### Body Parameters11### Body Parameters
12 12
13Content type: `application/json`
14
13- `model: string or "gpt-3.5-turbo-instruct" or "davinci-002" or "babbage-002"`15- `model: string or "gpt-3.5-turbo-instruct" or "davinci-002" or "babbage-002"`
14 16
15 ID of the model to use. You can use the [List models](/api/reference/resources/models/methods/list) API to see all of your available models, or see our [Model overview](/api/docs/models) for descriptions of them.17 ID of the model to use. You can use the [List models](/api/reference/resources/models/methods/list) API to see all of your available models, or see our [Model overview](/api/docs/models) for descriptions of them.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `name: string`13- `name: string`
12 14
13 Name of the container to create.15 Name of the container to create.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `file: optional string`19- `file: optional string`
18 20
19 The File object (not file name) to be uploaded.21 The File object (not file name) to be uploaded.
8 8
9If `not_detected`, it means the tool did not find supported signals in the uploaded file. The content could still have been generated by OpenAI if the metadata was stripped or has evidence of tampering, the watermark was degraded, it comes from a legacy generation model, or it was created before provenance signals were available. Content could also still be AI-generated by another company's model, which the tool currently does not detect.9If `not_detected`, it means the tool did not find supported signals in the uploaded file. The content could still have been generated by OpenAI if the metadata was stripped or has evidence of tampering, the watermark was degraded, it comes from a legacy generation model, or it was created before provenance signals were available. Content could also still be AI-generated by another company's model, which the tool currently does not detect.
10 10
11### Body Parameters
12
13Content type: `multipart/form-data`
14
15- `file: string`
16
17 The image or audio file to check for supported OpenAI provenance signals.
18
11### Returns19### Returns
12 20
13- `ContentProvenanceCheck object { created_at, object, results }`21- `ContentProvenanceCheck object { created_at, object, results }`
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `items: optional array of EasyInputMessage or Message { content, role, status, type } or ResponseOutputMessage or 30 more or null`13- `items: optional array of EasyInputMessage or Message { content, role, status, type } or ResponseOutputMessage or 30 more or null`
12 14
13 Initial items to include in the conversation context. You may add up to 20 items at a time.15 Initial items to include in the conversation context. You may add up to 20 items at a time.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `metadata: Metadata or null`19- `metadata: Metadata or null`
18 20
19 Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.21 Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
37 37
38### Body Parameters38### Body Parameters
39 39
40Content type: `application/json`
41
40- `items: array of EasyInputMessage or Message { content, role, status, type } or ResponseOutputMessage or 30 more`42- `items: array of EasyInputMessage or Message { content, role, status, type } or ResponseOutputMessage or 30 more`
41 43
42 The items to add to the conversation. You may add up to 20 items at a time.44 The items to add to the conversation. You may add up to 20 items at a time.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `input: string or array of DecisionInputMessage or object { content, role, type } or object { content, role, type } or 2 more`13- `input: string or array of DecisionInputMessage or object { content, role, type } or object { content, role, type } or 2 more`
12 14
13 The input to evaluate for every question. Provide a text string or an ordered array of messages, function calls and outputs, or custom tool calls and outputs. Each tool output must identify a matching call by call ID.15 The input to evaluate for every question. Provide a text string or an ordered array of messages, function calls and outputs, or custom tool calls and outputs. Each tool output must identify a matching call by call ID.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `input: string or array of string or array of number or array of array of number`13- `input: string or array of string or array of number or array of array of number`
12 14
13 Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for all embedding models), cannot be an empty string, and any array must be 2048 dimensions or less. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens. In addition to the per-input token limit, all embedding models enforce a maximum of 300,000 tokens summed across all inputs in a single request.15 Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for all embedding models), cannot be an empty string, and any array must be 2048 dimensions or less. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens. In addition to the per-input token limit, all embedding models enforce a maximum of 300,000 tokens summed across all inputs in a single request.
10 10
11### Body Parameters11### Body Parameters
12 12
13Content type: `application/json`
14
13- `data_source_config: CustomDataSourceConfig { item_schema, type, include_sample_schema } or LogsDataSourceConfig { type, metadata } or StoredCompletionsDataSourceConfig { type, metadata }`15- `data_source_config: CustomDataSourceConfig { item_schema, type, include_sample_schema } or LogsDataSourceConfig { type, metadata } or StoredCompletionsDataSourceConfig { type, metadata }`
14 16
15 The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation.17 The configuration for the data source used for the evaluation runs. Dictates the schema of the data used in the evaluation.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `metadata: optional Metadata or null`19- `metadata: optional Metadata or null`
18 20
19 Set of 16 key-value pairs that can be attached to an object. This can be21 Set of 16 key-value pairs that can be attached to an object. This can be
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `data_source: CreateEvalJSONLRunDataSource or CreateEvalCompletionsRunDataSource or ResponsesRunDataSource { source, type, input_messages, 2 more }`19- `data_source: CreateEvalJSONLRunDataSource or CreateEvalCompletionsRunDataSource or ResponsesRunDataSource { source, type, input_messages, 2 more }`
18 20
19 Details about the run's data source.21 Details about the run's data source.
30Please [contact us](https://help.openai.com/) if you need to increase these30Please [contact us](https://help.openai.com/) if you need to increase these
31storage limits.31storage limits.
32 32
33### Body Parameters
34
35Content type: `multipart/form-data`
36
37- `file: string`
38
39 The File object (not file name) to be uploaded.
40
41- `purpose: "assistants" or "batch" or "fine-tune" or 3 more`
42
43 The intended purpose of the uploaded file. One of:
44
45 - `assistants`: Used in the Assistants API
46 - `batch`: Used in the Batch API
47 - `fine-tune`: Used for fine-tuning
48 - `vision`: Images used for vision fine-tuning
49 - `user_data`: Flexible file type for any purpose
50 - `evals`: Used for eval data sets
51
52 - `"assistants"`
53
54 - `"batch"`
55
56 - `"fine-tune"`
57
58 - `"vision"`
59
60 - `"user_data"`
61
62 - `"evals"`
63
64- `expires_after: optional object { anchor, seconds }`
65
66 The expiration policy for a file. By default, files with `purpose=batch` expire after 30 days and all other files are persisted until they are manually deleted.
67
68 - `anchor: "created_at"`
69
70 Anchor timestamp after which the expiration policy applies. Supported anchors: `created_at`.
71
72 - `"created_at"`
73
74 - `seconds: integer`
75
76 The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).
77
78 `format: int64`, `minimum: 3600`, `maximum: 2592000`
79
33### Returns80### Returns
34 81
35- `FileObject object { id, bytes, created_at, 6 more }`82- `FileObject object { id, bytes, created_at, 6 more }`
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `grader: StringCheckGrader or TextSimilarityGrader or PythonGrader or 2 more`13- `grader: StringCheckGrader or TextSimilarityGrader or PythonGrader or 2 more`
12 14
13 The grader used for the fine-tuning job.15 The grader used for the fine-tuning job.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `grader: StringCheckGrader or TextSimilarityGrader or PythonGrader or 2 more`13- `grader: StringCheckGrader or TextSimilarityGrader or PythonGrader or 2 more`
12 14
13 The grader used for the fine-tuning job.15 The grader used for the fine-tuning job.
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `project_ids: array of string`21- `project_ids: array of string`
20 22
21 The project identifiers to grant access to.23 The project identifiers to grant access to.
12 12
13### Body Parameters13### Body Parameters
14 14
15Content type: `application/json`
16
15- `model: string or "babbage-002" or "davinci-002" or "gpt-3.5-turbo" or "gpt-4o-mini"`17- `model: string or "babbage-002" or "davinci-002" or "gpt-3.5-turbo" or "gpt-4o-mini"`
16 18
17 The name of the model to fine-tune. You can select one of the19 The name of the model to fine-tune. You can select one of the
6 6
7This endpoint is retired and no longer available. Use the image edits endpoint with a GPT Image model and a prompt to create a variation of an image. The request and response schemas below describe the legacy contract.7This endpoint is retired and no longer available. Use the image edits endpoint with a GPT Image model and a prompt to create a variation of an image. The request and response schemas below describe the legacy contract.
8 8
9### Body Parameters
10
11Content type: `multipart/form-data`
12
13- `image: string`
14
15 The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
16
17- `model: optional string or ImageModel or null (default: "dall-e-2")`
18
19 The legacy model used by the retired image variations endpoint. This endpoint no longer accepts requests.
20
21 - `string`
22
23 - `ImageModel = "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 9 more`
24
25 - `"gpt-image-1.5"`
26
27 - `"gpt-image-2"`
28
29 - `"gpt-image-2-2026-04-21"`
30
31 - `"gpt-image-2.5-sunburst"`
32
33 - `"gpt-image-2.5-sunburst-2026-09-08"`
34
35 - `"gpt-image-2.5-flare"`
36
37 - `"gpt-image-2.5-flare-2026-09-08"`
38
39 - `"gpt-image-1"`
40
41 - `"gpt-image-1-mini"`
42
43 - `"chatgpt-image-latest"`
44
45 - `"dall-e-2"`
46
47 - `"dall-e-3"`
48
49- `n: optional integer or null (default: 1)`
50
51 The number of images to generate. Must be between 1 and 10.
52
53 `minimum: 1`, `maximum: 10`
54
55- `response_format: optional "url" or "b64_json" or null (default: "url")`
56
57 The format in which the generated images are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated.
58
59 - `"url"`
60
61 - `"b64_json"`
62
63- `size: optional "256x256" or "512x512" or "1024x1024" or null (default: "1024x1024")`
64
65 The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`.
66
67 - `"256x256"`
68
69 - `"512x512"`
70
71 - `"1024x1024"`
72
73- `user: optional string`
74
75 A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/api/docs/guides/safety-best-practices#implement-safety-identifiers).
76
9### Returns77### Returns
10 78
11- `ImagesResponse object { created, background, data, 5 more }`79- `ImagesResponse object { created, background, data, 5 more }`
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `images: array of object { file_id, image_url }`13- `images: array of object { file_id, image_url }`
12 14
13 Input image references to edit.15 Input image references to edit.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `model: string or ImageModel`13- `model: string or ImageModel`
12 14
13 The GPT image model to use for image generation. Specify a model explicitly.15 The GPT image model to use for image generation. Specify a model explicitly.
25 25
26### Body Parameters26### Body Parameters
27 27
28Content type: `application/json`
29
28- `session: MediaSessionConfig`30- `session: MediaSessionConfig`
29 31
30 Startup configuration for the Live session.32 Startup configuration for the Live session.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `session: object { model, type, audio, 5 more }`19- `session: object { model, type, audio, 5 more }`
18 20
19 Model and startup configuration for the Live session that answers the incoming SIP call.21 Model and startup configuration for the Live session that answers the incoming SIP call.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `transport: object { sdp, type }`19- `transport: object { sdp, type }`
18 20
19 WebRTC transport with an SDP offer for the new connection to the forked session.21 WebRTC transport with an SDP offer for the new connection to the forked session.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `target_uri: string`19- `target_uri: string`
18 20
19 Nonblank URI for the SIP Refer-To header, such as tel:+14155550123 or sip:agent@example.com.21 Nonblank URI for the SIP Refer-To header, such as tel:+14155550123 or sip:agent@example.com.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `status_code: integer`19- `status_code: integer`
18 20
19 SIP rejection status sent to the caller. This field is required.21 SIP rejection status sent to the caller. This field is required.
9 9
10### Body Parameters10### Body Parameters
11 11
12Content type: `application/json`
13
12- `input: string or array of string or array of ImageURL { image_url, type } or Text { text, type }`14- `input: string or array of string or array of ImageURL { image_url, type } or Text { text, type }`
13 15
14 Input (or inputs) to classify. Can be a single string, an array of strings, or16 Input (or inputs) to classify. Can be a single string, an array of strings, or
92 92
93 - `"audio/pcma"`93 - `"audio/pcma"`
94 94
9595 - `noise_reduction: optional object { type }` - `noise_reduction: optional object { strength, type }`
96 96
97 Configuration for input audio noise reduction. This can be set to `null` to turn off.97 Configuration for input audio noise reduction. This can be set to `null` to turn off.
98 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.98 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
99 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.99 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
100 100
101 - `strength: optional number (default: 1)`
102
103 Input noise suppression strength. Higher values apply more suppression.
104 Defaults to 1 when noise reduction is first enabled. Omitting strength
105 from a session update preserves the current strength.
106
107 `minimum: 0`, `maximum: 1`
108
101 - `type: optional NoiseReductionType`109 - `type: optional NoiseReductionType`
102 110
103 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.111 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
942 950
943 The PCM audio format. Only a 24kHz sample rate is supported.951 The PCM audio format. Only a 24kHz sample rate is supported.
944 952
945953 - `noise_reduction: optional object { type }` - `noise_reduction: optional object { strength, type }`
946 954
947 Configuration for input audio noise reduction. This can be set to `null` to turn off.955 Configuration for input audio noise reduction. This can be set to `null` to turn off.
948 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.956 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
949 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.957 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
950 958
959 - `strength: optional number (default: 1)`
960
961 Input noise suppression strength. Higher values apply more suppression.
962 Defaults to 1 when noise reduction is first enabled. Omitting strength
963 from a session update preserves the current strength.
964
965 `minimum: 0`, `maximum: 1`
966
951 - `type: optional NoiseReductionType`967 - `type: optional NoiseReductionType`
952 968
953 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.969 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
152 152
153 - `"audio/pcma"`153 - `"audio/pcma"`
154 154
155155 - `noise_reduction: optional object { type } or null (default: null)` - `noise_reduction: optional object { strength, type } or null (default: null)`
156 156
157 Configuration for input audio noise reduction. This can be set to `null` to turn off.157 Configuration for input audio noise reduction. This can be set to `null` to turn off.
158 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.158 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
159 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.159 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
160 160
161 - `strength: optional number (default: 1)`
162
163 Input noise suppression strength. Higher values apply more suppression.
164 Defaults to 1 when noise reduction is first enabled. Omitting strength
165 from a session update preserves the current strength.
166
167 `minimum: 0`, `maximum: 1`
168
161 - `type: optional NoiseReductionType`169 - `type: optional NoiseReductionType`
162 170
163 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.171 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
166 174
167 - `"far_field"`175 - `"far_field"`
168 176
169177 - `transcription: optional object { language, languages, model, prompt } or null` - `transcription: optional object { keywords, language, languages, 2 more } or null`
170 178
171 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.179 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.
172 180
181 - `keywords: optional array of string`
182
183 Words or phrases configured to guide transcription of the input audio.
184
173 - `language: optional string or null`185 - `language: optional string or null`
174 186
175 The language of the input audio.187 The language of the input audio.
981 993
982 The PCM audio format. Only a 24kHz sample rate is supported.994 The PCM audio format. Only a 24kHz sample rate is supported.
983 995
984996 - `noise_reduction: optional object { type } or null` - `noise_reduction: optional object { strength, type } or null`
985 997
986 Configuration for input audio noise reduction.998 Configuration for input audio noise reduction.
987 999
1000 - `strength: optional number (default: 1)`
1001
1002 Input noise suppression strength. Higher values apply more suppression.
1003 Defaults to 1 when noise reduction is first enabled. Omitting strength
1004 from a session update preserves the current strength.
1005
1006 `minimum: 0`, `maximum: 1`
1007
988 - `type: optional NoiseReductionType`1008 - `type: optional NoiseReductionType`
989 1009
990 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.1010 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
991 1011
9921012 - `transcription: optional object { language, languages, model, prompt } or null` - `transcription: optional object { keywords, language, languages, 2 more } or null`
993 1013
994 Configuration of the transcription model.1014 Configuration of the transcription model.
995 1015
1016 - `keywords: optional array of string`
1017
1018 Words or phrases configured to guide transcription of the input audio.
1019
996 - `language: optional string or null`1020 - `language: optional string or null`
997 1021
998 The language of the input audio.1022 The language of the input audio.
1218 1242
1219 - `"audio/pcma"`1243 - `"audio/pcma"`
1220 1244
12211245 - `noise_reduction: optional object { type } or null (default: null)` - `noise_reduction: optional object { strength, type } or null (default: null)`
1222 1246
1223 Configuration for input audio noise reduction. This can be set to `null` to turn off.1247 Configuration for input audio noise reduction. This can be set to `null` to turn off.
1224 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.1248 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
1225 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.1249 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
1226 1250
1251 - `strength: optional number (default: 1)`
1252
1253 Input noise suppression strength. Higher values apply more suppression.
1254 Defaults to 1 when noise reduction is first enabled. Omitting strength
1255 from a session update preserves the current strength.
1256
1257 `minimum: 0`, `maximum: 1`
1258
1227 - `type: optional NoiseReductionType`1259 - `type: optional NoiseReductionType`
1228 1260
1229 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.1261 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
1232 1264
1233 - `"far_field"`1265 - `"far_field"`
1234 1266
12351267 - `transcription: optional object { language, languages, model, prompt } or null` - `transcription: optional object { keywords, language, languages, 2 more } or null`
1236 1268
1237 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.1269 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.
1238 1270
1271 - `keywords: optional array of string`
1272
1273 Words or phrases configured to guide transcription of the input audio.
1274
1239 - `language: optional string or null`1275 - `language: optional string or null`
1240 1276
1241 The language of the input audio.1277 The language of the input audio.
2047 2083
2048 The PCM audio format. Only a 24kHz sample rate is supported.2084 The PCM audio format. Only a 24kHz sample rate is supported.
2049 2085
20502086 - `noise_reduction: optional object { type } or null` - `noise_reduction: optional object { strength, type } or null`
2051 2087
2052 Configuration for input audio noise reduction.2088 Configuration for input audio noise reduction.
2053 2089
2090 - `strength: optional number (default: 1)`
2091
2092 Input noise suppression strength. Higher values apply more suppression.
2093 Defaults to 1 when noise reduction is first enabled. Omitting strength
2094 from a session update preserves the current strength.
2095
2096 `minimum: 0`, `maximum: 1`
2097
2054 - `type: optional NoiseReductionType`2098 - `type: optional NoiseReductionType`
2055 2099
2056 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.2100 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
2057 2101
20582102 - `transcription: optional object { language, languages, model, prompt } or null` - `transcription: optional object { keywords, language, languages, 2 more } or null`
2059 2103
2060 Configuration of the transcription model.2104 Configuration of the transcription model.
2061 2105
2106 - `keywords: optional array of string`
2107
2108 Words or phrases configured to guide transcription of the input audio.
2109
2062 - `language: optional string or null`2110 - `language: optional string or null`
2063 2111
2064 The language of the input audio.2112 The language of the input audio.
17 17
18### Body Parameters18### Body Parameters
19 19
20Content type: `application/json`
21
20- `type: "realtime"`22- `type: "realtime"`
21 23
22 The type of session to create. Always `realtime` for the Realtime API.24 The type of session to create. Always `realtime` for the Realtime API.
69 71
70 - `"audio/pcma"`72 - `"audio/pcma"`
71 73
7274 - `noise_reduction: optional object { type }` - `noise_reduction: optional object { strength, type }`
73 75
74 Configuration for input audio noise reduction. This can be set to `null` to turn off.76 Configuration for input audio noise reduction. This can be set to `null` to turn off.
75 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.77 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
76 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.78 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
77 79
80 - `strength: optional number (default: 1)`
81
82 Input noise suppression strength. Higher values apply more suppression.
83 Defaults to 1 when noise reduction is first enabled. Omitting strength
84 from a session update preserves the current strength.
85
86 `minimum: 0`, `maximum: 1`
87
78 - `type: optional NoiseReductionType`88 - `type: optional NoiseReductionType`
79 89
80 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.90 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
7Create a new Realtime API call over WebRTC and receive the SDP answer needed7Create a new Realtime API call over WebRTC and receive the SDP answer needed
8to complete the peer connection.8to complete the peer connection.
9 9
10### Body Parameters
11
12Content type: `multipart/form-data`
13
14- `sdp: string`
15
16 WebRTC Session Description Protocol (SDP) offer generated by the caller.
17
18- `session: optional RealtimeSessionCreateRequest`
19
20 Realtime session object configuration.
21
22 - `type: "realtime"`
23
24 The type of session to create. Always `realtime` for the Realtime API.
25
26 - `"realtime"`
27
28 - `audio: optional RealtimeAudioConfig`
29
30 Configuration for input and output audio.
31
32 - `input: optional RealtimeAudioConfigInput`
33
34 - `format: optional RealtimeAudioFormats`
35
36 The format of the input audio.
37
38 - `PCMAudio object { rate, type }`
39
40 The PCM audio format. Only a 24kHz sample rate is supported.
41
42 - `rate: optional 24000`
43
44 The sample rate of the audio. Always `24000`.
45
46 - `24000`
47
48 - `type: optional "audio/pcm"`
49
50 The audio format. Always `audio/pcm`.
51
52 - `"audio/pcm"`
53
54 - `PCMUAudio object { type }`
55
56 The G.711 μ-law format.
57
58 - `type: optional "audio/pcmu"`
59
60 The audio format. Always `audio/pcmu`.
61
62 - `"audio/pcmu"`
63
64 - `PCMAAudio object { type }`
65
66 The G.711 A-law format.
67
68 - `type: optional "audio/pcma"`
69
70 The audio format. Always `audio/pcma`.
71
72 - `"audio/pcma"`
73
74 - `noise_reduction: optional object { strength, type }`
75
76 Configuration for input audio noise reduction. This can be set to `null` to turn off.
77 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
78 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
79
80 - `strength: optional number (default: 1)`
81
82 Input noise suppression strength. Higher values apply more suppression.
83 Defaults to 1 when noise reduction is first enabled. Omitting strength
84 from a session update preserves the current strength.
85
86 `minimum: 0`, `maximum: 1`
87
88 - `type: optional NoiseReductionType`
89
90 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
91
92 - `"near_field"`
93
94 - `"far_field"`
95
96 - `transcription: optional AudioTranscription`
97
98 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.
99
100 - `delay: optional "minimal" or "low" or "medium" or 2 more`
101
102 Controls how long the model waits before emitting transcription text.
103 Higher values can improve transcription accuracy at the cost of latency.
104 Only supported with `gpt-realtime-whisper` in GA Realtime sessions.
105
106 - `"minimal"`
107
108 - `"low"`
109
110 - `"medium"`
111
112 - `"high"`
113
114 - `"xhigh"`
115
116 - `keywords: optional array of string`
117
118 Words or phrases to guide transcription of the input audio. Supported by `gpt-transcribe` and `gpt-live-transcribe`.
119
120 - `language: optional string`
121
122 The language of the input audio. Supplying the input language in
123 [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format
124 will improve accuracy and latency.
125
126 - `languages: optional array of string`
127
128 Possible languages of the input audio, in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. Supported by `gpt-transcribe` and `gpt-live-transcribe`.
129
130 `minItems: 1`
131
132 - `model: optional string or "whisper-1" or "gpt-transcribe" or "gpt-live-transcribe" or 5 more`
133
134 The model to use for transcription. Current options are `whisper-1`, `gpt-transcribe`, `gpt-live-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`. Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
135
136 - `string`
137
138 - `"whisper-1" or "gpt-transcribe" or "gpt-live-transcribe" or 5 more`
139
140 The model to use for transcription. Current options are `whisper-1`, `gpt-transcribe`, `gpt-live-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`. Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
141
142 - `"whisper-1"`
143
144 - `"gpt-transcribe"`
145
146 - `"gpt-live-transcribe"`
147
148 - `"gpt-4o-mini-transcribe"`
149
150 - `"gpt-4o-mini-transcribe-2025-12-15"`
151
152 - `"gpt-4o-transcribe"`
153
154 - `"gpt-4o-transcribe-diarize"`
155
156 - `"gpt-realtime-whisper"`
157
158 - `prompt: optional string`
159
160 An optional text to guide the model's style or continue a previous audio
161 segment.
162 For `whisper-1`, the [prompt is a list of keywords](/api/docs/guides/speech-to-text#prompting).
163 For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the prompt is a free text string, for example "expect words related to technology".
164 Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.
165
166 - `turn_detection: optional RealtimeAudioInputTurnDetection or null`
167
168 Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.
169
170 Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
171
172 Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.
173
174 For `gpt-realtime-whisper` transcription sessions, turn detection must be
175 set to `null`; VAD is not supported.
176
177 - `ServerVad object { type, create_response, idle_timeout_ms, 4 more }`
178
179 Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence.
180
181 - `type: "server_vad" (default: "server_vad")`
182
183 Type of turn detection, `server_vad` to turn on simple Server VAD.
184
185 - `"server_vad"`
186
187 - `create_response: optional boolean (default: true)`
188
189 Whether or not to automatically generate a response when a VAD stop event occurs. If `interrupt_response` is set to `false` this may fail to create a response if the model is already responding.
190
191 If both `create_response` and `interrupt_response` are set to `false`, the model will never respond automatically but VAD events will still be emitted.
192
193 - `idle_timeout_ms: optional integer or null`
194
195 Optional timeout after which a model response will be triggered automatically. This is
196 useful for situations in which a long pause from the user is unexpected, such as a phone
197 call. The model will effectively prompt the user to continue the conversation based
198 on the current context.
199
200 The timeout value will be applied after the last model response's audio has finished playing,
201 i.e. it's set to the `response.done` time plus audio playback duration.
202
203 An `input_audio_buffer.timeout_triggered` event (plus events
204 associated with the Response) will be emitted when the timeout is reached.
205 Idle timeout is currently only supported for `server_vad` mode.
206
207 `minimum: 5000`, `maximum: 30000`
208
209 - `interrupt_response: optional boolean (default: true)`
210
211 Whether or not to automatically interrupt (cancel) any ongoing response with output to the default
212 conversation (i.e. `conversation` of `auto`) when a VAD start event occurs. If `true` then the response will be cancelled, otherwise it will continue until complete.
213
214 If both `create_response` and `interrupt_response` are set to `false`, the model will never respond automatically but VAD events will still be emitted.
215
216 - `prefix_padding_ms: optional integer`
217
218 Used only for `server_vad` mode. Amount of audio to include before the VAD detected speech (in
219 milliseconds). Defaults to 300ms.
220
221 - `silence_duration_ms: optional integer`
222
223 Used only for `server_vad` mode. Duration of silence to detect speech stop (in milliseconds). Defaults
224 to 500ms. With shorter values the model will respond more quickly,
225 but may jump in on short pauses from the user.
226
227 - `threshold: optional number`
228
229 Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A
230 higher threshold will require louder audio to activate the model, and
231 thus might perform better in noisy environments.
232
233 - `SemanticVad object { type, create_response, eagerness, interrupt_response }`
234
235 Server-side semantic turn detection which uses a model to determine when the user has finished speaking.
236
237 - `type: "semantic_vad"`
238
239 Type of turn detection, `semantic_vad` to turn on Semantic VAD.
240
241 - `"semantic_vad"`
242
243 - `create_response: optional boolean (default: true)`
244
245 Whether or not to automatically generate a response when a VAD stop event occurs.
246
247 - `eagerness: optional "low" or "medium" or "high" or "auto" (default: "auto")`
248
249 Used only for `semantic_vad` mode. The eagerness of the model to respond. `low` will wait longer for the user to continue speaking, `high` will respond more quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`, and `high` have max timeouts of 8s, 4s, and 2s respectively.
250
251 - `"low"`
252
253 - `"medium"`
254
255 - `"high"`
256
257 - `"auto"`
258
259 - `interrupt_response: optional boolean (default: true)`
260
261 Whether or not to automatically interrupt any ongoing response with output to the default
262 conversation (i.e. `conversation` of `auto`) when a VAD start event occurs.
263
264 - `output: optional RealtimeAudioConfigOutput`
265
266 - `format: optional RealtimeAudioFormats`
267
268 The format of the output audio.
269
270 - `speed: optional number (default: 1)`
271
272 The speed of the model's spoken response as a multiple of the original speed.
273 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.
274
275 This parameter is a post-processing adjustment to the audio after it is generated, it's
276 also possible to prompt the model to speak faster or slower.
277
278 `minimum: 0.25`, `maximum: 1.5`
279
280 - `voice: optional string or "alloy" or "ash" or "ballad" or 7 more or ID { id } (default: "alloy")`
281
282 The voice the model uses to respond. Supported built-in voices are
283 `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`,
284 `marin`, and `cedar`. You may also provide a custom voice object with
285 an `id`, for example `{ "id": "voice_1234" }`. Voice cannot be changed
286 during the session once the model has responded with audio at least once.
287 Custom voices must be created from audio samples. Voices created from text prompts are supported only in Live.
288 We recommend `marin` and `cedar` for best quality.
289
290 - `string`
291
292 - `"alloy" or "ash" or "ballad" or 7 more`
293
294 - `"alloy"`
295
296 - `"ash"`
297
298 - `"ballad"`
299
300 - `"coral"`
301
302 - `"echo"`
303
304 - `"sage"`
305
306 - `"shimmer"`
307
308 - `"verse"`
309
310 - `"marin"`
311
312 - `"cedar"`
313
314 - `ID object { id }`
315
316 Custom voice reference.
317
318 - `id: string`
319
320 The custom voice ID, e.g. `voice_1234`.
321
322 - `include: optional array of "item.input_audio_transcription.logprobs"`
323
324 Additional fields to include in server outputs.
325
326 `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.
327
328 - `"item.input_audio_transcription.logprobs"`
329
330 - `instructions: optional string`
331
332 The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.
333
334 Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.
335
336 - `max_output_tokens: optional number or "inf"`
337
338 Maximum number of output tokens for a single assistant response,
339 inclusive of tool calls. Provide an integer between 1 and 4096 to
340 limit output tokens, or `inf` for the maximum available tokens for a
341 given model. Defaults to `inf`.
342
343 - `number`
344
345 - `"inf"`
346
347 - `"inf"`
348
349 - `model: optional string or "gpt-realtime" or "gpt-realtime-1.5" or "gpt-realtime-2" or 16 more`
350
351 The Realtime model used for this session.
352
353 - `string`
354
355 - `"gpt-realtime" or "gpt-realtime-1.5" or "gpt-realtime-2" or 16 more`
356
357 The Realtime model used for this session.
358
359 - `"gpt-realtime"`
360
361 - `"gpt-realtime-1.5"`
362
363 - `"gpt-realtime-2"`
364
365 - `"gpt-realtime-2.1"`
366
367 - `"gpt-realtime-2.1-mini"`
368
369 - `"gpt-realtime-2025-08-28"`
370
371 - `"gpt-4o-realtime-preview"`
372
373 - `"gpt-4o-realtime-preview-2024-10-01"`
374
375 - `"gpt-4o-realtime-preview-2024-12-17"`
376
377 - `"gpt-4o-realtime-preview-2025-06-03"`
378
379 - `"gpt-4o-mini-realtime-preview"`
380
381 - `"gpt-4o-mini-realtime-preview-2024-12-17"`
382
383 - `"gpt-realtime-mini"`
384
385 - `"gpt-realtime-mini-2025-10-06"`
386
387 - `"gpt-realtime-mini-2025-12-15"`
388
389 - `"gpt-audio-1.5"`
390
391 - `"gpt-audio-mini"`
392
393 - `"gpt-audio-mini-2025-10-06"`
394
395 - `"gpt-audio-mini-2025-12-15"`
396
397 - `output_modalities: optional array of "text" or "audio" (default: ["audio"])`
398
399 The set of modalities the model can respond with. It defaults to `["audio"]`, indicating
400 that the model will respond with audio plus a transcript. `["text"]` can be used to make
401 the model respond with text only. It is not possible to request both `text` and `audio` at the same time.
402
403 - `"text"`
404
405 - `"audio"`
406
407 - `parallel_tool_calls: optional boolean`
408
409 Whether the model may call multiple tools in parallel. Only supported by
410 reasoning Realtime models such as `gpt-realtime-2`.
411
412 - `prompt: optional ResponsePrompt or null`
413
414 Reference to a prompt template and its variables.
415 [Learn more](/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
416
417 - `id: string`
418
419 The unique identifier of the prompt template to use.
420
421 - `variables: optional map[string or ResponseInputText or ResponseInputImage or ResponseInputFile] or null`
422
423 Optional map of values to substitute in for variables in your
424 prompt. The substitution values can either be strings, or other
425 Response input types like images or files.
426
427 - `string`
428
429 - `ResponseInputText object { text, type, prompt_cache_breakpoint }`
430
431 A text input to the model.
432
433 - `text: string`
434
435 The text input to the model.
436
437 - `type: "input_text" (default: "input_text")`
438
439 The type of the input item. Always `input_text`.
440
441 - `"input_text"`
442
443 - `prompt_cache_breakpoint: optional object { mode, ttl }`
444
445 Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
446
447 - `mode: "explicit" (default: "explicit")`
448
449 The breakpoint mode. Always `explicit`.
450
451 - `"explicit"`
452
453 - `ttl: optional "30m" or "12h"`
454
455 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
456
457 - `"30m"`
458
459 - `"12h"`
460
461 - `ResponseInputImage object { detail, type, file_id, 2 more }`
462
463 An image input to the model. Learn about [image inputs](/api/docs/guides/images-vision).
464
465 - `detail: ImageDetail`
466
467 The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`.
468
469 - `"low"`
470
471 - `"high"`
472
473 - `"auto"`
474
475 - `"original"`
476
477 - `type: "input_image" (default: "input_image")`
478
479 The type of the input item. Always `input_image`.
480
481 - `"input_image"`
482
483 - `file_id: optional string or null`
484
485 The ID of the file to be sent to the model.
486
487 - `image_url: optional string or null`
488
489 The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL.
490
491 `format: uri`
492
493 - `prompt_cache_breakpoint: optional object { mode, ttl }`
494
495 Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
496
497 - `mode: "explicit" (default: "explicit")`
498
499 The breakpoint mode. Always `explicit`.
500
501 - `"explicit"`
502
503 - `ttl: optional "30m" or "12h"`
504
505 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
506
507 - `"30m"`
508
509 - `"12h"`
510
511 - `ResponseInputFile object { type, detail, file_data, 4 more }`
512
513 A file input to the model.
514
515 - `type: "input_file" (default: "input_file")`
516
517 The type of the input item. Always `input_file`.
518
519 - `"input_file"`
520
521 - `detail: optional "auto" or "low" or "high"`
522
523 The detail level of the file to be sent to the model. Use `auto` to let the system select the detail level; for GPT-5.6 and later models, `auto` uses high-quality rendering, which may increase input token usage. Use `low` for lower-cost rendering, or `high` to render the file at higher quality. Defaults to `auto`.
524
525 - `"auto"`
526
527 - `"low"`
528
529 - `"high"`
530
531 - `file_data: optional string`
532
533 The content of the file to be sent to the model.
534
535 - `file_id: optional string or null`
536
537 The ID of the file to be sent to the model.
538
539 - `file_url: optional string`
540
541 The URL of the file to be sent to the model.
542
543 `format: uri`
544
545 - `filename: optional string`
546
547 The name of the file to be sent to the model.
548
549 - `prompt_cache_breakpoint: optional object { mode, ttl }`
550
551 Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
552
553 - `mode: "explicit" (default: "explicit")`
554
555 The breakpoint mode. Always `explicit`.
556
557 - `"explicit"`
558
559 - `ttl: optional "30m" or "12h"`
560
561 The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
562
563 - `"30m"`
564
565 - `"12h"`
566
567 - `version: optional string or null`
568
569 Optional version of the prompt template.
570
571 - `reasoning: optional RealtimeReasoning`
572
573 Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
574
575 - `effort: optional RealtimeReasoningEffort (default: "low")`
576
577 Constrains effort on reasoning for reasoning-capable Realtime models such as
578 `gpt-realtime-2`.
579
580 - `"minimal"`
581
582 - `"low"`
583
584 - `"medium"`
585
586 - `"high"`
587
588 - `"xhigh"`
589
590 - `tool_choice: optional RealtimeToolChoiceConfig (default: "auto")`
591
592 How the model chooses tools. Provide one of the string modes or force a specific
593 function/MCP tool.
594
595 - `ToolChoiceOptions = "none" or "auto" or "required"`
596
597 Controls which (if any) tool is called by the model.
598
599 `none` means the model will not call any tool and instead generates a message.
600
601 `auto` means the model can pick between generating a message or calling one or
602 more tools.
603
604 `required` means the model must call one or more tools.
605
606 - `"none"`
607
608 - `"auto"`
609
610 - `"required"`
611
612 - `ToolChoiceFunction object { name, type }`
613
614 Use this option to force the model to call a specific function.
615
616 - `name: string`
617
618 The name of the function to call.
619
620 - `type: "function"`
621
622 For function calling, the type is always `function`.
623
624 - `"function"`
625
626 - `ToolChoiceMcp object { server_label, type, name }`
627
628 Use this option to force the model to call a specific tool on a remote MCP server.
629
630 - `server_label: string`
631
632 The label of the MCP server to use.
633
634 - `type: "mcp"`
635
636 For MCP tools, the type is always `mcp`.
637
638 - `"mcp"`
639
640 - `name: optional string or null`
641
642 The name of the tool to call on the server.
643
644 - `tools: optional RealtimeToolsConfig`
645
646 Tools available to the model.
647
648 - `RealtimeFunctionTool object { description, name, parameters, type }`
649
650 - `description: optional string`
651
652 The description of the function, including guidance on when and how
653 to call it, and guidance about what to tell the user when calling
654 (if anything).
655
656 - `name: optional string`
657
658 The name of the function.
659
660 - `parameters: optional unknown`
661
662 Parameters of the function in JSON Schema.
663
664 - `type: optional "function"`
665
666 The type of the tool, i.e. `function`.
667
668 - `"function"`
669
670 - `McpTool object { server_label, type, allowed_callers, 9 more }`
671
672 Give the model access to additional tools via remote Model Context Protocol
673 (MCP) servers. [Learn more about MCP](/api/docs/guides/tools-connectors-mcp).
674
675 - `server_label: string`
676
677 A label for this MCP server, used to identify it in tool calls.
678
679 - `type: "mcp"`
680
681 The type of the MCP tool. Always `mcp`.
682
683 - `"mcp"`
684
685 - `allowed_callers: optional array of "direct" or "programmatic" or null`
686
687 The tool invocation context(s).
688
689 `minItems: 1`
690
691 - `"direct"`
692
693 - `"programmatic"`
694
695 - `allowed_tools: optional array of string or McpToolFilter { read_only, tool_names } or null`
696
697 List of allowed tool names or a filter object.
698
699 - `McpAllowedTools = array of string`
700
701 A string array of allowed tool names
702
703 - `McpToolFilter object { read_only, tool_names }`
704
705 A filter object to specify which tools are allowed.
706
707 - `read_only: optional boolean`
708
709 Indicates whether or not a tool modifies data or is read-only. If an
710 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
711 it will match this filter.
712
713 - `tool_names: optional array of string`
714
715 List of allowed tool names.
716
717 - `authorization: optional string`
718
719 An OAuth access token that can be used with a remote MCP server, either
720 with a custom MCP server URL or a service connector. Your application
721 must handle the OAuth authorization flow and provide the token here.
722
723 - `connector_id: optional "connector_dropbox" or "connector_gmail" or "connector_googlecalendar" or 5 more`
724
725 Identifier for service connectors, like those available in ChatGPT. One of
726 `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
727 about service connectors [here](/api/docs/guides/tools-connectors-mcp#connectors).
728
729 This field is deprecated for models released after September 1, 2026.
730 Use `server_url` to connect to a remote MCP server, or `tunnel_id` to
731 connect through a Secure MCP Tunnel.
732
733 Currently supported `connector_id` values are:
734
735 - Dropbox: `connector_dropbox`
736 - Gmail: `connector_gmail`
737 - Google Calendar: `connector_googlecalendar`
738 - Google Drive: `connector_googledrive`
739 - Microsoft Teams: `connector_microsoftteams`
740 - Outlook Calendar: `connector_outlookcalendar`
741 - Outlook Email: `connector_outlookemail`
742 - SharePoint: `connector_sharepoint`
743
744 - `"connector_dropbox"`
745
746 - `"connector_gmail"`
747
748 - `"connector_googlecalendar"`
749
750 - `"connector_googledrive"`
751
752 - `"connector_microsoftteams"`
753
754 - `"connector_outlookcalendar"`
755
756 - `"connector_outlookemail"`
757
758 - `"connector_sharepoint"`
759
760 - `defer_loading: optional boolean`
761
762 Whether this MCP tool is deferred and discovered via tool search.
763
764 - `headers: optional map[string] or null`
765
766 Optional HTTP headers to send to the MCP server. Use for authentication
767 or other purposes.
768
769 - `require_approval: optional McpToolApprovalFilter { always, never } or "always" or "never" or null (default: "always")`
770
771 Specify which of the MCP server's tools require approval.
772
773 - `McpToolApprovalFilter object { always, never }`
774
775 Specify which of the MCP server's tools require approval. Can be
776 `always`, `never`, or a filter object associated with tools
777 that require approval.
778
779 - `always: optional object { read_only, tool_names }`
780
781 A filter object to specify which tools are allowed.
782
783 - `read_only: optional boolean`
784
785 Indicates whether or not a tool modifies data or is read-only. If an
786 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
787 it will match this filter.
788
789 - `tool_names: optional array of string`
790
791 List of allowed tool names.
792
793 - `never: optional object { read_only, tool_names }`
794
795 A filter object to specify which tools are allowed.
796
797 - `read_only: optional boolean`
798
799 Indicates whether or not a tool modifies data or is read-only. If an
800 MCP server is [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
801 it will match this filter.
802
803 - `tool_names: optional array of string`
804
805 List of allowed tool names.
806
807 - `McpToolApprovalSetting = "always" or "never"`
808
809 Specify a single approval policy for all tools. One of `always` or
810 `never`. When set to `always`, all tools will require approval. When
811 set to `never`, all tools will not require approval.
812
813 - `"always"`
814
815 - `"never"`
816
817 - `server_description: optional string`
818
819 Optional description of the MCP server, used to provide more context.
820
821 - `server_url: optional string`
822
823 The URL for the MCP server. One of `server_url`, `connector_id`, or
824 `tunnel_id` must be provided.
825
826 `format: uri`
827
828 - `tunnel_id: optional string`
829
830 The Secure MCP Tunnel ID to use instead of a direct server URL. One of
831 `server_url`, `connector_id`, or `tunnel_id` must be provided.
832
833 `pattern: ^tunnel_[a-z0-9]{32}$`
834
835 - `tracing: optional RealtimeTracingConfig or null`
836
837 Realtime API can write session traces to the [Traces Dashboard](https://platform.openai.com/logs?api=traces). Set to null to disable tracing. Once
838 tracing is enabled for a session, the configuration cannot be modified.
839
840 `auto` will create a trace for the session with default values for the
841 workflow name, group id, and metadata.
842
843 - `Auto = "auto"`
844
845 Enables tracing and sets default values for tracing configuration options. Always `auto`.
846
847 - `"auto"`
848
849 - `TracingConfiguration object { group_id, metadata, workflow_name }`
850
851 Granular configuration for tracing.
852
853 - `group_id: optional string`
854
855 The group id to attach to this trace to enable filtering and
856 grouping in the Traces Dashboard.
857
858 - `metadata: optional unknown`
859
860 The arbitrary metadata to attach to this trace to enable
861 filtering in the Traces Dashboard.
862
863 - `workflow_name: optional string`
864
865 The name of the workflow to attach to this trace. This is used to
866 name the trace in the Traces Dashboard.
867
868 - `truncation: optional RealtimeTruncation`
869
870 When the number of tokens in a conversation exceeds the model's input token limit, the conversation be truncated, meaning messages (starting from the oldest) will not be included in the model's context. A 32k context model with 4,096 max output tokens can only include 28,224 tokens in the context before truncation occurs.
871
872 Clients can configure truncation behavior to truncate with a lower max token limit, which is an effective way to control token usage and cost.
873
874 Truncation will reduce the number of cached tokens on the next turn (busting the cache), since messages are dropped from the beginning of the context. However, clients can also configure truncation to retain messages up to a fraction of the maximum context size, which will reduce the need for future truncations and thus improve the cache rate.
875
876 Truncation can be disabled entirely, which means the server will never truncate but would instead return an error if the conversation exceeds the model's input token limit.
877
878 - `"auto" or "disabled"`
879
880 The truncation strategy to use for the session. `auto` is the default truncation strategy. `disabled` will disable truncation and emit errors when the conversation exceeds the input token limit.
881
882 - `"auto"`
883
884 - `"disabled"`
885
886 - `RetentionRatioTruncation object { retention_ratio, type, token_limits }`
887
888 Retain a fraction of the conversation tokens when the conversation exceeds the input token limit. This allows you to amortize truncations across multiple turns, which can help improve cached token usage.
889
890 - `retention_ratio: number`
891
892 Fraction of post-instruction conversation tokens to retain (`0.0` - `1.0`) when the conversation exceeds the input token limit. Setting this to `0.8` means that messages will be dropped until 80% of the maximum allowed tokens are used. This helps reduce the frequency of truncations and improve cache rates.
893
894 `minimum: 0`, `maximum: 1`
895
896 - `type: "retention_ratio"`
897
898 Use retention ratio truncation.
899
900 - `"retention_ratio"`
901
902 - `token_limits: optional object { post_instructions }`
903
904 Optional custom token limits for this truncation strategy. If not provided, the model's default token limits will be used.
905
906 - `post_instructions: optional integer`
907
908 Maximum tokens allowed in the conversation after instructions (which including tool definitions). For example, setting this to 5,000 would mean that truncation would occur when the conversation exceeds 5,000 tokens after instructions. This cannot be higher than the model's context window size minus the maximum output tokens.
909
910 `minimum: 0`
911
912### Body Parameters
913
914Content type: `application/sdp`
915
916- `body: string`
917
918 WebRTC SDP offer. Use this variant when you have previously created an
919 ephemeral **session token** and are authenticating the request with it.
920 Realtime session parameters will be retrieved from the session token.
921
10### Example922### Example
11 923
12```http924```http
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `target_uri: string`21- `target_uri: string`
20 22
21 URI that should appear in the SIP Refer-To header. Supports values like23 URI that should appear in the SIP Refer-To header. Supports values like
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `status_code: optional integer`21- `status_code: optional integer`
20 22
21 SIP response code to send back to the caller. Defaults to `603` (Decline)23 SIP response code to send back to the caller. Defaults to `603` (Decline)
20 20
21### Body Parameters21### Body Parameters
22 22
23Content type: `application/json`
24
23- `expires_after: optional object { anchor, seconds }`25- `expires_after: optional object { anchor, seconds }`
24 26
25 Configuration for the client secret expiration. Expiration refers to the time after which27 Configuration for the client secret expiration. Expiration refers to the time after which
100 102
101 - `"audio/pcma"`103 - `"audio/pcma"`
102 104
103105 - `noise_reduction: optional object { type }` - `noise_reduction: optional object { strength, type }`
104 106
105 Configuration for input audio noise reduction. This can be set to `null` to turn off.107 Configuration for input audio noise reduction. This can be set to `null` to turn off.
106 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.108 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
107 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.109 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
108 110
111 - `strength: optional number (default: 1)`
112
113 Input noise suppression strength. Higher values apply more suppression.
114 Defaults to 1 when noise reduction is first enabled. Omitting strength
115 from a session update preserves the current strength.
116
117 `minimum: 0`, `maximum: 1`
118
109 - `type: optional NoiseReductionType`119 - `type: optional NoiseReductionType`
110 120
111 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.121 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
950 960
951 The PCM audio format. Only a 24kHz sample rate is supported.961 The PCM audio format. Only a 24kHz sample rate is supported.
952 962
953963 - `noise_reduction: optional object { type }` - `noise_reduction: optional object { strength, type }`
954 964
955 Configuration for input audio noise reduction. This can be set to `null` to turn off.965 Configuration for input audio noise reduction. This can be set to `null` to turn off.
956 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.966 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
957 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.967 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
958 968
969 - `strength: optional number (default: 1)`
970
971 Input noise suppression strength. Higher values apply more suppression.
972 Defaults to 1 when noise reduction is first enabled. Omitting strength
973 from a session update preserves the current strength.
974
975 `minimum: 0`, `maximum: 1`
976
959 - `type: optional NoiseReductionType`977 - `type: optional NoiseReductionType`
960 978
961 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.979 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
1148 1166
1149 - `"audio/pcma"`1167 - `"audio/pcma"`
1150 1168
11511169 - `noise_reduction: optional object { type } or null (default: null)` - `noise_reduction: optional object { strength, type } or null (default: null)`
1152 1170
1153 Configuration for input audio noise reduction. This can be set to `null` to turn off.1171 Configuration for input audio noise reduction. This can be set to `null` to turn off.
1154 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.1172 Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.
1155 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.1173 Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
1156 1174
1175 - `strength: optional number (default: 1)`
1176
1177 Input noise suppression strength. Higher values apply more suppression.
1178 Defaults to 1 when noise reduction is first enabled. Omitting strength
1179 from a session update preserves the current strength.
1180
1181 `minimum: 0`, `maximum: 1`
1182
1157 - `type: optional NoiseReductionType`1183 - `type: optional NoiseReductionType`
1158 1184
1159 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.1185 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
1162 1188
1163 - `"far_field"`1189 - `"far_field"`
1164 1190
11651191 - `transcription: optional object { language, languages, model, prompt } or null` - `transcription: optional object { keywords, language, languages, 2 more } or null`
1166 1192
1167 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.1193 Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](/api/reference/resources/audio/subresources/transcriptions/methods/create) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.
1168 1194
1195 - `keywords: optional array of string`
1196
1197 Words or phrases configured to guide transcription of the input audio.
1198
1169 - `language: optional string or null`1199 - `language: optional string or null`
1170 1200
1171 The language of the input audio.1201 The language of the input audio.
1977 2007
1978 The PCM audio format. Only a 24kHz sample rate is supported.2008 The PCM audio format. Only a 24kHz sample rate is supported.
1979 2009
19802010 - `noise_reduction: optional object { type } or null` - `noise_reduction: optional object { strength, type } or null`
1981 2011
1982 Configuration for input audio noise reduction.2012 Configuration for input audio noise reduction.
1983 2013
2014 - `strength: optional number (default: 1)`
2015
2016 Input noise suppression strength. Higher values apply more suppression.
2017 Defaults to 1 when noise reduction is first enabled. Omitting strength
2018 from a session update preserves the current strength.
2019
2020 `minimum: 0`, `maximum: 1`
2021
1984 - `type: optional NoiseReductionType`2022 - `type: optional NoiseReductionType`
1985 2023
1986 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.2024 Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
1987 2025
19882026 - `transcription: optional object { language, languages, model, prompt } or null` - `transcription: optional object { keywords, language, languages, 2 more } or null`
1989 2027
1990 Configuration of the transcription model.2028 Configuration of the transcription model.
1991 2029
2030 - `keywords: optional array of string`
2031
2032 Words or phrases configured to guide transcription of the input audio.
2033
1992 - `language: optional string or null`2034 - `language: optional string or null`
1993 2035
1994 The language of the input audio.2036 The language of the input audio.
2099 "type": "audio/pcm"2141 "type": "audio/pcm"
2100 },2142 },
2101 "noise_reduction": {2143 "noise_reduction": {
2144 "strength": 0,
2102 "type": "near_field"2145 "type": "near_field"
2103 },2146 },
2104 "transcription": {2147 "transcription": {
2148 "keywords": [
2149 "string"
2150 ],
2105 "language": "language",2151 "language": "language",
2106 "languages": [2152 "languages": [
2107 "string"2153 "string"
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `client_secret: object { expires_at, value }`21- `client_secret: object { expires_at, value }`
20 22
21 Ephemeral key returned by the API.23 Ephemeral key returned by the API.
489 491
490 - `"far_field"`492 - `"far_field"`
491 493
492494 - `transcription: optional object { language, languages, model, prompt }` - `transcription: optional object { keywords, language, languages, 2 more }`
493 495
494 Configuration for input audio transcription.496 Configuration for input audio transcription.
495 497
498 - `keywords: optional array of string`
499
500 Words or phrases configured to guide transcription of the input audio.
501
496 - `language: optional string or null`502 - `language: optional string or null`
497 503
498 The language of the input audio.504 The language of the input audio.
758 "type": "near_field"764 "type": "near_field"
759 },765 },
760 "transcription": {766 "transcription": {
767 "keywords": [
768 "string"
769 ],
761 "language": "language",770 "language": "language",
762 "languages": [771 "languages": [
763 "string"772 "string"
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `include: optional array of "item.input_audio_transcription.logprobs"`21- `include: optional array of "item.input_audio_transcription.logprobs"`
20 22
21 The set of items to include in the transcription. Current available items are:23 The set of items to include in the transcription. Current available items are:
170 172
171 The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.173 The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
172 174
173175- `input_audio_transcription: optional object { language, languages, model, prompt }`- `input_audio_transcription: optional object { keywords, language, languages, 2 more }`
174 176
175 Configuration of the transcription model.177 Configuration of the transcription model.
176 178
179 - `keywords: optional array of string`
180
181 Words or phrases configured to guide transcription of the input audio.
182
177 - `language: optional string or null`183 - `language: optional string or null`
178 184
179 The language of the input audio.185 The language of the input audio.
269 },275 },
270 "input_audio_format": "input_audio_format",276 "input_audio_format": "input_audio_format",
271 "input_audio_transcription": {277 "input_audio_transcription": {
278 "keywords": [
279 "string"
280 ],
272 "language": "language",281 "language": "language",
273 "languages": [282 "languages": [
274 "string"283 "string"
16 16
17### Body Parameters17### Body Parameters
18 18
19Content type: `application/json`
20
19- `session: RealtimeTranslationSessionCreateRequest`21- `session: RealtimeTranslationSessionCreateRequest`
20 22
21 Realtime translation session configuration. Translation sessions stream source23 Realtime translation session configuration. Translation sessions stream source
31 33
32 - `input: optional object { noise_reduction, transcription }`34 - `input: optional object { noise_reduction, transcription }`
33 35
3436 - `noise_reduction: optional object { type } or null` - `noise_reduction: optional object { type, strength } or null`
35 37
36 Optional input noise reduction. Set to `null` to disable it.38 Optional input noise reduction. Set to `null` to disable it.
37 39
43 45
44 - `"far_field"`46 - `"far_field"`
45 47
48 - `strength: optional number (default: 1)`
49
50 Input noise suppression strength. Higher values apply more suppression.
51 Defaults to 1 when noise reduction is first enabled. Omitting strength
52 from a session update preserves the current strength.
53
54 `minimum: 0`, `maximum: 1`
55
46 - `transcription: optional object { model } or null`56 - `transcription: optional object { model } or null`
47 57
48 Optional source-language transcription. When configured, the server emits58 Optional source-language transcription. When configured, the server emits
105 115
106 - `input: optional object { noise_reduction, transcription }`116 - `input: optional object { noise_reduction, transcription }`
107 117
108118 - `noise_reduction: optional object { type } or null` - `noise_reduction: optional object { type, strength } or null`
109 119
110 Optional input noise reduction.120 Optional input noise reduction.
111 121
117 127
118 - `"far_field"`128 - `"far_field"`
119 129
130 - `strength: optional number (default: 1)`
131
132 Input noise suppression strength. Higher values apply more suppression.
133 Defaults to 1 when noise reduction is first enabled. Omitting strength
134 from a session update preserves the current strength.
135
136 `minimum: 0`, `maximum: 1`
137
120 - `transcription: optional object { model } or null`138 - `transcription: optional object { model } or null`
121 139
122 Optional source-language transcription. When configured, the server emits140 Optional source-language transcription. When configured, the server emits
177 "audio": {195 "audio": {
178 "input": {196 "input": {
179 "noise_reduction": {197 "noise_reduction": {
180198 "type": "near_field" "type": "near_field",
199 "strength": 0
181 },200 },
182 "transcription": {201 "transcription": {
183 "model": "model"202 "model": "model"
27 27
28 - `input: optional object { noise_reduction, transcription }`28 - `input: optional object { noise_reduction, transcription }`
29 29
3030 - `noise_reduction: optional object { type } or null` - `noise_reduction: optional object { type, strength } or null`
31 31
32 Optional input noise reduction. Set to `null` to disable it.32 Optional input noise reduction. Set to `null` to disable it.
33 33
39 39
40 - `"far_field"`40 - `"far_field"`
41 41
42 - `strength: optional number (default: 1)`
43
44 Input noise suppression strength. Higher values apply more suppression.
45 Defaults to 1 when noise reduction is first enabled. Omitting strength
46 from a session update preserves the current strength.
47
48 `minimum: 0`, `maximum: 1`
49
42 - `transcription: optional object { model } or null`50 - `transcription: optional object { model } or null`
43 51
44 Optional source-language transcription. When configured, the server emits52 Optional source-language transcription. When configured, the server emits
96 96
97 - `input: optional object { noise_reduction, transcription }`97 - `input: optional object { noise_reduction, transcription }`
98 98
9999 - `noise_reduction: optional object { type } or null` - `noise_reduction: optional object { type, strength } or null`
100 100
101 Optional input noise reduction.101 Optional input noise reduction.
102 102
108 108
109 - `"far_field"`109 - `"far_field"`
110 110
111 - `strength: optional number (default: 1)`
112
113 Input noise suppression strength. Higher values apply more suppression.
114 Defaults to 1 when noise reduction is first enabled. Omitting strength
115 from a session update preserves the current strength.
116
117 `minimum: 0`, `maximum: 1`
118
111 - `transcription: optional object { model } or null`119 - `transcription: optional object { model } or null`
112 120
113 Optional source-language transcription. When configured, the server emits121 Optional source-language transcription. When configured, the server emits
205 213
206 - `input: optional object { noise_reduction, transcription }`214 - `input: optional object { noise_reduction, transcription }`
207 215
208216 - `noise_reduction: optional object { type } or null` - `noise_reduction: optional object { type, strength } or null`
209 217
210 Optional input noise reduction.218 Optional input noise reduction.
211 219
217 225
218 - `"far_field"`226 - `"far_field"`
219 227
228 - `strength: optional number (default: 1)`
229
230 Input noise suppression strength. Higher values apply more suppression.
231 Defaults to 1 when noise reduction is first enabled. Omitting strength
232 from a session update preserves the current strength.
233
234 `minimum: 0`, `maximum: 1`
235
220 - `transcription: optional object { model } or null`236 - `transcription: optional object { model } or null`
221 237
222 Optional source-language transcription. When configured, the server emits238 Optional source-language transcription. When configured, the server emits
10 10
11### Body Parameters11### Body Parameters
12 12
13Content type: `application/json`
14
13- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 107 more or string or null`15- `model: "gpt-6-astra" or "gpt-6.1-sol" or "gpt-6.1-terra" or 107 more or string or null`
14 16
15 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.17 Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guide](/api/docs/models) to browse and compare available models.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `access_programs: optional object { cyber }`19- `access_programs: optional object { cyber }`
18 20
19 Domain-specific access programs to use for this request.21 Domain-specific access programs to use for this request.
10 10
11### Body Parameters11### Body Parameters
12 12
13Content type: `application/json`
14
13- `conversation: optional string or ResponseConversationParam or null`15- `conversation: optional string or ResponseConversationParam or null`
14 16
15 The conversation that this response belongs to. Items from this conversation are prepended to `input_items` for this response request.17 The conversation that this response belongs to. Items from this conversation are prepended to `input_items` for this response request.
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `files: array of string or string`13- `files: array of string or string`
12 14
13 Skill files to upload (directory upload) or a single zip file.15 Skill files to upload (directory upload) or a single zip file.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `default_version: string`19- `default_version: string`
18 20
19 The skill version number to set as default.21 The skill version number to set as default.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `files: array of string or string`19- `files: array of string or string`
18 20
19 Skill files to upload (directory upload) or a single zip file.21 Skill files to upload (directory upload) or a single zip file.
21 21
22### Body Parameters22### Body Parameters
23 23
24Content type: `application/json`
25
24- `part_ids: array of string`26- `part_ids: array of string`
25 27
26 The ordered list of Part IDs.28 The ordered list of Part IDs.
26 26
27### Body Parameters27### Body Parameters
28 28
29Content type: `application/json`
30
29- `bytes: integer`31- `bytes: integer`
30 32
31 The number of bytes in the file you are uploading.33 The number of bytes in the file you are uploading.
16 16
17 The ID of the Upload.17 The ID of the Upload.
18 18
19### Body Parameters
20
21Content type: `multipart/form-data`
22
23- `data: string`
24
25 The chunk of bytes for this Part.
26
19### Returns27### Returns
20 28
21- `UploadPart object { id, created_at, object, upload_id }`29- `UploadPart object { id, created_at, object, upload_id }`
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `chunking_strategy: optional AutoFileChunkingStrategyParam or StaticFileChunkingStrategyObjectParam`13- `chunking_strategy: optional AutoFileChunkingStrategyParam or StaticFileChunkingStrategyObjectParam`
12 14
13 The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.15 The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `query: string or array of string`19- `query: string or array of string`
18 20
19 A query string for a search21 A query string for a search
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `expires_after: optional object { anchor, days } or null`19- `expires_after: optional object { anchor, days } or null`
18 20
19 The expiration policy for a vector store.21 The expiration policy for a vector store.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `attributes: optional map[string or number or boolean] or null`19- `attributes: optional map[string or number or boolean] or null`
18 20
19 Set of 16 key-value pairs that can be attached to an object. This can be21 Set of 16 key-value pairs that can be attached to an object. This can be
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `file_id: string`19- `file_id: string`
18 20
19 A [File](/api/reference/resources/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. For multi-file ingestion, we recommend [`file_batches`](/api/reference/resources/vector_stores/subresources/file_batches/methods/create) to minimize per-vector-store write requests.21 A [File](/api/reference/resources/files) ID that the vector store should use. Useful for tools like `file_search` that can access files. For multi-file ingestion, we recommend [`file_batches`](/api/reference/resources/vector_stores/subresources/file_batches/methods/create) to minimize per-vector-store write requests.
18 18
19### Body Parameters19### Body Parameters
20 20
21Content type: `application/json`
22
21- `attributes: map[string or number or boolean] or null`23- `attributes: map[string or number or boolean] or null`
22 24
23 Set of 16 key-value pairs that can be attached to an object. This can be25 Set of 16 key-value pairs that can be attached to an object. This can be
8 8
9### Body Parameters9### Body Parameters
10 10
11Content type: `application/json`
12
11- `event_types: array of "batch.completed" or "batch.failed" or "batch.expired" or 24 more`13- `event_types: array of "batch.completed" or "batch.failed" or "batch.expired" or 24 more`
12 14
13 The event types that trigger deliveries to this endpoint.15 The event types that trigger deliveries to this endpoint.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `keep_old_secret_active_for_24_hours: optional boolean`19- `keep_old_secret_active_for_24_hours: optional boolean`
18 20
19 Whether to keep the previous signing secret valid for 24 hours after rotation. Defaults to false, which invalidates the previous secret immediately.21 Whether to keep the previous signing secret valid for 24 hours after rotation. Defaults to false, which invalidates the previous secret immediately.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `event_type: "batch.completed" or "batch.failed" or "batch.expired" or 24 more`19- `event_type: "batch.completed" or "batch.failed" or "batch.expired" or 24 more`
18 20
19 The event type to send as a sample delivery.21 The event type to send as a sample delivery.
14 14
15### Body Parameters15### Body Parameters
16 16
17Content type: `application/json`
18
17- `event_types: optional array of "batch.completed" or "batch.failed" or "batch.expired" or 24 more`19- `event_types: optional array of "batch.completed" or "batch.failed" or "batch.expired" or 24 more`
18 20
19 The complete set of event types that should trigger deliveries.21 The complete set of event types that should trigger deliveries.