Skip to main content

Base URL

https://api.opencontract.io/v1

Authentication

Include your API key as a bearer token in every request:
curl https://api.opencontract.io/v1/contracts \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Request Format

All request bodies must be JSON. Set the Content-Type header accordingly:
Content-Type: application/json

Response Format

All responses return JSON with a consistent envelope:
{
  "data": { ... },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-06-02T00:00:00Z"
  }
}

Error Codes

StatusCodeDescription
400invalid_requestMissing or malformed parameters
401unauthorizedInvalid or missing API key
404not_foundResource does not exist
409conflictBid too low or auction already ended
429rate_limitedToo many requests
500internal_errorServer-side error
Error responses follow this shape:
{
  "error": {
    "code": "invalid_request",
    "message": "reservePrice must be a positive number"
  }
}

Rate Limits

PlanRequests / minute
Free60
Pro600
EnterpriseUnlimited