You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET https://YOUR_RESOURCE_NAME.openai.azure.com/openai/threads/{thread_id}/messages/{message_id}/files?api-version=2024-05-01-preview
143
-
```
144
-
145
-
Returns a list of message files.
146
-
147
-
|Parameter| Type | Required | Description |
148
-
|---|---|---|---|
149
-
|`thread_id`| string | Required | The ID of the thread that the message and files belong to. |
150
-
|`message_id`| string | Required | The ID of the message that the files belong to. |
151
-
152
-
**Query Parameters**
153
-
154
-
|Name | Type | Required | Description |
155
-
|--- |--- |--- |--- |
156
-
|`limit`| integer | Optional - Defaults to 20 |A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.|
157
-
|`order`| string | Optional - Defaults to desc |Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.|
158
-
|`after`| string | Optional | A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.|
159
-
|`before`| string | Optional | A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.|
160
-
161
-
### Returns
162
-
163
-
A list of [message file](#message-file-object) objects
@@ -377,14 +218,3 @@ Represents a message within a thread.
377
218
|`run_id`| string or null |If applicable, the ID of the run associated with the authoring of this message.|
378
219
|`file_ids`| array |A list of file IDs that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files. A maximum of 10 files can be attached to a message.|
379
220
|`metadata`| map |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. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.|
380
-
381
-
## Message file object
382
-
383
-
A list of files attached to a message.
384
-
385
-
|Name | Type | Description |
386
-
|--- |--- |--- |
387
-
|`id`| string | The identifier, which can be referenced in API endpoints.|
388
-
|`object`|string| The object type, which is always `thread.message.file`.|
389
-
|`created_at`|integer | The Unix timestamp (in seconds) for when the message file was created.|
390
-
|`message_id`| string | The ID of the message that the File is attached to.|
0 commit comments