Skip to main content

Signin

Signin the user authenticated with the access token

info

This operation requires authentication.

HTTP Request‚Äč

POST /api/v2/sso/signin/

Example Request‚Äč

const inputBody = '{}';
const headers = {
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/sso/signin/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses‚Äč

StatusMeaningDescriptionSchema
200OKnoneInline

Response Schema‚Äč

Status Code 200

NameTypeRequiredRestrictionsDescription
¬Ľ idintegertruenoneA unique internal id identifying the authenticated user
¬Ľ ext_idinteger¬¶nulltruenoneA unique external id identifying the authenticated user
¬Ľ usernamestringtruenoneUsername of the authenticated user
¬Ľ rolestring¬¶nullfalsenoneRole of the user; it can be: admin, moderator, editor
¬Ľ tags[integer]¬¶nullfalsenoneList of tags id

Example responses‚Äč

{
"id": 0,
"ext_id": 0,
"username": "string",
"role": "string",
"tags": [
0
]
}