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

# Slicker API Overview

> Slicker public API endpoints and how to interact with them

## API Basics

The Slicker API is a RESTful HTTP API that allows you to integrate with Slicker's retry data.

* **Protocol**: HTTPS only (unencrypted HTTP is not supported)
* **Base URL**: `https://api.slickerhq.com`
* **Data Format**: All requests and responses use JSON format
* **Character Encoding**: UTF-8

## Authentication

The API uses Bearer token authentication. An API key from Slicker which should be included in all API requests via the Authorization header:

```
Authorization: Bearer YOUR_API_KEY
```

You can see and manage your organization's API keys at [https://auth.slickerhq.com/org/api\_keys](https://auth.slickerhq.com/org/api_keys).

Your API key grants access to sensitive data and should be kept secure. Do not share your API key in publicly accessible areas such as GitHub, client-side code, or in API requests to other services.

To use Slicker with an AI assistant rather than call REST endpoints directly, see the [Slicker MCP server](https://docs.slickerhq.com/mcp/overview.md). It supports Slicker sign-in or an organization API key, free-text analysis, recovery-action records, and alert management.

## Request Limits

* **Maximum Batch Size**: Each API request can contain up to 100 items.
* **Rate Limiting**: The API implements rate limiting to ensure stable performance for all users. The default rate limits are 100 requests a second. If this does not meet your requirements, please [contact us](mailto:support@slickerhq.com) directly.
* **Concurrency**: We recommend no more than 5 concurrent requests per second

If you exceed these limits, the API will return a `429 Too Many Requests` response. Implement appropriate backoff strategies in your integration.

## API Versioning

The API version is included in the URL path (e.g., `/v1/recovery_actions`). When new versions are released, we'll provide appropriate migration guidance and timelines.

## Pagination

The Slicker API uses token-based pagination to handle large datasets efficiently. Each paginated endpoint returns a subset of results along with a pagination token for retrieving subsequent pages.

### Pagination Parameters

* **`pageSize`**: Number of items to return per page (1-100, defaults to 100)
* **`pageToken`**: Token for retrieving the next page of results. Use the `nextPageToken` from the previous response.

### Pagination Response

Each paginated response includes:

* **`{data}`**: Array of objects for the current page
* **`nextPageToken`**: Token to fetch the next page (empty if no more pages)
* **`totalSize`**: Total number of items available across all pages

### Best Practices

#### Reducing Pagination Drift

Pagination does not hold a server-side snapshot. Each page is evaluated against the recovery
actions as they exist when that request runs. Results have a deterministic tie-break, but actions
can still move between offsets when new actions are created, a sort value changes, or an action no
longer matches the requested status.

No available ordering completely prevents this drift. `created_at` in ascending order is the least
likely to reorder during a long traversal because its value is immutable and newly created actions
normally appear after actions already read. It still cannot prevent drift when an earlier action
changes status and leaves the filtered result set. `scheduled_at` is useful for chronological
display, but it can change when Slicker reschedules an action.

For a multi-page fetch:

1. Use `pageSize=100` to minimize the number of requests.
2. Repeat the same filters, ordering, direction, and page size on every request.
3. Prefer `orderBy=created_at&orderDirection=asc` when minimizing drift matters more than display
   order.
4. Deduplicate actions by `id`. If `totalSize` changes between pages or an ID is repeated, restart
   the traversal. A stable total does not guarantee an exact point-in-time snapshot.
5. For forecasts, replace the previous result with a freshly fetched snapshot rather than treating
   an older traversal as current state.

```bash theme={null}
# Reduces insertion and reordering drift, but does not provide snapshot isolation
GET /v1/recovery_actions?orderBy=created_at&orderDirection=asc&pageSize=100
```

#### Example Pagination Flow

```bash theme={null}
# First request
GET /v1/recovery_actions?orderBy=created_at&orderDirection=asc&pageSize=100

# Response includes nextPageToken
{
  "recoveryActions": [...],
  "nextPageToken": "100",
  "totalSize": 250
}

# Subsequent request repeats the same parameters and adds the token
GET /v1/recovery_actions?orderBy=created_at&orderDirection=asc&pageSize=100&pageToken=100
```

#### Incremental Data Syncing

For regular data synchronization or warehousing:

1. **Initial sync**: Fetch all recovery actions up to a specific timestamp
2. **Subsequent syncs**: Use time-based filters with `executedAfter` to only fetch new or updated entries
3. **Always use ascending sort** to maintain consistency

```bash theme={null}
# Initial sync
GET /v1/recovery_actions?orderBy=executed_at&orderDirection=asc&executedBefore=2024-01-31T23:59:59Z

# Subsequent sync (fetch entries after last sync)
GET /v1/recovery_actions?orderBy=executed_at&orderDirection=asc&executedAfter=2024-01-31T23:59:59Z
```

## Scheduled recovery actions

Scheduled retries are opt-in and are not included in the endpoint's default response. Request the
scheduled status explicitly:

```bash theme={null}
GET /v1/recovery_actions?status=RECOVERY_ACTION_STATUS_SCHEDULED
```

Each scheduled action includes its current `scheduledAt` timestamp. Treat this as a provisional
snapshot rather than an execution contract: Slicker may accelerate, cancel, replace, or suppress a
scheduled retry as new payment, card-network, invoice, or subscription signals arrive. Refetch the
list whenever producing a forecast.

Scheduled queries default to `scheduled_at` in ascending order, which is useful for chronological
display but can reorder when a retry is rescheduled. For a multi-page forecast, explicitly sorting
by `created_at` ascending reduces drift, although status changes can still shift offsets. You can
limit a forecast window with the existing `executedAfter` and `executedBefore` parameters; when the
requested status is scheduled, these parameters apply to `scheduledAt` rather than `executedAt`:

```bash theme={null}
GET /v1/recovery_actions?status=RECOVERY_ACTION_STATUS_SCHEDULED&executedAfter=2026-08-20T00:00:00Z&executedBefore=2026-09-20T00:00:00Z&orderBy=created_at&orderDirection=asc&pageSize=100
```

`RECOVERY_ACTION_STATUS_PENDING` is different: it means a retry has already been attempted and its
payment result is still pending.

## Error Handling

* **Invalid tokens**: Expired or invalid `pageToken` values will return a `400 Bad Request` error
* **Rate limiting**: If you exceed rate limits, implement exponential backoff before retrying
* **Connection issues**: Always store the last successful `pageToken` to resume pagination after connection failures


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