---
title: "Create Share Token"
method: POST
path: "/v1/rooms/{room_sid}/share-tokens"
tags: ["rooms"]
---

# Create Share Token

`POST /v1/rooms/{room_sid}/share-tokens`

## Request

- Base URL: `https://api.prod-us.streem.cloud`
- URL: `https://api.prod-us.streem.cloud/v1/rooms/{room_sid}/share-tokens`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/streem/apis/streem-api/docs/v1/rooms/:room_sid/share-tokens/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new Share Token, which can be provided as `Authorization: ShareToken [token]` to gain readonly access to the Room

## Path parameters

- `room_sid` string, required

## Request body

- StreemApiCreateRoomShareTokenRequest
  - `expires_at` string, date-time
  - `label` string

## Response `default`

default response

- StreemApiCreateRoomShareTokenResponse
  - `share_token` StreemApiRoomShareToken
    - `sid` string
    - `expires_at` string, date-time
    - `room_sid` string
    - `label` string
    - `usage_count` integer
    - `share_url` string

---

[API](https://skmtc.dev/streem/apis/streem-api.md) - [All operations](https://skmtc.dev/streem/apis/streem-api/llms.txt) - [OpenAPI document](https://skmtc.dev/streem/apis/streem-api/revisions/04250faebd19?raw)
