Base URL
OpenAPI Specification
The full machine-readable API spec is available for AI agents, code generators, and API clients:| Resource | URL |
|---|---|
| OpenAPI Spec (JSON) | api.sprinter.tech/swagger/doc.json |
| Swagger UI | api.sprinter.tech/swagger/index.html |
Endpoints
Info
| Endpoint | Description |
|---|---|
GET /credit/protocol | Protocol configuration — supported chains, collateral assets, LTV ratios, earn strategies |
GET /credit/accounts/{account}/info | Account credit position — capacity, debt, health factor |
GET /credit/accounts/{account}/collateral | Collateral asset details |
GET /credit/accounts/{account}/operator | Operator status for delegated draws |
Actions
| Endpoint | Description |
|---|---|
GET /credit/accounts/{account}/lock | Build calldata to lock collateral |
GET /credit/accounts/{account}/unlock | Build calldata to unlock collateral |
GET /credit/accounts/{account}/draw | Build calldata to draw (borrow) credit |
GET /credit/accounts/{account}/repay | Build calldata to repay debt |
Advanced
| Endpoint | Description |
|---|---|
GET /credit/accounts/{account}/auto-top-up/enable | Enable auto top-up |
GET /credit/accounts/{account}/auto-top-up/disable | Disable auto top-up |
GET /credit/accounts/{account}/wrap | Wrap asset into earn vault |
GET /credit/accounts/{account}/unwrap | Unwrap from earn vault |
GET /credit/accounts/{account}/claim | Claim position from earn vault |
Response Format
All transaction-building endpoints return unsigned calldata:ContractCall in the user’s wallet. No API keys needed for on-chain operations.