Skip to content

    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.

    Using a coding agent? Read your account with a coding agent.

    Before you start

    You need three things:

    • An account activated by accepting your invitation. Contact us 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. 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 or the TypeScript SDK first.

    curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
      -H "Authorization: Bearer $AEO_API_KEY"
    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)
    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 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 to connect and read your account.

    Collect and read results

    The three-call quickstart shows how to create a brand with prompts, start a collection and read the result. Use the access guide 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 explains when a run has finished and how to read the result.