# Your First Request


Five minutes from a login to reading your own audiences: get a token, see
what your account can build, then list what it has built. After the login,
every request is a read: nothing is built, and nothing counts toward your
data-scan limit.

## 1. Get a token

Exchange the email and password you use for the Intuizi console for a token:

```bash
curl -X POST "https://console.intuizi.com/api/v2/auth/login" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"email": "you@example.com", "password": "your-password"}'
```

The token is in `data.token`:

```json
{
  "status": "success",
  "code": 200,
  "message": "Token generated successfully.",
  "data": { "token": "FxGrKXTS0iLgonnQZtELC0dWu73xslzHjGjaBVef" }
}
```

A login token is fine for trying things out, but each login replaces it. For
servers, scripts, and CI, create a long-lived API token instead - see
[Which token should I use?](/getting-started/authentication#which-token-should-i-use)

## 2. See what you can build

Send the token as `Authorization: Bearer <token>` on every request. Start with
the dataset types your account can build audiences from:

```bash
curl "https://console.intuizi.com/api/v2/analyses/reference/common/dataset-types" \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
  -H "Accept: application/json"
```

Every response comes in the same envelope, with the result in `data`:

```json
{
  "status": "success",
  "code": 200,
  "message": "Resources fetched successfully.",
  "data": [
    { "value": "WebDomain", "text": "Web Domain" },
    { "value": "Apps", "text": "Apps" }
  ]
}
```

Each `value` is a dataset `type` you can put in an audience.

## 3. List your audiences

```bash
curl "https://console.intuizi.com/api/v2/analyses/audiences/index" \
  -H "Authorization: Bearer <YOUR_TOKEN>" \
  -H "Accept: application/json"
```

Long lists come a page at a time, as `data.items` with a `pagination` block:

```json
{
  "status": "success",
  "code": 200,
  "message": "Resources fetched successfully.",
  "data": {
    "items": [
      {
        "id": 88,
        "name": "Coffee Buyers NYC",
        "status": { "id": 104, "name": "Completed" },
        "results_count": 482311
      }
    ],
    "pagination": { "current_page": 1, "per_page": 25, "total": 1, "last_page": 1 }
  }
}
```

Status `104` Completed means the audience is built and ready to deliver.
[Status Codes](/concepts/status-codes) lists the others. The real response
carries more fields per audience; see
[List Audiences](/api/v2/audiences#get-apiv2analysesaudiencesindex).

## Next steps

{{< cards cols="2" >}}
  {{< card link="/developers/guides/create-an-audience/" title="Create an Audience" icon="user-group" subtitle="Build your first audience, and wait for it to complete." >}}
  {{< card link="/developers/concepts/" title="Concepts" icon="book-open" subtitle="The envelope, errors, limits, and how background work finishes." >}}
  {{< card link="/developers/api/v2/" title="API Reference" icon="code" subtitle="Every endpoint, with examples in four languages." >}}
  {{< card link="/developers/cli/" title="Intuizi CLI" icon="terminal" subtitle="The same requests as commands, for a terminal or a script." >}}
{{< /cards >}}
