curl https://api.tracklysms.com/api/v2/accounts/children/1042/api-keys \
-H "X-Api-Key: trk_your_parent_key"
{
"apiKeys": [
{
"id": "66b0f7c84a1d4b2e9c3a1f2e",
"accountId": 1042,
"name": "prod",
"key": "trk_ab12****",
"keyPrefix": "trk_ab12",
"status": "active",
"permissions": ["api.full"],
"resourceConstraints": {},
"expiresAt": null,
"allowedIps": [],
"rateLimitOverride": null,
"sandbox": false,
"graceUntil": null,
"rotatedFrom": null,
"lastUsedIp": null,
"createdAt": "2026-07-26T14:05:00.000000",
"lastUsedAt": "2026-07-26T15:10:00.000000"
}
]
}
Partner Accounts (v2)
List API Keys
List a child’s API keys. Key values are masked.
GET
/
v2
/
accounts
/
children
/
{child_id}
/
api-keys
curl https://api.tracklysms.com/api/v2/accounts/children/1042/api-keys \
-H "X-Api-Key: trk_your_parent_key"
{
"apiKeys": [
{
"id": "66b0f7c84a1d4b2e9c3a1f2e",
"accountId": 1042,
"name": "prod",
"key": "trk_ab12****",
"keyPrefix": "trk_ab12",
"status": "active",
"permissions": ["api.full"],
"resourceConstraints": {},
"expiresAt": null,
"allowedIps": [],
"rateLimitOverride": null,
"sandbox": false,
"graceUntil": null,
"rotatedFrom": null,
"lastUsedIp": null,
"createdAt": "2026-07-26T14:05:00.000000",
"lastUsedAt": "2026-07-26T15:10:00.000000"
}
]
}
Lists the API keys of a child. Use your parent key with
accounts.read. Plaintext values are never returned — each key is shown masked as its prefix followed by ****.
Path Parameters
integer
required
The child account’s
accountId.Response Fields
array
Array of key objects (see Create API Key) with the
key field masked (keyPrefix + ****).Examples
curl https://api.tracklysms.com/api/v2/accounts/children/1042/api-keys \
-H "X-Api-Key: trk_your_parent_key"
{
"apiKeys": [
{
"id": "66b0f7c84a1d4b2e9c3a1f2e",
"accountId": 1042,
"name": "prod",
"key": "trk_ab12****",
"keyPrefix": "trk_ab12",
"status": "active",
"permissions": ["api.full"],
"resourceConstraints": {},
"expiresAt": null,
"allowedIps": [],
"rateLimitOverride": null,
"sandbox": false,
"graceUntil": null,
"rotatedFrom": null,
"lastUsedIp": null,
"createdAt": "2026-07-26T14:05:00.000000",
"lastUsedAt": "2026-07-26T15:10:00.000000"
}
]
}
Error Codes
| HTTP Status | Error Code | Description |
|---|---|---|
| 404 | child_not_found | No child with that ID under this parent. |
| 403 | not_a_parent_account / insufficient_scope | See Accounts & Hierarchy. |