Marketplace API / Types

AblyTokenRequest

Object

A signed request the Ably SDK exchanges for a token. Its fields are opaque to the client and are forwarded as is.

type AblyTokenRequest

Fields

FieldTypeDescription
capabilityString!
The JSON-encoded capability map, as Ably signs it. A String and not JSON because the signature covers this exact text. Every entry is subscribe only.
clientIdString
The Ably client ID the token is bound to. Null for a caller with no session. Opaque to the client.
keyNameNonEmptyString!
The public name of the signing key.
macNonEmptyString!
The request signature.
nonceNonEmptyString!
A single-use random value. Ably refuses a repeated request.
timestampFloat!
The time of the request as milliseconds since the Unix epoch. A Float and not DateTime because the signature covers this exact number.
ttlPositiveInt!
The requested token lifetime in milliseconds. The server sets it. Ably may issue a shorter token.

Returned by