Base URL
All API requests target the following base URL:Request Format
Send all requests with theContent-Type: application/json header and a JSON-encoded body. Authenticate every request using a Bearer token in the Authorization header (see Authentication for details).
Response Format
All responses are JSON-encoded. Successful responses return a200 OK status code along with a structured JSON body. Errors return an appropriate HTTP status code and a JSON object containing error.type, error.message, and error.code fields.
Available Endpoints
SDKs
You can interact with the Swytcho API directly over HTTP or through an official SDK. The following SDKs are available:The Swytcho API is fully compatible with the OpenAI SDK. Point the OpenAI client at
https://api.swytcho.com/v1 by setting the base_url (Python) or baseURL (Node.js) option, and use your Swytcho API key. No other code changes are required.