---
title: "Create File Access Token"
method: POST
path: "/api/files/{file_id}/access-token"
tags: ["files", "files"]
---

# Create File Access Token

`POST /api/files/{file_id}/access-token`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/files/{file_id}/access-token`
- Auth: none declared

Generate a short-lived opaque token scoped to a single file.

Returns a token valid for 5 minutes that can be used as ?file_token=<token>
in URLs opened in new browser tabs (where Authorization header isn't available).

## Path parameters

- `file_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
