Developer v1.0

Master API Vault

Programmatically access Swashi’s neural engine to automate content generation, product intelligence, and analytics directly from your application.

Introduction

The Master API Vault is a REST-based API designed for developers, founders, and automation teams. It provides predictable JSON outputs, fast response times, and scalable infrastructure for real-world production workloads.

Authentication

Authenticate requests using thex-api-keyheader.

BASH
curl -X POST https://api.swashi.io/v1/generate \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"scaling strategy"}'

Rate Limits

To ensure platform stability, requests are rate-limited.

  • 60 requests per minute
  • 1,000 requests per day (Free tier)
  • Higher limits available on paid plans

Response Object

All responses are returned in standard JSON format.

JSON
{
  "status": "success",
  "data": {
    "id": "gen_839201",
    "content": "Dropshipping automation...",
    "usage": {
      "tokens": 150,
      "model": "gpt-4-turbo"
    }
  }
}

Error Handling

Errors return non-200 HTTP codes with structured messages.

JSON
{
  "status": "error",
  "code": 401,
  "message": "Unauthorized request"
}
Chat with us