client_credentials grant, then send the returned
access_token on each subsequent request.
Getting an API key
Convexity Infra is a backend service with no self-service signup: API keys are issued by the Convexity team. Email infra@withconvexity.com with your business details to register. You’ll receive a test key to integrate against and a live key (sk_live_...) for production traffic.
Treat API keys like passwords: never embed them in client-side code or commit them to
source control. If a key is exposed, email
infra@withconvexity.com to request a rotation
immediately.
1
Present your API key
Call
POST /v1/oauth/token with grant_type=client_credentials and your API key.2
Receive a short-lived token
Auth-Edge returns an
access_token (a signed JWT) and its expires_in lifetime.3
Authorize requests
Send
Authorization: Bearer <access_token> on every API call until the token expires,
then mint a new one.Obtaining a token
POST /v1/oauth/token
No Authorization header is required. Send your API key as client_secret in the JSON body:
Request body
Response: 200 OK
Using the token
Send the access token in theAuthorization header on every request:
Token errors
Token issuance returns standard OAuth 2.0 error bodies (RFC 6749 §5.2):Scopes & capabilities
Authorization is layered:- Scopes narrow what a token may do at a coarse level (for example
indexer:read). - Capabilities are fine-grained permissions checked per endpoint. The Blockchain Events
service, for example, gates each operation on a capability such as
indexer.subscribe.evmorindexer.history.read. A token missing the required capability receives403. Capabilities are granted by the product/plan attached to your project. See Products and Subscriptions.
