Waiting for engine...
Skip to main content

eventStreamsTokenCreate

Creates a token with a given name. Users can decide when the token should expire and can also decide what actions should be permitted while using this token.

Description: This mutation generates a new token for authenticating requests to Event Streams APIs. Users can set:

  • Expiration time.
  • Permissions (e.g. produce, consume).

Input:

  • input: EventStreamsEnvironmentTokenCreateInput — Token creation details including name, expiry, permissions, and environment ID.

Example:

mutation createToken{
eventStreamsTokenCreate(input: {
environmentId:"token-abc123"
name: "CreateToken"
allowConsume: true
allowProduce: true
description: "api test"
expirationTime: "2025-05-09T23:59:59-04:00"
}) {
id
name
data
allowConsume
allowProduce
expirationEditable
expirationTime
createdTime
createdBy
description
}
}

eventStreamsTokenCreate(
input: EventStreamsEnvironmentTokenCreateInput
): EventStreamsToken

Arguments

eventStreamsTokenCreate.input ● EventStreamsEnvironmentTokenCreateInput input event-streams-admin

Type

EventStreamsToken object event-streams-admin

Represents Event Streams environment token including jwt token, configurable consume/produce permissions, expiration setting and additional full lifecycle management attributes.

On this Page