---
title: "POST /CreateParticipantToken"
method: POST
path: "/CreateParticipantToken"
---

# POST /CreateParticipantToken

`POST /CreateParticipantToken`

Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire. Tokens always are scoped to the stage for which they are created.

Encryption keys are owned by Amazon IVS and never used directly by your application.

## Request body

- object
  - `stageArn` string, required — ARN of the stage to which this token is scoped.
  - `duration` integer — Duration (in minutes), after which the token expires. Default: 720 (12 hours).
  - `userId` string — Name that can be specified to help identify the token. This can be any UTF-8 encoded text. <i>This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.</i>
  - `attributes` object — Application-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. <i>This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.</i>
  - `capabilities` ParticipantTokenCapability[] — Set of capabilities that the user is allowed to perform in the stage. Default: <code>PUBLISH, SUBSCRIBE</code>.

## Response `200`

Success

- CreateParticipantTokenResponse
  - `participantToken` object — The participant token that was created.
    - `participantId` string — Unique identifier for this participant token, assigned by IVS.
    - `token` string, password — The issued client token, encrypted.
    - `userId` string — Customer-assigned name to help identify the token; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. <i>This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.</i>
    - `attributes` object — Application-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. <i>This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.</i>
    - `duration` integer — Duration (in minutes), after which the participant token expires. Default: 720 (12 hours).
    - `capabilities` ParticipantTokenCapability[] — Set of capabilities that the user is allowed to perform in the stage.
    - `expirationTime` string, date-time — ISO 8601 timestamp (returned as a string) for when this token expires.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ValidationException
- `482` — AccessDeniedException
- `483` — ServiceQuotaExceededException
- `484` — PendingVerification

---

[API](https://skmtc.net/aws/apis/ivs-realtime.md) · [All operations](https://skmtc.net/aws/apis/ivs-realtime/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/ivs-realtime/versions/f8857274a50f/schema)
