Skip to content

Who am I

GET
/v1/me
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.

The signed-in user and their organisation

Media typeapplication/json
object
user
required
Any of:
object
id
required
string
name
required
string
email
required
string
apiKey
required
Any of:
object
id
required
string
name
required
string
prefix
required
string
organisation
required
object
id
required
string
name
required
string
role
required
string
Allowed values: admin reviewer operator developer viewer
permissions
required
Array<string>
via
required
string
Allowed values: session api_key dev_stub

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"
}
}