Contract
- shape
- collection
- authority
- read
- evidence
- none
- subscription
- false
- permission
- any one of: staff.read (the staff role staff_read held in the Internal org, tradehq_role.staff_role); org.admin (carried by the caller's role template in the org `org_id` names; with no `org_id`, unsatisfiable); a deactivated caller is refused first
- idempotency
- safe
- emits
- none
- MCP tool
- list_accounts
- REST
- POST https://api.containertradehq.com/v1/cap/list_accounts
Idempotency: a read: calling again changes nothing
Inputs
| name | type | required | validation |
|---|---|---|---|
| query | text | optional | 1 to 100 characters A case-insensitive substring of the account's name. |
| org_id | org_id | optional | tradehq-org-id; 1 to 20 characters Only the account that holds this org; an org in no account is an empty page. An org admin names its own org here, and is refused without it. |
| limit | integer | optional | 1 to 200; default 50 The page size. |
| after | account_id | optional | tradehq-account-id The previous page's next_after. |
Paginated: next next_after · ceiling not_declared
Response
items· object[]next_after· stringnull · Pass as `after` for the next page; null on the last one.
Full JSON Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"account_id": {
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
"format": "tradehq-account-id",
"description": "The account's id.",
"x-data-class": "operational"
},
"name": {
"type": "string",
"description": "The account's name.",
"x-data-class": "operational"
},
"org_count": {
"type": "integer",
"description": "How many orgs belong to it.",
"x-data-class": "operational"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When it was created.",
"x-data-class": "operational"
}
},
"required": [
"account_id",
"name",
"org_count",
"created_at"
],
"additionalProperties": false
}
},
"next_after": {
"type": [
"string",
"null"
],
"description": "Pass as `after` for the next page; null on the last one."
}
},
"required": [
"items",
"next_after"
],
"additionalProperties": false
} Refusals
not yet declared
The platform refusals apply to every call: version, authentication, authority, validation and rate limits, each in the same envelope.
Surfaces
- Voice: degraded: visualization
- Push: emits nothing
- OneBox: no document originates an account listing
- Outbound: crosses to no counterparty
Events
None emitted.
Related
list_agent_reads, list_audit_events, list_audit_exports, list_orgs, list_unit_access, list_users