> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argyle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accounts

> Accounts are payroll connections made through Link.

## Definition

An account represents a user's connection to an income source. It can contain records from more than one [employment](https://docs.argyle.com/overview/data-structure/employments.md). Users create accounts by finding an employer or payroll provider in Link and submitting the login credentials they use for that source.

![An account represents a payroll income source connected by a user.](https://mintcdn.com/argyle/lpddaw6ggr_B1oHD/images/argyle-guides/overview/accounts/accounts.png?fit=max\&auto=format\&n=lpddaw6ggr_B1oHD\&q=85\&s=f80164990575c08b917657803876362a)

> [!NOTE]
>
> The Accounts API applies to payroll connections and related Link activity. Financial accounts used for banking verifications are separate [Bank Account](https://docs.argyle.com/api-reference/bank-accounts.md) resources.

## Standard payroll connection

1. The user searches for the employer or payroll provider that sends their income.
2. The user enters their credentials in the source-specific login screen.
3. An account record is created for the connection attempt.
4. When authentication succeeds, payroll data begins arriving in stages.

See [Link Overview](https://docs.argyle.com/link/overview.md#standard-connection-process) for the complete user experience.

## Account records

Account objects are created when a user:

* Successfully connects an employer, payroll provider, gig platform, government source, or other supported Item.
* Attempts a connection that does not complete successfully.
* Uploads a document through Link.
* Submits a response form after they cannot find their income source.

Store each account ID independently. A user can have multiple accounts with different statuses, synchronization progress, and available data.

### Connected accounts

A payroll account is connected after the user submits their credentials through Link and authentication succeeds. Data from that account is then delivered in stages.

Follow [Data Delivery and Readiness](https://docs.argyle.com/overview/data-delivery.md) before deciding which account or resource event makes your workflow ready.

### Attempted connections

An account can also represent an unsuccessful connection attempt. Use the account status and error information to determine whether the user can retry, needs to reconnect, or must choose another income source.

* See [Account Connection Errors](https://docs.argyle.com/api-reference/account-connection-errors.md).
* See [Reconnecting Accounts](https://docs.argyle.com/workflows/reconnecting-accounts.md).

## Track accounts

Subscribe to account webhooks:

| Webhook | Use |
| - | - |
| [`accounts.added`](https://docs.argyle.com/api-reference/accounts-webhooks/added) | A user submitted credentials and an account was created. |
| [`accounts.connected`](https://docs.argyle.com/api-reference/accounts-webhooks/connected) | The account connection completed successfully. |
| [`accounts.updated`](https://docs.argyle.com/api-reference/accounts-webhooks/updated) | Account fields or status changed. |
| [`accounts.failed`](https://docs.argyle.com/api-reference/accounts-webhooks/failed) | The connection attempt failed. |
| [`accounts.removed`](https://docs.argyle.com/api-reference/accounts-webhooks/removed) | The account was removed. |

Do not treat one account's status as the status for every account attached to the user.

## View and manage accounts

### Console

Open a user in [Connections](https://console.argyle.com/connections) to review their accounts, statuses, errors, and most recent synchronization information.

### API

Use the [Accounts API](https://docs.argyle.com/api-reference/accounts.md) to retrieve an account, list accounts, disable ongoing updates, or delete an account.

### Delete an account

> [!WARNING]
>
> Deleting an account permanently removes the connection and its associated resources. Use [`DELETE /v2/accounts/{id}`](https://docs.argyle.com/api-reference/accounts/delete-an-account) only when the connection should be removed.
