Skip to main content
Domavia
API Reference
Latest

API Reference

REST API documentation for Domavia external integrations

Domavia exposes a REST API for external integrations. The complete OpenAPI specification (JSON) is available at:

TEXT
https://api.domavia.app/openapi.json

Public REST API

These endpoints accept JSON request bodies and return typed responses:

  • AI Services — Chat, document analysis, and cross-domain insights
  • Documents — Upload, retrieve, and manage user documents

Authentication

All endpoints require a valid session. Authenticate via:

  • Session cookie — Set automatically after login at web.domavia.app
  • Bearer tokenAuthorization: Bearer <token> for server-to-server calls
HTTP
POST https://api.domavia.app/api/ai/chat
Authorization: Bearer <your-token>
Content-Type: application/json
{"message": "What visa do I need to work in Portugal?"}

Notes on tRPC

The web application communicates with the backend over tRPC — a type-safe RPC protocol, not REST. tRPC endpoints (/api/trpc/...) are implementation details of the web UI and are not a versioned external API. Use the REST endpoints above for external integrations.

Browse by Category

Use the sidebar to explore the REST endpoints, or press ⌘K to search.