Account
Get your account
GET
/accountYour institution, account type, enabled modules, plan limits and current usage.
curl -X GET "https://api.facetrustai.com/v1/account" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/account', { method: 'GET', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.get( "https://api.facetrustai.com/v1/account", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
curl -X GET "https://api.facetrustai.com/v1/account" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/account', { method: 'GET', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.get( "https://api.facetrustai.com/v1/account", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
curl -X GET "https://api.facetrustai.com/v1/account" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/account', { method: 'GET', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.get( "https://api.facetrustai.com/v1/account", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
200 · application/json
{
"id": "inst_8f2a",
"name": "Crestfield University",
"accountType": "education",
"status": "active",
"modules": {
"registry": true,
"enrollment": true,
"exams": true,
"attendance": false,
"checkins": false,
"webhooks": true
},
"limits": {
"enrolledPeople": 5000,
"monthlyVerifications": 50000,
"requestsPerMinute": 600
},
"usage": {
"enrolledPeople": 1240,
"verificationsThisMonth": 18210
},
"key": {
"id": "key_live_3a9c",
"environment": "live",
"scopes": [
"account:read",
"verify"
]
}
}200 · application/json
{
"id": "inst_8f2a",
"name": "Northbridge Logistics Ltd",
"accountType": "corporate",
"status": "active",
"modules": {
"registry": true,
"enrollment": true,
"exams": false,
"attendance": true,
"checkins": false,
"webhooks": true
},
"limits": {
"enrolledPeople": 5000,
"monthlyVerifications": 50000,
"requestsPerMinute": 600
},
"usage": {
"enrolledPeople": 1240,
"verificationsThisMonth": 18210
},
"key": {
"id": "key_live_3a9c",
"environment": "live",
"scopes": [
"account:read",
"verify"
]
}
}200 · application/json
{
"id": "inst_8f2a",
"name": "Lagos Builders Summit",
"accountType": "events",
"status": "active",
"modules": {
"registry": true,
"enrollment": true,
"exams": false,
"attendance": false,
"checkins": true,
"webhooks": true
},
"limits": {
"enrolledPeople": 5000,
"monthlyVerifications": 50000,
"requestsPerMinute": 600
},
"usage": {
"enrolledPeople": 1240,
"verificationsThisMonth": 18210
},
"key": {
"id": "key_live_3a9c",
"environment": "live",
"scopes": [
"account:read",
"verify"
]
}
}Use it for
Call it when your system starts, to check the key works and see what it can do.
Headers#
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <key>, a key with the account:read scope. See Authentication. |
Parameters#
No parameters.
Response#
Returns 200 with the body shown in the response example. Examples follow the account type selected at the top of the page.
Shown above, with the request.
Errors#
| Code | HTTP | Meaning |
|---|---|---|
unauthorized | 401 | Missing, malformed, revoked or expired API key. |
forbidden_scope | 403 | The key doesn’t have the scope this endpoint needs. |
account_type_forbidden | 403 | This endpoint isn’t available to your account type. |
module_disabled | 403 | The module is switched off for your account. Contact FaceTrust. |
ip_not_allowed | 403 | The request came from an IP outside the key’s allowlist. |
rate_limited | 429 | Too many requests. Wait for Retry-After seconds. |