Skip to main content

Platform Url

This endpoint retrieves the platform url starting from the Authorization user token. Using this url, the logged user (must be a staff member) can access the platform to manage the community.

info

This operation requires a staff member user.

HTTP Request

GET /api/v2/user/me/platform_url/

Parameters

NameInTypeRequiredDescription
nextquerystringfalseRedirect to this relative path (eg: /moderation/flags/)

Example Request

const headers = {
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/user/me/platform_url/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeDescription
» platform_urlstring(uri)The URL to access the platform
» token_detailsTokenSome informative token details

Example responses

{
"platform_url": "string(uri)",
"token_details": {Token}
}