---
title: "Register a file upload"
method: POST
path: "/files"
tags: ["files"]
---

# Register a file upload

`POST /files`

Registers an image or video in the org's file library and returns a presigned S3 URL to upload the bytes to. PUT the raw file to upload_url with the declared Content-Type and Content-Length headers before the URL expires. The file becomes pushable to phones once uploaded; the first push verifies the object. Uploads are capped per file by media type and per org by count and total size.

## Request body

- FileCreateRequest — Registers an upload and requests a presigned PUT URL.
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `filename` string, required — Display name for the file (also its name on the phone).
  - `mime_type` string, required — MIME type of the upload; must be an allowed image or video type.
  - `size_bytes` integer, required — Exact size of the upload in bytes; the presigned URL pins it.

## Response `201`

Created

- FileUploadResponse — The registered file and its presigned upload URL.
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `file` FileSummary, required — One file in the org's upload library.
    - `created_at` string, date-time, required — When the upload was registered.
    - `filename` string, required — Original filename; used as the display name when the file lands on a phone.
    - `id` string, required — File identifier.
    - `mime_type` string, required — Declared MIME type, pinned by the presigned upload.
    - `size_bytes` integer, required — Declared size in bytes, pinned by the presigned upload.
    - `status` 'uploading' | 'ready', required — uploading until the object is verified in storage (on the first push), then ready.
  - `upload_expires_in_seconds` integer, required — How long the upload URL stays valid.
  - `upload_url` string, required — Presigned S3 PUT URL. PUT the raw file bytes to it with the declared Content-Type and Content-Length headers.

## Other responses

- `default` — Error

## Changes

- **2026-07-23** `5a989777701c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/axilioai/apis/axilio-api/changes/files/post.md)

---

[API](https://skmtc.dev/axilioai/apis/axilio-api.md) · [All operations](https://skmtc.dev/axilioai/apis/axilio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/axilioai/axilio-api/revisions/fe2a6226c46c/schema)
