Retrieving Connection Requests
This endpoint returns a list of all connection requests made by accounts associated with a specified banking profile, including both primary and sub-accounts. It is used to inspect which remote accounts have been requested for linking. A security check is enforced to ensure that only the API-User associated with the profile can access its connection requests.
Endpoint
GET /api/LinkedAccount/{id}
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 audit or display the external account linking activity for a customer profile. It is useful for partner dashboards that show pending or accepted connection requests, and for verifying the status of linked external accounts before initiating transfers.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer (int32) | Yes | The ID of the banking profile (primary, sub, or consumer) whose connection requests you want to retrieve. |
Response
200 OK
Returns an array of connection request objects. Each object has the following fields:
| Field | Type | Description |
|---|---|---|
| id | integer | Unique identifier of the connection request record. |
| fromUserId | integer | ID of the user who initiated the connection request. |
| toUserId | integer | ID of the user to whom the connection request was sent. |
| profileId | integer | ID of the banking profile associated with this connection request. |
| dba | string | "Doing Business As" name for the account, if applicable (nullable). |
| nickName | string | Nickname assigned to the linked account (nullable). |
| firstName | string | First name of the account holder (nullable). |
| lastName | string | Last name of the account holder (nullable). |
| isSubUser | boolean | Indicates whether the requesting party is a sub-user (authorized user). |
| accepted | boolean | Indicates whether the connection request has been accepted. |
| createdDate | string (date-time) | Timestamp when the connection request was created. |
| type | integer | User type enumeration: 1, 2, 3, 4, or 5. |
| status | string | Current status of the connection request (nullable). |
[
{
"id": 1042,
"fromUserId": 3011,
"toUserId": 3087,
"profileId": 8821,
"dba": "Acme Retail LLC",
"nickName": "Main Checking",
"firstName": "Jane",
"lastName": "Smith",
"isSubUser": false,
"accepted": true,
"createdDate": "2025-03-15T10:22:00Z",
"type": 2,
"status": "Active"
},
{
"id": 1043,
"fromUserId": 3011,
"toUserId": 3099,
"profileId": 8821,
"dba": null,
"nickName": "Savings",
"firstName": "John",
"lastName": "Doe",
"isSubUser": true,
"accepted": false,
"createdDate": "2025-04-01T08:45:00Z",
"type": 1,
"status": "Pending"
}
]Error Codes
| Code | When it happens |
|---|---|
| 400 | The provided id is not a valid integer or is malformed. |
| 401 | Token missing, expired, or invalid. |
| 403 | The authenticated API-User does not have permission to access the specified profile's connection requests. |
| 404 | No banking profile found for the given id. |
| 500 | Internal server error. |
Common Mistakes
- Providing a non-integer value for the
idpath parameter — the schema requires a 32-bit integer. - Attempting to retrieve connection requests for a profile that belongs to a different partner — the security check will return 403.
- Confusing the profile
idwith a user ID or account ID; theidmust reference a valid banking profile. - Not handling a
nullresponse for nullable fields such asdba,nickName,firstName,lastName, andstatuswhen parsing the response.
Related Endpoints
POST /api/LinkedAccount— Create a new connection request to link an external account to a banking profile.DELETE /api/LinkedAccount/{id}— Remove an existing linked account connection request.GET /api/LinkedAccount— Retrieve all linked account connection requests (if available without a profile filter).
Example
curl -X GET https://api.banking.netevia.dev/api/LinkedAccount/8821 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"