Skip to content

Your first request

Set your sandbox key in an environment variable so it never appears in code:

Terminal window
export IDEALX_API_KEY="idx_test_…"
export IDEALX_API="https://api.staging.idealx.com"

GET /v1/accountsAccounts you have a role on returns every account you have a role on, with its portfolios.

Terminal window
curl "$IDEALX_API/v1/accounts" \
-H "Authorization: Bearer $IDEALX_API_KEY"

The answer:

HTTP/1.1 200 OK
Content-Type: application/json
RateLimit-Limit: 120
RateLimit-Remaining: 119
RateLimit-Reset: 42
{
"accounts": [
{
"id": "acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90",
"name": "Sam Taylor",
"nickname": null,
"accountTypeId": "individual",
"accountTypeLabel": "Individual",
"jurisdiction": "AU",
"currency": "AUD",
"status": "open",
"myRoles": [{ "role": "owner", "label": "Owner" }],
"portfolios": [
{ "id": "ptf_01937c4e8a2b7d1f9e0c3b5a6d7e8fa1", "name": "Primary", "isPrimary": true, "status": "open" },
{ "id": "ptf_01937c4e8a2b7d1f9e0c3b5a6d7e8fa2", "name": "Long term", "isPrimary": false, "status": "open" }
],
"openedAt": "2026-03-02T01:14:09.000Z"
}
]
}

Next: read the account’s balances with GET /v1/accounts/{id}/detail and its investments with GET /v1/accounts/{id}/positions. The journey See my portfolio and performance walks through them.

Firm endpoints take your firm id in the path; it is shown in Console under Team → API and webhooks. GET /v1/firms/{firmId}/clientsClients you can see lists the clients the key’s admin can see.

Terminal window
export IDEALX_FIRM_ID="frm_…"
curl "$IDEALX_API/v1/firms/$IDEALX_FIRM_ID/clients" \
-H "Authorization: Bearer $IDEALX_API_KEY"
{
"clients": [
{
"id": "crl_01937d0a5b6c7d8e9f0a1b2c3d4e5f60",
"personId": "per_01937d0a5b6c7d8e9f0a1b2c3d4e5f61",
"name": "Alex Morgan",
"email": "alex.morgan@example.com",
"path": "invited",
"status": "active",
"verified": true,
"signedIn": true,
"createdAt": "2026-05-11T22:40:03.000Z"
}
]
}

Every error has the same shape. Switch on error.code, log error.requestId:

{ "error": { "code": "unauthenticated", "message": "That API key is not valid here", "requestId": "req_01937d…" } }

See Errors and the error catalogue.