---
title: "AEO API Quickstart: Make Your First Request | AEO API"
description: "Set your API host and server-side key, read your account, then add brands and prompts before you request answer collection."
url: "https://aeoapi.dev/docs/getting-started"
canonical: "https://aeoapi.dev/docs/getting-started"
last_updated: "2026-11-30"
---

Getting started

# Make your first AEO API request

Make a read-only account request to check your key and see which sources are available. When you are ready to collect answers, follow the [three-call quickstart](https://aeoapi.dev/docs/three-call-quickstart).

Using a coding agent? [Read your account with a coding agent](https://aeoapi.dev/docs/getting-started#coding-agent).

## Before you start

You need three things:

- An account activated by accepting your invitation. [Contact us](https://aeoapi.dev/contact) to get started.
- A scoped API key.
- The API base URL, `https://api.aeoapi.dev`.

For REST requests from your app, keep the key on your server. Never put it in browser JavaScript or in a public build variable, including variables prefixed with `PUBLIC_`. Anything shipped to the browser can be read by anyone who loads the page.

To request an invitation, use the [contact form](https://aeoapi.dev/contact). Follow the link in your email to set a password and activate the account.

## Set your environment

Load your key into `AEO_API_KEY` using your usual secret store. Export it and set the API origin without a version suffix.

```
export AEO_API_BASE_URL="https://api.aeoapi.dev"
export AEO_API_KEY
```

## Read your account

Send `GET /v2/account` with a key that has `account:read`. This request reads your account overview and does not create resources or consume credits.

For Python or TypeScript, install the [Python SDK](https://aeoapi.dev/docs/sdks/python#install) or the [TypeScript SDK](https://aeoapi.dev/docs/sdks/typescript#install) first.

```bash
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
  -H "Authorization: Bearer $AEO_API_KEY"
```

```python
import os
from aeo_sdk import AeoClient

with AeoClient(os.environ["AEO_API_KEY"], base_url=os.environ["AEO_API_BASE_URL"]) as client:
    response = client.v2_get_account()
    print(response.body)
```

```typescript
import { AeoClient } from "@aeoapi/aeo-sdk";

const apiKey = process.env.AEO_API_KEY;
if (!apiKey) throw new Error("Set AEO_API_KEY on your server.");
const client = new AeoClient(apiKey, { baseUrl: "https://api.aeoapi.dev" });

const account = await client.v2GetAccount();
console.log(account.status, account.body);
```

HTTP `200` confirms that the request succeeded. If curl exits with an error, read the response body. Check the key and its scope before continuing. See the [v2 API reference](https://aeoapi.dev/docs/api-reference#reference) for the other account views.

## Read your account with a coding agent

If hosted MCP is available for your account, you can make your first read from a coding agent. Use an agent that supports MCP Streamable HTTP and custom request headers.

Follow the [MCP setup guide](https://aeoapi.dev/docs/mcp) to connect and read your account.

## Collect and read results

The [three-call quickstart](https://aeoapi.dev/docs/three-call-quickstart) shows how to create a brand with prompts, start a collection and read the result. Use the [access guide](https://aeoapi.dev/docs/guides/authentication-and-access) to choose scopes and retry writes safely.

## Asynchronous work

Follow `data.poll_url` from the accepted collection response to read the run state. The [polling guide](https://aeoapi.dev/docs/prompt-collection#poll) explains when a run has finished and how to read the result.
