Dirigible API reference
Endpoints · Files & uploads
Get an upload URL
Docs / Files & uploads / Get an upload URL
POST
https://node.dirigible.app/v1/filesReturns a short-lived presigned URL to upload a file directly to storage, plus the storage path and public url you'll pass when recording the media. Step 1 of 2: after this, PUT the file bytes to uploadUrl with the same Content-Type, then call add-images / add-songs / create-document with the returned storagePath and url.
Authentication
Bearer API key required.
Method
POST · JSON
Sync
Changes appear live in the app.
Parameters
Request body (JSON)
Response fields
uploadUrlstringPresigned PUT URL (valid 1 hour). Upload the bytes here.pathstringStorage path — pass as storagePath / documentPath when recording.urlstringPublic URL of the file once uploaded — pass as url / storageUrl / documentUrl.expiresInintegerSeconds until uploadUrl expires.Status codes
200Success. Returns the resource (or an array); a delete returns { "ok": true }.
401Missing or invalid API key.
404The resource wasn't found (or isn't yours).
400Malformed request body.
curl -X POST "https://node.dirigible.app/v1/files" \
-H "Authorization: Bearer dg_your_key" \
-H "Content-Type: application/json" \
-d '{ "filename": "atrium.jpg", "contentType": "image/jpeg", "kind": "image" }'curlruns against the live API
Sample response
{
"uploadUrl": "https://s3.us-east-005.backblazeb2.com/…?X-Amz-Signature=…",
"path": "moodboards/api/…/atrium.jpg",
"url": "/api/files/moodboards/api/…/atrium.jpg",
"expiresIn": 3600
}json