Skip to main content
Gravity’s public API is intentionally small: If you’re using an SDK, you’re already hitting /api/v1/ad under the hood — the SDK is a thin wrapper that handles context preparation, retry, and impression tracking.

Base URL

Authentication

Pass your Gravity API key as a Bearer token:
Grab the key from your dashboard under Settings → Platform Settings (for AI platforms) or Settings → Organization (for advertisers).

Health check

Returns 200 with status: "ok", ready: true, and the deployed release_sha in the steady state, or 503 with {"status":"starting","ready":false} while the server is still warming up. Useful for uptime probes. Doesn’t count against rate limits.

What’s next

Contextual ads endpoint

Full request / response reference for POST /api/v1/ad.

Ad feedback

Let users react to ads with thumbs-up / thumbs-down.