---
title: "Get signed URL for direct-to-cloud upload"
method: POST
path: "/drive_folders/direct_upload"
tags: ["Drive Folders"]
---

# Get signed URL for direct-to-cloud upload

`POST /drive_folders/direct_upload`

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

## Request body

- object
  - `blob` object, required
    - `filename` string, required — File name
    - `content_type` string, required — MIME type of the file
    - `byte_size` integer, required — Byte size of the file
    - `checksum` string, required — Base64-encoded MD5 checksum of the file contents.
    - `metadata` object — Arbitrary metadata of the file

## Response `200`

Signed URL for direct-to-cloud upload

- object
  - `signed_id` string, required — Signed blob ID to be used when attaching the file to a record.
  - `direct_upload` object, required
    - `url` string, uri, required — Pre-signed URL to upload the file bytes to.
    - `headers` object, required — Headers that must be included when uploading the file to the pre-signed URL (e.g. Content-Type, Content-MD5).

---

[API](https://skmtc.net/gettruss/apis/api-v1.md) · [All operations](https://skmtc.net/gettruss/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gettruss/api-v1/versions/7c956b3d1bdf/schema)
