# Oceanir developer resources

This page is the named index of Oceanir developer resources: REST API, OpenAPI, authentication, webhooks, MCP, CLI, and self-serve keys.

## API

- OpenAPI 3.1 spec: https://oceanir.ai/openapi.json
- API reference: https://oceanir.ai/docs/api-reference
- Authentication (x-api-key or Authorization: Bearer): https://oceanir.ai/docs/authentication
- Rate limits (RFC RateLimit headers + Retry-After on 429): https://oceanir.ai/docs/authentication/rate-limits
- Errors are JSON with `code`, `message`, `hint`, and `docs`
- Primary endpoint: POST https://oceanir.ai/api/v1/geolocate with `image_url` or raw `image_b64` (no data: prefix) and optional `depth` 1|2|3

## Onboarding

- Free D1 tier: no signup, POST /api/v1/geolocate at depth 1 from the public app, or upload at https://oceanir.ai/where-is-this-image-taken
- Individual API access: https://platform.oceanir.ai/api-keys (check your account access and key permissions)
- Sandbox / test: use depth 1 on a public image URL; no production data required
- CLI: `npx @oceanir/sdk geolocate --image-url https://example.com/photo.jpg`

## Agents

Agents should use MCP, not REST.

- MCP (Streamable HTTP): https://mcp.oceanir.ai — `initialize` and `tools/list` are public; `tools/call` uses OAuth. MCP calls the keyed REST API on the server after the user authorizes.
- Do not call POST /api/v1/geolocate from an agent. That endpoint requires a developer API key.
- CLI docs (developers, API key required): https://oceanir.ai/cli
- llms.txt: https://oceanir.ai/llms.txt
- Full agent brief: https://oceanir.ai/llms-full.txt
- API catalog: https://oceanir.ai/.well-known/api-catalog
