Marketplace API / Types
AblyTokenRequest
ObjectA signed request the Ably SDK exchanges for a token. Its fields are opaque to the client and are forwarded as is.
type AblyTokenRequestFields
| Field | Type | Description |
|---|---|---|
capability | String! | 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. |
clientId | String | The Ably client ID the token is bound to. Null for a caller with no session. Opaque to the client. |
keyName | NonEmptyString! | The public name of the signing key. |
mac | NonEmptyString! | The request signature. |
nonce | NonEmptyString! | A single-use random value. Ably refuses a repeated request. |
timestamp | Float! | The time of the request as milliseconds since the Unix epoch. A Float and not DateTime because the signature covers this exact number. |
ttl | PositiveInt! | The requested token lifetime in milliseconds. The server sets it. Ably may issue a shorter token. |