`GET /v1/me`.
const url = 'https://api.updawg.net/v1/me';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.updawg.net/v1/meThe first call a portal makes, and the one that tells it whether there is a
session at all — so an empty memberships is a real answer rather than an
error. A person who has signed in and belongs to nothing yet is exactly who
the “create an organization” screen is for.
Responses
Section titled “Responses”Who is signed in, and the organizations they are in.
object
The token every mutation has to echo in X-Updawg-Csrf.
Returned here as well as at sign-in, so a page that has been reloaded can get one without signing in again. It is safe to put in this body and not in a cookie: a cross-origin page cannot read a response, and a cookie would travel on every request whether it was wanted or not.
Organizations this person belongs to, and what they may do in each.
object
The API base to send this organization’s requests to: its region’s.
null when this deployment does not know that region’s address.
Where the organization’s data lives, eu or us (DAWG-159).
Example
{ "memberships": [ { "role": "viewer" } ]}No session.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}