Borga’s API is REST over HTTPS. Request and response bodies are JSON. Every request authenticates with an API key passed as a Bearer token. The base URL for all endpoints isDocumentation Index
Fetch the complete documentation index at: https://docs.borga.is/llms.txt
Use this file to discover all available pages before exploring further.
https://api.borga.is.
Base URL
/v1/. A full endpoint path looks like https://api.borga.is/v1/payments.
Authentication
Pass your secret API key in theAuthorization header as a Bearer token. Most endpoints also require an X-Merchant-Id header identifying the merchant account.
sk_test_… keys during development — they make no real charges. Switch to sk_live_… when you are ready to process real transactions.
The
GET /v1/merchants/current endpoint does not require X-Merchant-Id. Use it to look up your Merchant ID during initial setup.Request format
SetContent-Type: application/json and pass parameters as a JSON body on POST and PATCH requests.
curl
Pagination
List endpoints use cursor-based pagination. Passstarting_after with the ID of the last object you received to fetch the next page, and use limit to control page size.
| Parameter | Type | Description |
|---|---|---|
starting_after | string | Return objects after this object ID. |
limit | integer | Maximum number of objects to return. |
Idempotency
Network failures can leave you uncertain whether a request was processed. Pass anIdempotency-Key header with a unique string on POST requests to safely retry without risking duplicate operations. Borga stores the result of the first request and returns the same response for any subsequent request with the same key.
Versioning
All endpoints are under/v1/. Breaking changes will be introduced under a new version prefix. The current version will continue to be supported after a new version is released.
Rate limits
Rate limits apply to all API endpoints. If you exceed the limit, Borga returns429 Too Many Requests. Back off and retry after a short delay. See Errors for details on the error response format.