---
title: "generate a SAS Token for the given Azure Blob storage account and container."
method: GET
path: "/sas/token/{collectionId}"
tags: ["Shared Access Signature (SAS) Tokens for GeoCatalog Asset Access"]
---

# generate a SAS Token for the given Azure Blob storage account and container.

`GET /sas/token/{collectionId}`

Generate a [SAS Token](https://docs.microsoft.com//azure/storage/common/storage-sas-overview#how-a-shared-access-signature-works)
for the given storage account and container. The storage account and container
must be associated with a Planetary Computer dataset indexed by the STAC API.

## Path parameters

- `collectionId` string, required

## Query parameters

- `api-version` string, required
- `duration` integer

## Response `200`

Successful Response

- SharedAccessSignatureToken — Represents a Shared Access Signature (SAS) token response for accessing Azure Blob Storage.
  - `msft:expiry` string, date-time, required — The expiration date and time of the SAS token in UTC.
  - `token` string, required — The SAS token string used for authentication.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-07-13** (2025-04-30-preview) `5ac1a8504c7f` — 2 info
  - api tag `Shared Access Signature (SAS) Tokens for GeoCatalog Asset Access` added
  - api tag `Shared Access Signature (SAS) Tokens to use with Azure SDKs` removed
- **2025-05-15** (2025-04-30-preview) `00cbc3d6d8e0` — 2 info
  - api tag `Shared Access Signature (SAS) Tokens to use with Azure SDKs` added
  - api tag `Shared Access Signature (SAS) Tokens for GeoCatalog Asset Access` removed

[Change history](https://skmtc.dev/azure/apis/orbital-microsoft-planetarycomputer/changes/sas/token/:collectionId/get.md)

---

[API](https://skmtc.dev/azure/apis/orbital-microsoft-planetarycomputer.md) · [All operations](https://skmtc.dev/azure/apis/orbital-microsoft-planetarycomputer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/orbital-microsoft-planetarycomputer/revisions/42447be18bc5/schema)
