## 1. Check The Backend ```bash curl https://api.ravi.app/api/health/ping/ ``` You should receive a JSON response from the production Django backend. ## 2. Choose Authentication For agent runtimes, use the narrowest API key that works: - `ravi_id_...` for one identity - `ravi_mgmt_...` for management operations Pass the key as a bearer token: ```bash export RAVI_API_KEY="ravi_id_..." curl https://api.ravi.app/api/health/whoami/ \ -H "Authorization: Bearer $RAVI_API_KEY" ``` For local CLI login, use: ```bash ravi auth login ``` ## 3. Inspect Available Resources Once authenticated, list the resources you need: ```bash # Account-level: list the identities the key can reach. curl https://api.ravi.app/api/identities/ \ -H "Authorization: Bearer $RAVI_API_KEY" # Per-identity: the caller chooses the identity via ?identity=. curl "https://api.ravi.app/api/email-inbox/?identity=$IDENTITY_UUID" \ -H "Authorization: Bearer $RAVI_API_KEY" curl "https://api.ravi.app/api/sms-inbox/?identity=$IDENTITY_UUID" \ -H "Authorization: Bearer $RAVI_API_KEY" ``` The API key is an auth fence only — the caller picks the identity. A management key with `?identity=` targets one identity; an identity-scoped key is already fenced to its identity, and `?identity=` must match it. ## 4. Use The API Reference Use [API Endpoints](/api/endpoints/) as the route map and `https://docs.ravi.app/openapi.json` for generated request and response schemas. ## Next Steps - [Authentication](/getting-started/authentication/) - [API Overview](/api/overview/) - [API Endpoints](/api/endpoints/)