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: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 directly.
- Concurrency: We recommend no more than 5 concurrent requests per second
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 thenextPageTokenfrom the previous response.
Pagination Response
Each paginated response includes:{data}: Array of objects for the current pagenextPageToken: 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:
- Use
pageSize=100to minimize the number of requests. - Repeat the same filters, ordering, direction, and page size on every request.
- Prefer
orderBy=created_at&orderDirection=ascwhen minimizing drift matters more than display order. - Deduplicate actions by
id. IftotalSizechanges between pages or an ID is repeated, restart the traversal. A stable total does not guarantee an exact point-in-time snapshot. - For forecasts, replace the previous result with a freshly fetched snapshot rather than treating an older traversal as current state.
Example Pagination Flow
Incremental Data Syncing
For regular data synchronization or warehousing:- Initial sync: Fetch all recovery actions up to a specific timestamp
- Subsequent syncs: Use time-based filters with
executedAfterto only fetch new or updated entries - Always use ascending sort to maintain consistency
Scheduled recovery actions
Scheduled retries are opt-in and are not included in the endpoint’s default response. Request the scheduled status explicitly: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:
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
pageTokenvalues will return a400 Bad Requesterror - Rate limiting: If you exceed rate limits, implement exponential backoff before retrying
- Connection issues: Always store the last successful
pageTokento resume pagination after connection failures