---
title: "Get Testing Auth Token"
method: POST
path: "/authtoken"
tags: ["Testing"]
---

# Get Testing Auth Token

`POST /authtoken`

Creates one or more authentication tokens, suitable for testing. This endpoint is only available on the Sandbox Development server.

## Request body

- object
  - `extension_id` string — The Extension Client ID provided by Twitch
  - `channel_id` string — The Twitch Channel ID the extension is installed and activated one
  - `role` string — The access level of the extension user. One of ('viewer', 'broadcaster', 'admin')
  - `user_id` string — The Twitch User ID of the user of the extension. May be the same as the Channel ID
  - `user_ids` string — One or more Twitch User IDs. If provided, the response will contain an array of tokens, one for each User ID provided.

## Response `200`

One or more valid testing JWTs.

- union
  - object
    - `token` string
  - object
    - `tokens` string[]

## Other responses

- `404` — Attempted to retrieve a testing JWT on production.

---

[API](https://skmtc.net/muxy/apis/muxy-s-extension-development-kit.md) · [All operations](https://skmtc.net/muxy/apis/muxy-s-extension-development-kit/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/muxy/muxy-s-extension-development-kit/versions/21b37686a542/schema)
