Skip to main content

Swagger UI

WA-RS includes an interactive Swagger UI for exploring and testing all API endpoints directly from your browser.

Accessing Swagger UI

Open your browser and navigate to:

http://localhost:3451/swagger-ui

The OpenAPI JSON spec is available at:

http://localhost:3451/api-docs/openapi.json

Features

  • Interactive API Explorer - Browse all endpoints organized by tags
  • Try It Out - Execute API calls directly from the browser
  • Request/Response Examples - See expected formats for each endpoint
  • Authentication - Enter your Bearer token to test authenticated endpoints
  • Schema Viewer - Explore all request/response data models

Authentication in Swagger

  1. Click the Authorize button (lock icon) at the top
  2. Enter your Superadmin Token (shown in server logs at startup)
  3. Click Authorize
  4. All subsequent requests will include the Authorization: Bearer <token> header

API Tags

Endpoints are organized into the following groups:

TagDescription
sessionsSession management and authentication
messagesSend and manage messages
contactsContact information and lookup
groupsGroup management
presenceOnline status
chatstateTyping indicators
blockingBlock and unblock contacts
mediaMedia upload and download
webhooksWebhook registration for events
privacyPrivacy settings management
mexGraphQL/MEX operations
newsletterNewsletter/Channel messages
operationsSpam reporting, TCToken, reconnection, and sync
natsNATS JetStream management and status