> ## 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.

# Overview

> Learn how to use the Argyle API.

The Argyle API uses HTTPS, HTTP basic authentication, REST-style resources, and JSON request and response bodies.

Start with the [API Reference overview](https://docs.argyle.com/api-reference/overview.md) to choose the endpoint family for your implementation.

## API keys

Create separate Sandbox and Production API keys in [Console](https://console.argyle.com/api-keys).

The API key secret is shown only when the key is created and is partially obscured afterward. Copy it immediately and store it securely.

## Authentication

Use HTTP basic authentication on every request:

* Username: `api_key_id`
* Password: `api_key_secret`

```bash theme={}
curl https://api-sandbox.argyle.com/v2/accounts \
  -u api_key_id:api_key_secret
```

API keys must match the requested environment. Sandbox keys used against Production, or Production keys used against Sandbox, return `401 Unauthorized`.

## Environments

| Environment | Purpose | Base URL |
| - | - | - |
| Sandbox | Test sample users and simulated workflows. | `https://api-sandbox.argyle.com/v2` |
| Production | Process real user connections and data. | `https://api.argyle.com/v2` |

Both Link and the API support Sandbox and Production. Most endpoints are available in both environments. Billing resources such as receipts are Production-only.

See [Sandbox Testing](https://docs.argyle.com/overview/sandbox-testing.md) for sample users, refresh simulation, data updates, and error scenarios.

## Data readiness

Connected-account data arrives and updates in stages. Do not treat account creation as confirmation that every historical resource is available.

Follow [Data Delivery and Readiness](https://docs.argyle.com/overview/data-delivery.md) for account and resource webhooks. Verification implementations should use [verification status](https://docs.argyle.com/verifications/verification-statuses.md) instead.

## Compatibility

Implementations must tolerate new optional fields, response fields, enum values, and webhook events.

Breaking changes include:

* Changing authentication or authorization requirements.
* Removing or renaming an endpoint or webhook.
* Removing or renaming a required request parameter.
* Adding a required request parameter.
* Removing or renaming a response field.
* Changing a field, request parameter, or query parameter type.

Non-breaking changes include:

* Adding an endpoint or webhook.
* Adding an optional request parameter or response field.
* Returning new response or enum values.
* Changing an error message.
* Correcting an HTTP status code that was previously wrong.

Subscribe to the [Changelog](https://changelog.argyle.com/) for API changes.

## Security

* Call the Argyle API only from server-side applications.
* Never include API keys in browser or mobile application code.
* Store secrets outside source control.
* Use separate keys for separate backend systems and environments.
* Delete unused keys.

See [Data Security](https://docs.argyle.com/overview/data-security.md) for broader implementation guidance.

## Status codes

| Status | Meaning |
| - | - |
| `200 OK` | Request succeeded. |
| `201 Created` | Request succeeded and created a resource. |
| `204 No Content` | Request succeeded without a response body. |
| `400 Bad Request` | Request or field validation failed. |
| `401 Unauthorized` | Authentication credentials are missing or invalid. |
| `402 Request Failed` | Request was valid but could not be processed. |
| `403 Forbidden` | API key lacks the required permission. |
| `404 Not Found` | Resource does not exist or is not available to the key. |
| `409 Conflict` | Request conflicts with the current resource state. |
| `429 Too Many Requests` | Request rate exceeded the limit. |
| `500`, `502`, `503`, `504` | Argyle server error. |
| `520 External Server Error` | An upstream platform returned an error. |

## Error responses

General request errors return a `detail` value:

```json theme={}
{
  "detail": "Authentication credentials were not provided."
}
```

Field validation errors return the affected fields:

```json theme={}
{
  "name": ["This field may not be blank."],
  "url": ["Enter a valid URL."]
}
```

## Null and empty values

Responses can contain partial records.

* A field can be `null` when the source does not support it or has no value for the user.
* An array can be empty: `[]`.
* An object can be empty: `{}`.
* An object can contain properties whose values are all `null`.

Do not assume a field is present only because its Item reports that field as supported.

## Pagination

List endpoints return paginated responses. The default `limit` is 10 and the maximum is 200.

```json theme={}
{
  "next": "https://api-sandbox.argyle.com/v2/users?cursor=NEXT_CURSOR",
  "previous": null,
  "results": [
    {
      "id": "018051aa-f7a9-a0db-2f38-6cfa325e9d69"
    }
  ]
}
```

Follow the complete URL returned in `next` or `previous`. Do not construct cursor values or request pages in parallel.

## Rate limiting

The API allows 50 requests per second. Requests above the limit return `429 Too Many Requests`.

Queue rate-limited requests and retry them after reducing request volume. Avoid immediate retry loops.

## Concurrency and caching

Limit simultaneous requests when retrieving large result sets. This reduces duplicate work and rate limiting.

The Argyle API does not use HTTP caching. If your application caches API responses, manage cache freshness within your own systems.

## System status

Operational status and incidents are published at [status.argyle.com](https://status.argyle.com/).
