Skip to main content

Read Sessions

POST /sessions/fetch

Get the information of sessions of Mixin User, request parameter is an array of users' id.

There maybe multiple sessions per user, which have different public_key.

info

Only returns sessions of existed users, non-existent user would be ignored.

Endpoint URL

 https://api.mixin.one/sessions/fetch

Payload


// array of user_ids
[
"UUID",
"UUID",
"UUID",
]

Example request

curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/sessions/fetch --data '["06aed1e3-bd77-4a59-991a-5bb5ae6fbb09"]'
Response
// public_key is in format of base64 RawURLEncoding
{
"data": [
{
"user_id": "773e5e77-4107-45c2-b648-8fc722ed77f5",
"session_id": "563e5e77-4107-45c2-b648-8fc722ed77f5",
"public_key": "YYZdUJIdI_cLINM-nO5Ol4aHiD9teT9zptlsrJIyOwA",
"platform": "Android",
},
...
]
}