Who the credential is
curl --request GET \
--url https://app.usertick.com/api/public/v1/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.usertick.com/api/public/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.usertick.com/api/public/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"organization": {
"id": "3c9e4e1a-5b7d-4f20-9a61-0c2d8e4f6a10",
"name": "Acme"
},
"user": null,
"credential": {
"kind": "api_key",
"id": "0d6f1c2a-3b4c-4d5e-8f60-718293a4b5c6",
"name": "Ops script",
"scopes": [
"responses:read",
"responses:write"
]
},
"rateLimits": {
"perMinute": 120,
"organizationPerMinute": 600
}
}Account
Get the current credential
The organization, the person an app acts as (none for an API key), the credential itself and its rate limits. Any valid credential may call it, so a connection test never fails on a scope.
Scopes: any valid credential.
GET
/
me
Who the credential is
curl --request GET \
--url https://app.usertick.com/api/public/v1/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.usertick.com/api/public/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.usertick.com/api/public/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"organization": {
"id": "3c9e4e1a-5b7d-4f20-9a61-0c2d8e4f6a10",
"name": "Acme"
},
"user": null,
"credential": {
"kind": "api_key",
"id": "0d6f1c2a-3b4c-4d5e-8f60-718293a4b5c6",
"name": "Ops script",
"scopes": [
"responses:read",
"responses:write"
]
},
"rateLimits": {
"perMinute": 120,
"organizationPerMinute": 600
}
}Authorizations
bearerAuthapiKeyHeader
An API key (utk_live_...) or an app's OAuth access token (uto_...).