Getting Started
SimpleWebAPIs provides a growing suite of developer-friendly APIs. This guide will help you make your first request in minutes.
Authentication
All API requests require an API key. You can generate keys from your dashboard after signing up.
Include your API key in the X-Api-Key header on every request:
curl -H "X-Api-Key: swa_your_api_key_here" \
https://simplewebapis.com/api/qrcode \
-d '{"text": "Hello World"}'
Making Requests
Most APIs support both POST (JSON body) and GET (query parameters) methods. The base URL for all API requests is:
https://simplewebapis.com/api
JSON-based APIs return responses in the ApiResponse envelope format:
{
"success": true,
"message": null,
"data": { ... }
}
Image APIs (QR Code, Barcode, Data Matrix, Stylised QR Code) return raw PNG files, and document APIs (Invoice, Quote, Receipt, Purchase Order, Packing Slip) return raw PDF files.
Errors
APIs return standard HTTP status codes and structured error responses:
400Bad Request - invalid input parameters401Unauthorized - missing or invalid API key402Payment Required - no active subscription403Forbidden - API key not scoped to this API or origin not allowed404Not Found - endpoint or resource not found410Gone - this API is currently disabled429Insufficient Credits - not enough credits for this request500Internal Server Error - something went wrong on our end
{
"success": false,
"message": "Text is required.",
"data": null
}