The ByteStack REST API gives you programmatic access to every capability on the platform — submitting natural language queries, scheduling recurring jobs, retrieving stored results, and registering webhooks. All requests are authenticated with a Bearer token and target the base URLDocumentation Index
Fetch the complete documentation index at: https://docs.bytestack.com/llms.txt
Use this file to discover all available pages before exploring further.
https://api.bytestack.dev/v1.
Authentication
Include your API key as a Bearer token on every request.You can find and rotate your API keys in the dashboard under Settings → API Keys.
Queries
Use the Queries resource to submit a natural language prompt against one or more sources and retrieve results.Submit a query
The natural language question or instruction to execute against the selected sources.
List of source identifiers to query. Examples:
"x", "reddit", "linkedin", "youtube", "tiktok", "instagram", "facebook".Optional time window to restrict results.
Maximum number of results to return. Accepts 1–1000.
Unique identifier for this query. Use it to poll for results.
Current status:
queued, running, completed, or failed.ISO 8601 timestamp of when the query was submitted.
Get query results
Retrieve the status and results of a previously submitted query.The query ID returned from
POST /v1/queries.Query identifier.
queued, running, completed, or failed.Present when
status is completed.Error message when
status is failed.Jobs
Jobs let you schedule a query to run automatically on a cron schedule. Each run stores results and can notify your endpoint via webhook.List jobs
Create a job
A human-readable label for the job.
The natural language query to execute on each run.
List of source identifiers to query.
Cron expression defining the run frequency, e.g.
"0 8 * * *" for 08:00 UTC daily.Optional URL to receive a POST callback when each run completes.
Update a job
Pause or resume a job, change its schedule, or update its webhook URL.The job ID to update.
Set to
"paused" or "active" to pause or resume the job.New cron expression for the job.
Updated webhook URL.
Delete a job
The job ID to delete. This action is irreversible.
Storage
ByteStack stores every job run result as a file you can list and download through the API or the dashboard Storage tab.List result files
Download a result file
The file key returned from
GET /v1/storage. URL-encode slashes or pass as a path segment.Webhooks
Register an endpoint to receive POST callbacks when job runs complete.Register a webhook
The HTTPS endpoint ByteStack should POST results to.
List of event types to subscribe to. Defaults to
["job.completed"].Delete a webhook
The webhook ID to delete.
Error codes
ByteStack uses standard HTTP status codes. All error responses include a JSON body with acode and message field.
| Status | Meaning |
|---|---|
400 Bad Request | The request body is missing required fields or contains invalid values. |
401 Unauthorized | The Authorization header is missing or the API key is invalid. |
402 Payment Required | Your account has a billing issue. Check Settings → Billing in the dashboard. |
403 Forbidden | Your API key does not have permission to perform this action. |
404 Not Found | The requested resource does not exist. |
429 Too Many Requests | You have exceeded your rate limit. Respect the Retry-After header. |
500 Internal Server Error | An unexpected error occurred on ByteStack’s servers. Contact support if it persists. |