Swush
API

OpenAPI

Full API schema and interactive docs.

Swush publishes an OpenAPI JSON at:

/api/v1/openapi

You can use it with Postman, Insomnia, or any OpenAPI tooling.

Fetch example

curl -s https://your-domain.com/api/v1/openapi > openapi.json

Import in Postman

  1. Open Postman → Import
  2. Paste the URL: https://your-domain.com/api/v1/openapi
  3. Create a collection

OpenAPI config (example)

If you need a static config in your tooling, use:

{
  "openapi": "3.0.3",
  "info": {
    "title": "Swush API",
    "version": "1.0.0"
  },
  "servers": [{ "url": "https://your-domain.com" }],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [{ "ApiKeyAuth": [] }]
}

On this page