---
title: "POST /attachments/signature"
method: POST
path: "/attachments/signature"
tags: ["attachments"]
---

# POST /attachments/signature

`POST /attachments/signature`

Retrieve upload signature.

## Request body

- object
  - `contentType` string, required — Mime type
  - `contentLength` number, required — File size
  - `expiresIn` number — Token expire time, seconds
  - `hash` string — File hash
  - `type` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14, required — Type
  - `baseId` string

## Response `201`

return the upload URL and the key.

- object
  - `url` string, required — Upload url
  - `uploadMethod` string, required — Upload method
  - `token` string, required — Secret key
  - `requestHeaders` object, required

---

[API](https://skmtc.net/teable/apis/teable-app.md) · [All operations](https://skmtc.net/teable/apis/teable-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teable/teable-app/revisions/7515f3b33d79/schema)
