---
title: "Sign a file and return a signed URL"
method: POST
path: "/organizations/{organization_name}/file_tokens/{filename+}"
---

# Sign a file and return a signed URL

`POST /organizations/{organization_name}/file_tokens/{filename+}`

## Request

- Base URL: `https://api.salad.com/api/public`
- URL: `https://api.salad.com/api/public/organizations/{organization_name}/file_tokens/{filename+}`
- Auth: one of:
  - API key in header `Salad-Api-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/salad/apis/saladcloud-api/docs/organizations/:organization_name/file_tokens/:filename+/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `organization_name` string, required
- `filename+` string, required

## Request body

- object
  - `method` string: The HTTP method to sign the URL for. Currently only supports GET
  - `exp` string: The expiration ttl of the signed URL in seconds

## Response `200`

Signed URL generated successfully

- object
  - `url` string

---

[API](https://skmtc.dev/salad/apis/saladcloud-api.md) - [All operations](https://skmtc.dev/salad/apis/saladcloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/salad/apis/saladcloud-api/revisions/6ee34c3732f3?raw)
