API Reference

The Imprest API is organized around REST. All requests and responses use JSON.

Base URL

https://imprest.ai/api/v1

Content Type

All requests must include:

Content-Type: application/json

Errors

The API uses standard HTTP status codes. Errors include a JSON body with details.

StatusMeaning
200Success
201Created
400Bad request — invalid parameters
401Unauthorized — invalid or missing token
403Forbidden — insufficient permissions
404Not found
422Validation error — check the errors array
429Rate limited — slow down
500Internal server error
{
  "errors": [
    "Customer can't be blank",
    "At least one line item is required"
  ]
}

Pagination

List endpoints accept a limit parameter (1–50, default 25). Results are returned in a single page. For large datasets, filter by date range or status to narrow results.

Rate Limiting

Coming Soon

Rate limiting is not yet enforced. We recommend keeping requests under 100 per minute per token. Rate limiting will be enforced in a future release with standard 429 responses and Retry-After headers.

Resources