Upload files over HTTP
Create an API key with upload permission and configure your client to send it to your instance over HTTPS. V7 uses POST /api/v1/upload with a multipart field called file.
curl --fail-with-body 'https://files.example.com/api/v1/upload' \
-H "X-API-Key: ${CHIBISAFE_API_KEY}" \
-F '[email protected]'
Load CHIBISAFE_API_KEY from your local secret store. The JSON response includes the stored filename. With the standard deployment, prepend your public origin and a slash to form its media URL. Treat the result as a direct share link.
For a folder or tag destination, use the appropriate request headers chibi-folder-uuid and chibi-tag-uuid with the collection UUID. The account still needs access to that destination. To record provenance on an upload, supply form fields such as source, sourceCreator, or sourcePublishedDate in ISO date format.
For resumable clients, create an upload session, send its numbered chunks, then poll the session status. See your instance's API reference at /api/docs for current request and response schemas. Third-party clients hardcoded to the v6 /api/upload route need a v7-compatible configuration. The v6 uploaders remain available for v6 installations.