v1

latestOpenAPI 3.1.02026-08-06492794.7 KB
Drive Folders

Get signed URL for direct-to-cloud upload

Get a signed URL for direct-to-cloud upload using ActiveStorage.

post/drive_folders/direct_upload

Request body

Example request

{
  "blob": {
    "filename": "document.pdf",
    "content_type": "application/pdf",
    "byte_size": 123456,
    "checksum": "nYXrj5mT5pP2nL0C4D5N0w==",
    "metadata": {
      "owner": "client",
      "source": "mobile_upload"
    }
  }
}

Response

Signed URL for direct-to-cloud upload

signed_idstring required

Signed blob ID to be used when attaching the file to a record.

Example response

{
  "signed_id": "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJsb2Igc2lnbmVkIn19...",
  "direct_upload": {
    "url": "https://my-bucket.s3.amazonaws.com/rails/active_storage/blobs/...",
    "headers": {
      "Content-Type": "application/pdf",
      "Content-MD5": "nYXrj5mT5pP2nL0C4D5N0w=="
    }
  }
}