RG

We use cookies and similar technologies, including Google Analytics and the Meta Pixel, to improve your experience, measure site traffic and understand signup campaigns. By clicking "Accept", you agree to this use.

Learn more about our privacy practices
RGNotas
Português

API clients

Use the RGNotas REST API from any language, or generate a client from the OpenAPI contract.

RGNotas does not publish official SDKs yet. The API is REST with JSON, so any language with an HTTP client works, and every guide in this documentation applies the same way.

What a client needs to do

  • Authenticate with the X-API-Key header. The key picks the environment: rgnotas_test_... for test and rgnotas_live_... for production.
  • Read the error body (code, message, details, requestId) and honor Retry-After on 429 and 503 responses.
  • Walk lists with cursor pagination (pagination.nextCursor).
  • Send Idempotency-Key when issuing an invoice or sending an e-mail, so a retried call never issues the invoice twice.
  • Verify webhook signatures (X-RGNotas-Signature) in constant time.

For AI agents (Claude, Cursor and others), use the MCP server instead of writing a client.