Get information about file
Gets information about the file
Function GetFileInformation(Val URL, Val Token, Val FileID, Val AdditionalHeaders = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
URL | --url | String | ✔ | OpenAI server URL |
Token | --token | String | ✔ | OpenAI authorization token |
FileID | --id | String | ✔ | File ID |
AdditionalHeaders | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - Processing result
tip
Method at API documentation: Retrieve file
1C:Enterprise/OneScript code example
URL = "https://hut.openintegrations.dev/localai/";
Token = "12We...";
FileID = "file-18";
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);
- Bash
- CMD/Bat
oint openai GetFileInformation \
--url "https://hut.openintegrations.dev/localai/" \
--token "***" \
--id "file-12"
oint openai GetFileInformation ^
--url "https://hut.openintegrations.dev/localai/" ^
--token "***" ^
--id "file-12"
Result
{
"id": "file-12",
"object": "file",
"bytes": 2114025,
"created_at": "2025-09-15T13:28:56.741982193Z",
"filename": "074cd27a-9288-419b-90dd-fb0640017bbd.png",
"purpose": "assistants"
}