Youniton Docs

Files

Upload intents, files and attachments of members and guests.

#A file's metadata and status (the uploader before ownership; afterwards the owner's read policy)

GET/files/{fileId}
Session (app only)F-FIL-01

Path parameters

fileIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The file.application/json

#Redirect to a 60-second signed URL of the file after the owner's decision (browser navigation)

GET/files/{fileId}/download
Session (app only)F-FIL-04

Path parameters

fileIdrequiredstring (uuid)

Query parameters

tenantrequiredstring (uuid)

The tenant id, checked like X-Kanso-Tenant (a navigation cannot send headers).

dispositionstring

One of: attachment inline · Default: "attachment"

Responses

200F-FIL-04.R12 — only when the request accepts application/vnd.kanso.signed-url+json; the same signed URL as JSON, with the headers of the 302.application/vnd.kanso.signed-url+json
302Location is a signed URL valid 60 seconds; Cache-Control no-store, Referrer-Policy no-referrer, X-Content-Type-Options nosniff.

No body.

Errors404409429503One problem shape

#Redirect to a 60-second URL of a preview variant after the owner's decision (browser navigation)

GET/files/{fileId}/preview
Session (app only)F-FIL-03

Path parameters

fileIdrequiredstring (uuid)

Query parameters

variantrequiredstring

One of: thumb view

tenantrequiredstring (uuid)

The tenant id, checked like X-Kanso-Tenant (a navigation cannot send headers).

Responses

200F-FIL-04.R12 — only when the request accepts application/vnd.kanso.signed-url+json; the same signed URL as JSON.application/vnd.kanso.signed-url+json
302Location is a signed URL of the preview, valid 60 seconds, inline disposition, Cache-Control no-store.

No body.

Errors404409503One problem shape

#Authorise an upload to a target, reserve its quota and answer a presigned PUT or multipart parameters

POST/upload-intents
Session (app only)Idempotency-KeyF-FIL-01

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The pending file with its upload instructions.application/json
Errors403404409422429One problem shape

#Complete the upload — the server completes multipart, verifies the size, detects the type and starts the scan

POST/upload-intents/{fileId}/complete
Session (app only)Idempotency-KeyF-FIL-01

Path parameters

fileIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The file, now scanning.application/json
Errors404409422One problem shape

#Sign one multipart operation (create, part, abort) for the file's own staging key

POST/upload-intents/{fileId}/sign
Session (app only)F-FIL-01

Path parameters

fileIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The signed request, valid 15 minutes.application/json
Errors404409422One problem shape

Was this helpful?