> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appstatic.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> From API key to a batch in Meta, in a few minutes.

<Steps>
  <Step title="Create an API key">
    In the dashboard, open **Settings → API & agents** and create a key. Copy it; it is shown once.
  </Step>

  <Step title="Check your account">
    ```bash theme={null}
    curl https://www.appstatic.io/api/v1/me \
      -H "Authorization: Bearer as_live_…"
    ```

    You'll see your plan, brand, and whether Meta is connected.
  </Step>

  <Step title="Generate a batch">
    ```bash theme={null}
    curl -X POST https://www.appstatic.io/api/v1/batches \
      -H "Authorization: Bearer as_live_…" \
      -H "content-type: application/json" \
      -d '{"count": 10}'
    ```

    The request returns when the batch is finished and audited. Budget about 15 seconds per ad (30 ads ≈ 8 minutes).
  </Step>

  <Step title="Push it to Meta">
    Connect your ad account once in **Settings → Delivery**, then:

    ```bash theme={null}
    curl -X POST https://www.appstatic.io/api/v1/meta/upload \
      -H "Authorization: Bearer as_live_…" \
      -H "content-type: application/json" \
      -d '{"batchId": "…"}'
    ```

    Everything is created **paused**. You activate it in Ads Manager.
  </Step>
</Steps>
