v2

latestOpenAPI 3.1.02026-07-312303692.4 MB
Authentication

Rotate Poller Token

Create a new auth token that can only use the poller API.

post/api/v1/auth/app/{app_id}/poller/{endpoint_id}/token/rotate

Path parameters

app_idstring required

The Application's ID or UID.

Example:unique-identifier

The Application's ID or UID.

endpoint_idstring required

The Endpoint's ID or UID.

Example:unique-identifier

The Endpoint's ID or UID.

Headers

idempotency-keystring

The request's idempotency key

Request body

expiryinteger nullable

How long the token will be valid for, in seconds. Can be up to 31,536,000 seconds (1 year).

oldTokenExpiryinteger

Updates the previous token's expiration, in seconds.

If set to 0, the old token will immediately be revoked. Must be between 0 and 86,400 seconds (1 day).

Defaults to 300 seconds (5 minutes).

Response

tokenstring required
idstring required
namestring nullable
createdAtstring date-time required
expiresAtstring date-time nullable
scopesstring[] nullable