---
title: "Generate SAS Token for Blob Storage Access"
method: POST
path: "/uaas/stacks/{stack_id}/nds/sas-token"
tags: ["UniFS As A Service (UaaS)"]
---

# Generate SAS Token for Blob Storage Access

`POST /uaas/stacks/{stack_id}/nds/sas-token`

## Request

- Base URL: `https://am1.portal.api.nasuni.com`
- URL: `https://am1.portal.api.nasuni.com/uaas/stacks/{stack_id}/nds/sas-token`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nasuni/apis/portal-api/docs/uaas/stacks/:stack_id/nds/sas-token/post.ts> (a function with typed inputs; its response is checked against the schema)

Generate a SAS token for blob storage access.

This endpoint allows users with SAS generation permissions to create time-limited
access tokens for blob storage without exposing the underlying access keys.

## Path parameters

- `stack_id` string, uuid, required

## Request body

- UaasSasTokenRequestDto
  - `selected_key` string, uuid, required
  - `permissions` object
  - `start_date` string, date-time, required
  - `end_date` string, date-time, required

## Response `200`

Successful Response

- UaasSasTokenResponseDto
  - `sas_token` string, required
  - `connection_string` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nasuni/apis/portal-api.md) - [All operations](https://skmtc.dev/nasuni/apis/portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nasuni/apis/portal-api/revisions/2a505bec6d14?raw)
