Skip to Content
Omnibase

Upload file to storage

POST
/api/v1/storage/upload

Storage object paths are unique across the entire bucket, not per tenant. Prefix paths with the tenant ID or another unique namespace, for example tenants/<tenant_id>/avatars/me.png. Uploading to an existing path returns 409 Conflict.

Authorization

headerX-Session-Token<token>

Kratos session JWT token. Alternative to cookie authentication for non-browser clients.

Request Body

application/json
  1. body
metadata?
path*string

Bucket-wide object path. Prefix with the tenant ID or another unique namespace.

Response Body

OK

application/json
  1. response
id*string
path*string
upload_url*string
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/storage/upload' \  -H 'Content-Type: application/json' \  -d '{  "path": "tenants/00000000-0000-4000-8000-000000000000/avatars/me.png"}'
Example Response
{  "id": "string",  "path": "string",  "upload_url": "string"}