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

# Introduction

> Fundamental concepts of the Abacus REST API.

> [!NOTE]
>
> The Abacus API is currently in beta. If you have any questions or feedback,
> please reach out to us at
> [support@abacuslabs.co](mailto:support@abacuslabs.co?subject=Abacus%20API)

## Base URL

The Abacus API is built on REST principles and is served over HTTPS. Unencrypted HTTP is not supported.

```bash Terminal theme={null}
https://api.abacuslabs.co
```

## Interactive Documentation

Full interactive API documentation with try-it-out panels is available at:

```bash Terminal theme={null}
https://api.abacuslabs.co
```

The OpenAPI specification is available at:

```bash Terminal theme={null}
https://api.abacuslabs.co/openapi
```

## Authentication

Authentication is performed via the `Authorization` header with a Bearer token:

```bash Terminal theme={null}
Authorization: Bearer <Your-Token>
```

### Getting an API Key

1. Go to **Settings > Developer** in the Abacus dashboard
2. Click **Create API Key**
3. Choose the appropriate scope (Full Access, Read Only, or Restricted)
4. Copy and securely store the generated key

API keys are prefixed with `mid_` and cannot be retrieved after creation.

### OAuth 2.0

For third-party integrations, Abacus supports OAuth 2.0 authorization code flow. OAuth access tokens are prefixed with `mid_access_token_`.

## Scopes

API keys and OAuth tokens are scoped to control access. Available scopes:

| Scope | Description |
| - | - |
| `apis.all` | Full access to all resources |
| `apis.read` | Read-only access to all resources |
| `bank-accounts.read` | Read bank accounts |
| `bank-accounts.write` | Create, update, delete bank accounts |
| `deals.read` | Read deals |
| `deals.write` | Create, update, delete deals |
| `documents.read` | Read documents |
| `documents.write` | Upload, delete documents |
| `merchants.read` | Read merchants |
| `merchants.write` | Create, update, delete merchants |
| `notifications.read` | Read notifications |
| `notifications.write` | Update notification status |
| `reports.read` | Read reports and analytics |
| `search.read` | Search across resources |
| `tags.read` | Read tags |
| `tags.write` | Create, update, delete tags |
| `teams.read` | Read team information |
| `teams.write` | Update team settings |
| `transactions.read` | Read transactions |
| `transactions.write` | Create, update, delete transactions |
| `users.read` | Read user profile |
| `users.write` | Update user profile |

## Rate Limits

Protected endpoints are rate-limited to **100 requests per 10 minutes** per authenticated user.

When you exceed the rate limit, you'll receive a `429 Too Many Requests` response. Rate limit headers are included in responses:

| Header | Description |
| - | - |
| `X-RateLimit-Limit` | Maximum requests per window |
| `X-RateLimit-Remaining` | Requests remaining in current window |
| `X-RateLimit-Reset` | Timestamp when the window resets |

## Pagination

List endpoints use cursor-based pagination. Include the `cursor` parameter to fetch subsequent pages:

```bash Terminal theme={null}
GET /transactions?pageSize=25&cursor=eyJpZCI6IjEyMyJ9
```

List responses include pagination metadata in the response body.

## Errors

The API returns standard HTTP status codes and JSON error responses:

```json theme={null}
{
  "message": "Description of what went wrong"
}
```

| Status Code | Description |
| - | - |
| `200` | Success |
| `201` | Created |
| `400` | Bad request — invalid input |
| `401` | Unauthorized — missing or invalid token |
| `403` | Forbidden — insufficient scope |
| `404` | Not found |
| `409` | Conflict — duplicate resource |
| `429` | Rate limit exceeded |
| `500` | Internal server error |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.