Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.bytestack.com/llms.txt

Use this file to discover all available pages before exploring further.

This guide walks you through creating a ByteStack account, generating your first API key, and submitting a natural language query via the REST API. By the end you’ll have a working request and a real response to explore.
1

Create your account

Go to app.bytestack.dev/signup and create a free account. You can sign up with Google, GitHub, or SSO, or register with an email address and password.Once your account is created, you land in your project workspace. The free tier includes 1,000 queries per month at no cost — no credit card required to get started.
If your organization uses SSO, contact your administrator for the SSO link before signing up with email.
2

Generate an API key

From the dashboard, open SettingsAPI Keys and click New Key. Give the key a descriptive name (for example, development or ci-pipeline) and select the scopes you need.Copy the key immediately — it is only shown once. Store it in a secure location such as a secrets manager or environment variable.
Never commit API keys to source control. Use environment variables or a secrets manager to inject keys at runtime.
3

Run your first query

Send a POST request to /v1/queries with your natural language prompt and the sources you want to query. Pass your API key in the Authorization header.
curl -X POST https://api.bytestack.dev/v1/queries \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "How many times was our brand Acme mentioned on X in the last 7 days?",
    "sources": ["x", "reddit"]
  }'
Replace YOUR_API_KEY with the key you generated in the previous step.
4

View the results

A successful request returns a JSON object with a query id, a status, and a results array. When the query completes synchronously the status is completed and results are included in the response. Long-running queries return pending — poll the query by id or use webhooks to receive a notification when results are ready.
{
  "id": "qry_01hx9m4kzp8v3tnb6wcqd7rf2e",
  "status": "completed",
  "prompt": "How many times was our brand Acme mentioned on X in the last 7 days?",
  "results": [
    {
      "source": "x",
      "count": 1482
    },
    {
      "source": "reddit",
      "count": 317
    }
  ],
  "created_at": "2026-04-30T14:02:00Z"
}
You can also view query results in the DashboardJobs panel of your project workspace, where ByteStack displays charts and sentiment breakdowns alongside the raw counts.

Next steps

Authentication

Learn about key scopes, key rotation, and how to handle auth errors.

Core concepts

Understand how ByteStack translates prompts into targeted data fetches.

REST API

Explore all available endpoints, parameters, and response schemas.

Brand monitoring

Set up a recurring job to track brand mentions across multiple sources.