Who am I
GET
/v1/me
const url = 'https://api.staging.heliumid.io/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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.staging.heliumid.io/v1/me \ --header 'Authorization: Bearer <token>'The caller: the signed-in person or the API key, its organisation, role and permissions. A quick way to check a key works.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The signed-in user and their organisation
Media typeapplication/json
object
organisation
required
object
id
required
string
name
required
string
role
required
string
permissions
required
Array<string>
via
required
string
Example
{ "role": "admin", "via": "session"}Not signed in
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
correlationId
required
string
Example generated
{ "error": { "code": "example", "message": "example", "correlationId": "example" }}