Skip to main content
GET
Get a file
Minimum role required: Viewer

Authorizations

X-Axilio-Api-Key
string
header
required

Customer API key (axl_ prefix).

Path Parameters

file_id
string<uuid>
required

file identifier

Response

OK

One file in the org's library.

created_at
string<date-time>
required

When the file was registered: upload registration, or capture detection.

filename
string
required

Original filename; used as the display name when the file lands on a phone.

id
string
required

File identifier. Unique across the whole library; deliverable to a phone regardless of source.

mime_type
string
required

Declared MIME type, pinned by the presigned upload.

on_phone_count
integer<int64>
required

Distinct phones currently holding or receiving a delivered copy. Informational: deleting the file from the library does not remove these.

preview_state
enum<string>
required

Whether the preview exists, is still being generated, or will never be available for this format.

Available options:
processing,
ready,
unavailable
size_bytes
integer<int64>
required

Declared size in bytes, pinned by the presigned upload.

source
enum<string>
required

How the file entered the library: upload (put in directly), capture (lifted off a session), or message (attached to a message one of the org's dedicated phones received).

Available options:
upload,
capture,
message
status
enum<string>
required

uploading until the object is verified in storage, then ready. For a capture, read capture_state for the fuller lifecycle.

Available options:
uploading,
ready
attachment_url
string

Short-lived signed URL that downloads the file as an attachment under its name. Present only for ready files.

bytes_transferred
integer<int64>

Bytes moved so far for an in-flight phone transfer. Absent until the phone reports progress.

capture_error
string

Reason the phone's upload failed, when it did. Present for captures and message attachments.

capture_state
enum<string>

Upload lifecycle of a file the phone sends itself: detected/uploading while in flight, ready when usable, or a terminal skip/failure with its reason. Present for captures and message attachments.

Available options:
detected,
uploading,
ready,
skipped_size,
skipped_quota,
skipped_type,
dropped_teardown,
failed
checksum
string

SHA-256 of the bytes, computed on the phone while uploading. Present for captures and message attachments.

display_url
string

Short-lived signed URL for a full-resolution JPEG of a HEIC or HEIF original, for display where a browser cannot draw the original. Absent for other types and until generated.

download_url
string

Short-lived signed URL to read the file's bytes. Present only for ready files; re-list to refresh an expired one.

duration_seconds
integer<int64>

Video duration in seconds.

height
integer<int64>

Intrinsic pixel height of the source.

message_id
string

The message this file was attached to. Present for message attachments once the message is stored; a file whose message never arrived still names its phone.

phone_id
string

The phone that received the message this file was attached to. Present for message attachments.

reel_url
string

Short-lived signed URL for the animated hover preview. Videos only; absent until generated.

session_id
string

Session that produced the file. Present only for captures.

surface
enum<string>

Which surface a capture or message attachment came off (phone today). Absent for a direct upload.

Available options:
phone
thumbnail_url
string

Short-lived signed URL for the generated preview image. Absent while generation is pending, and permanently absent for formats without a preview.

width
integer<int64>

Intrinsic pixel width of the source.