Standard Response Structure
All ScriptBase endpoints return JSON with a consistent structure.Success Response
Error Response
Response Fields
Top-Level Fields
| Field | Type | Always Present | Description |
|---|---|---|---|
success | boolean | Yes | true for success, false for errors |
data | object | Success only | The requested data |
error | object | Error only | Error information |
meta | object | Success only | Metadata about the request |
Meta Object
Themeta object provides information about credit usage and rate limits:
| Field | Type | Description |
|---|---|---|
creditsUsed | number | Credits consumed by this request |
creditsRemaining | number | Credits left in your quota after this request |
rateLimit.limit | number | Total requests allowed per minute |
rateLimit.remaining | number | Requests remaining in current window |
rateLimit.resetAt | number | Unix timestamp when rate limit resets |
Content Type
All responses useapplication/json content type:
Status Codes
See Error Reference for complete status code documentation.| Code | Meaning |
|---|---|
| 200 | Success |
| 202 | Accepted (async job created) |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Rate Limit Exceeded |
| 500 | Internal Server Error |