Skip to content

REST API

The Cosmos API is available at https://api.getcosmos.dev.

For the full interactive API documentation with request/response examples, visit:

api.getcosmos.dev/docs

The OpenAPI 3.1 specification is available at:

https://api.getcosmos.dev/openapi.json
https://api.getcosmos.dev

Returns information about the API.

Response:

{
"name": "Cosmos API",
"version": "0.0.1",
"description": "API for the Cosmos ecosystem",
"environment": "production",
"timestamp": "2025-12-03T00:00:00.000Z"
}

Coming soon - Authentication endpoints for user signup, login, and session management.

The API uses Cloudflare’s built-in DDoS protection. Additional rate limiting may be applied in the future.

The API allows cross-origin requests from any origin for development purposes. In production, this may be restricted.