API → UsersGet a session for your user

Parameters

Name

Type

Req.

  • token

    string / UUID
    required

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
get
/user/session/{token}
$ curl "https://api.zoo.dev/user/session/{token}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "created_at": "2024-04-12T19:25:04.154Z",
  "expires_at": "2024-04-12T19:25:04.154Z",
  "token": "b0b0f5b4-9907-45d8-9a55-4718a421c261",
  "updated_at": "2024-04-12T19:25:04.154Z",
  "user_id": "1e15e82d-361c-4193-b3d2-4476aebb9832"
}