---
title: "Set Signed Cookies"
method: POST
path: "/api/v1/files/signed-cookies"
tags: ["files"]
---

# Set Signed Cookies

`POST /api/v1/files/signed-cookies`

Set http-only, secure (signed) cookies for accessing (only READ access) files via AWS CloudFront across all accessible workspaces. If no workspace id is provided, no cookies will be set.

## Request body

- GenerateSignedCookiesCommand
  - `workspaceId` string, uuid4, nullable, required — Must be set to access files within workspace

## Response `200`

Signed cookies set successfully

- unknown

## Other responses

- `401` — Unauthorized
- `403` — Permission denied, e.g., if user has no access to workspace in the body
- `422` — Validation Error

---

[API](https://skmtc.dev/askui/apis/askui-workspaces-api.md) · [All operations](https://skmtc.dev/askui/apis/askui-workspaces-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/askui/askui-workspaces-api/revisions/b796c74292ac/schema)
