API reference / Basics
Basics
Who the token acts as.
Base URL https://api.zilomail.in
Who am I#
GET/v1/me
The person the token acts as, their organisation, and what the token may do. A good first call: it proves the token works.
Answer · 200 OK
idstringTheir ZiloOne user id (the same
sub Sign in with ZiloOne gives).emailstringnamestring | nullusernamestring | nullrolestringTheir role in the organisation: owner, admin or user.
organisationobjectidstringnamestringkindenumOne of
organisation, personal.viaenumHow this request signed in. One of
app, key, personal.appobject | nullidstringnamestringscopesarray of stringWhat this token may do.
appsobjectWhich ZiloOne apps the organisation has on.
curl "https://api.zilomail.in/v1/me" \
-H "Authorization: Bearer $ZILO_TOKEN"Answer · 200 OK
{
"id": "string",
"email": "string",
"name": "string",
"username": "string",
"role": "string",
"organisation": {
"id": "string",
"name": "string",
"kind": "organisation"
},
"via": "app",
"app": {
"id": "string",
"name": "string"
},
"scopes": [
"string"
],
"apps": {}
}Try it
Sign in to call it as yourself.