Skip to main content

文件路径

POST http(s)://{{Host}}/v1/files/{file_id}/info

示例

请求

curl --location 'http(s)://{{Host}}/v1/files/{file_id}/info' \
--header 'Authorization: Bearer $OPEN_API_KEY'

响应

{
"id": "${file_id}",
"object": "file",
"path": "${path_of_the_file}"
}

Path parameters

参数类型必需说明
file_idstringRequired要获取路径的文件ID。

Returns

带有path字段的File对象。