Generate a client
Any OpenAPI 3.1 generator works. With OpenAPI Generator:BearerAuth, so configure the generated client’s bearer token with your API key. Regenerate whenever you want to pick up new endpoints; the document is regenerated from the API source on every deploy.
Call the API with reqwest
If you only need a few endpoints, a plain HTTP client is enough.Cargo.toml
src/main.rs
serde as shown or derive with #[serde(rename_all = "camelCase")].
What to expect from the API
- Base URL
https://api.kolaria.com, headerAuthorization: Bearer <key>. See Authentication. - Errors are JSON with an
errorstring, pluscodeandrecoveryon authentication failures. - Rate-limited endpoints return
429withRateLimit-*andRetry-Afterheaders. See Rate Limits. - List endpoints for posts, feedback and GEO scans use
pageandlimit. See Pagination.