Ably · Example Payload

Ably Requestaccesstoken Example

RealtimeWebSocketsPub/SubMessagingStreamingPush NotificationsChatLiveSync

Ably Requestaccesstoken Example is an example object payload from Ably, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "requestAccessToken",
  "method": "POST",
  "path": "/keys/{keyName}/requestToken",
  "summary": "Request an access token",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "keyName": "YourKey.Name",
        "timestamp": "1559124196551",
        "capability": {
          "channel1": [
            "publish",
            "subscribe"
          ],
          "wildcard:channels:*": [
            "publish"
          ]
        }
      }
    }
  ],
  "responseExamples": []
}