Get Linked Account Users
This endpoint retrieves all external accounts that have been granted permission to connect to the authenticated customer's account. Only connections that have been explicitly confirmed by the customer are included in the response. The result is an array of account objects, each containing identity and connection details for the linked external account.
Endpoint
GET /api/LinkedAccount/users
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when you need to display a customer's list of approved external account connections, such as in an account management dashboard. It is also useful when verifying which external parties currently have access to a customer's account before adding or revoking connections. Only confirmed (accepted) links are returned, so the result reflects the current active connection state.
Response
200 OK
| Field | Type | Description |
|---|---|---|
id | integer (int32) | Unique ID assigned to the linked account record. |
fromUserId | integer (int32) | The user ID of the account initiating the connection request. |
toUserId | integer (int32) | The user ID of the account receiving the connection request (the customer's account). |
profileId | integer (int32) | Profile ID associated with the linked external account. |
nickName | string | Username or nickname associated with the external account. |
firstName | string | First name of the external account holder. |
lastName | string | Last name of the external account holder. |
dba | string | Business name under which the account operates; relevant for business or sub-accounts. |
type | integer (enum) | Type of external account: 1 = Consumer account, 2 = Business primary account, 4 = Business sub-account. |
isSubUser | boolean | Indicates whether the linked account is a sub-user (authorized user) of a business account. |
accepted | boolean | Indicates whether the customer has confirmed/accepted the connection. |
status | string | Current status of the linked account connection. |
createdDate | string (date-time) | ISO 8601 timestamp of when the linked account record was created. |
[
{
"id": 1042,
"fromUserId": 3001,
"toUserId": 4055,
"profileId": 2087,
"nickName": "jane.smith",
"firstName": "Jane",
"lastName": "Smith",
"dba": null,
"type": 1,
"isSubUser": false,
"accepted": true,
"status": "Active",
"createdDate": "2025-03-15T10:22:00Z"
},
{
"id": 1098,
"fromUserId": 3210,
"toUserId": 4055,
"profileId": 2301,
"nickName": "acme-corp",
"firstName": "Acme",
"lastName": "Corp",
"dba": "Acme Corporation",
"type": 2,
"isSubUser": false,
"accepted": true,
"status": "Active",
"createdDate": "2025-04-02T08:45:00Z"
}
]Error Codes
| Code | When it happens |
|---|---|
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to access linked account data |
| 500 | Internal server error |
Common Mistakes
- Only confirmed connections are returned. If a connection request was sent but not yet accepted by the customer, it will not appear in this response.
- The
typefield uses integer enum values, not strings. Ensure your application maps1to Consumer,2to Business primary, and4to Business sub-account accordingly. - The
dbafield is only populated for business-type accounts. Do not rely on it being present for consumer accounts. - This endpoint is called using the bank customer's own credentials. The Bearer token must correspond to the customer whose linked accounts you wish to retrieve.
Related Endpoints
POST /api/LinkedAccount/request— Send a connection request to link an external accountDELETE /api/LinkedAccount/{id}— Remove an existing linked account connectionGET /api/LinkedAccount/requests— Retrieve pending (unconfirmed) connection requests
Example
curl -X GET https://api.banking.netevia.dev/api/LinkedAccount/users \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"