files

Retrieve a file

Returns metadata for a single file.

get/v1/files/{id}

Request

  • Base URL: https://api.aiand.com
  • URL: https://api.aiand.com/v1/files/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Response

The file's metadata

idstring required

Stable file id with file- prefix

object'file' required
bytesinteger required
created_atinteger required

Unix timestamp

expires_atinteger nullable required

Unix timestamp; defaults to 30 days from upload

filenamestring nullable required
purpose'vision' | 'video' | 'audio' | 'document' required
page_countinteger

Rendered page count; present only for document files

Changes

No recorded changes to this operation across all 1 revision of this API.