Get the organization and permissions of the calling key
curl --request GET \
--url https://app.eloout.com/api/v1/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.eloout.com/api/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.eloout.com/api/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"data": {
"organization": {
"id": "6f1d2c3b-4a59-4e6f-8a7b-9c0d1e2f3a4b",
"name": "Acme"
},
"apiKey": {
"id": "f5e6f7a8-9b0c-4e1f-8a3b-4c5d6e7f8a9b",
"name": "MCP read only",
"scopes": [
"opportunities:read",
"pipelines:read",
"lists:read",
"records:read"
],
"legacy": false
}
}
}{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or revoked API key"
}
}{
"ok": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key lacks the opportunities:write scope",
"details": {
"requiredScope": "opportunities:write"
}
}
}{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests for this API key or its organization"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Get the organization and permissions of the calling key
Any valid key may call it. Use it to check a key and its effective permissions before calling anything else. Returns no credential material.
Requires a valid key; no permission.
GET
/
me
Get the organization and permissions of the calling key
curl --request GET \
--url https://app.eloout.com/api/v1/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.eloout.com/api/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.eloout.com/api/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"data": {
"organization": {
"id": "6f1d2c3b-4a59-4e6f-8a7b-9c0d1e2f3a4b",
"name": "Acme"
},
"apiKey": {
"id": "f5e6f7a8-9b0c-4e1f-8a3b-4c5d6e7f8a9b",
"name": "MCP read only",
"scopes": [
"opportunities:read",
"pipelines:read",
"lists:read",
"records:read"
],
"legacy": false
}
}
}{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or revoked API key"
}
}{
"ok": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key lacks the opportunities:write scope",
"details": {
"requiredScope": "opportunities:write"
}
}
}{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests for this API key or its organization"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}