R2 · Authentication Profile

R2 Authentication

Authentication

R2 secures its APIs with apiKey across 1 declared security scheme, as derived from its OpenAPI definitions.

CompanyFinancial-ServicesEmbedded FinanceLendingPaymentsFintechLatin AmericaRevenue-Based FinancingWebhook
Methods: apiKey Schemes: 1 OAuth flows: API key in: header

Security Schemes

JWT apiKey
· in: header (Authorization)

Source

Authentication Profile

Raw ↑
generated: '2026-07-20'
method: searched
source: openapi/r2-openapi.json
docs: https://r2-api-docs.readme.io/docs/jwt-token-generation
summary:
  types:
  - apiKey
  api_key_in:
  - header
notes: >-
  R2 authorizes API calls with a short-lived JWT bearer token supplied in the
  Authorization header. Partners request access by emailing partners@r2.co and
  receive two credential sets (keyId + JWTSecret) for the dev and prod
  environments. The partner signs its own JWTs with HS256 (HMAC-SHA256), setting
  the keyId as the token `kid` header plus optional `mid` (merchant id) and
  `country` (ISO-2) claims and an `exp` expiry. Merchant id is required when
  initializing embeddable components.
schemes:
- name: JWT
  type: apiKey
  in: header
  parameter: Authorization
  token_format: JWT
  signing_algorithm: HS256
  claims:
  - kid (header) — keyId issued by R2
  - mid — merchant id (optional for API, required for embeddable components)
  - country — ISO-2 country code (optional; needed for multi-country partners)
  - exp — expiry (seconds)
  environments:
  - dev
  - prod
  sources:
  - openapi/r2-openapi.json
  - https://r2-api-docs.readme.io/docs/jwt-token-generation

Work with this as data

Every security artifact here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This security artifact
curl "https://apis.io/api/v1/security/r2-authentication"
All security posture
curl "https://apis.io/api/v1/security?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.