Who am I — the signed-in user
GET
/v1/me
const url = 'https://beta-api.plune.ai/v1/me';const options = {method: 'GET', headers: {cookie: 'plune_session=<plune_session>'}};
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://beta-api.plune.ai/v1/me \ --cookie plune_session=<plune_session>The current session user (id + email). The dashboard reads it to show the account.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”The signed-in user
Media type application/json
object
userId
required
string format: uuid
email
required
string format: email
role
required
What this account is allowed to be, e.g. user or owner. Open-ended: new roles appear without a client release.
string
Example
{ "role": "user"}No / invalid session
Session valid but the user no longer exists
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}