GET
/
users
/
{user_id}
/
accounts
cURL
curl --request GET \
  --url http://localhost:8080/users/{user_id}/accounts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "account_provider_id": "<string>",
      "account_provider_name": "<string>",
      "account_provider_status": "active",
      "account_type": "s_a_v_i_n_g_s",
      "created_at": "<string>",
      "id": "<string>",
      "last_modified_at": "<string>",
      "provider_account_id": "<string>",
      "status": "active",
      "user_id": "<string>",
      "customer_id": "<string>"
    }
  ],
  "limit": 123,
  "offset": 123,
  "total": 123
}

Authorizations

Authorization
string
header
required

JWT access token. Obtain from /auth/otp/verify endpoint.

Path Parameters

user_id
string
required

User ID

Query Parameters

status
null | enum<string>

Account lifecycle status.

Available options:
active,
inactive,
pending
account_type
null | enum<string>

Type of financial or health account.

Available options:
s_a_v_i_n_g_s,
h_s_a,
e_d_u_c_a_t_i_o_n
account_provider_id
string | null
limit
integer<int32> | null
offset
integer<int32> | null

Response

List of accounts

data
object[]
required
limit
integer<int32>
required
offset
integer<int32>
required
total
integer<int64>
required