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://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
FileID = "file-14";
Result = OPI_OpenAI.GetFileInformation(URL, Token, FileID);
- Bash
- CMD/Bat
oint openai GetFileInformation \
--url "https://api.athenaeum.digital:1122/" \
--token "***" \
--id "file-4"
oint openai GetFileInformation ^
--url "https://api.athenaeum.digital:1122/" ^
--token "***" ^
--id "file-4"
Result
{
"id": "file-20",
"object": "file",
"bytes": 2114025,
"created_at": "2025-06-16T18:34:16.153579044Z",
"filename": "8c0197c7-42d8-4ee6-9918-33d113e6414f.png",
"purpose": "assistants"
}