Gamma API
AccountSessions

List my sessions

GET
/api/account/sessions

Unexpired ones, most recently used first.

Who may call it: Any signed-in user, for their own account. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Response Body

OK.

application/json
  1. response
sessions*array<>
Example Request
curl -X GET 'http://localhost:3000/api/account/sessions'
Example Response
{  "sessions": [    {      "id": "string",      "userAgent": "string",      "ipAddress": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "current": true    }  ]}