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
Name | In | Type | Required | Description |
---|---|---|---|---|
next | query | string | false | Redirect to this relative path (eg: /moderation/flags/) |
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X GET /api/v2/user/me/platform_url/ \
-H 'Accept: application/json'
-H "Authorization: Bearer <token>"
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Inline |
Response Schema
Status Code 200
Name | Type | Description |
---|---|---|
» platform_url | string(uri) | The URL to access the platform |
» token_details | Token | Some informative token details |
Example responses
- 200
{
"platform_url": "string(uri)",
"token_details": {Token}
}