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

# API reference

> Endpoint reference for the Asteroid API, with authentication and the OpenAPI schemas.

This section documents every endpoint. To write an integration, start with [Call a workflow from your code](https://docs.asteroid.ai/integrate/call-a-workflow.md) — it has the whole flow with working code.

## Authentication

Send your API key in the `X-Api-Key` header.

```bash theme={null}
curl -H "X-Api-Key: $ASTEROID_API_KEY" \
  "https://odyssey.asteroid.ai/agents/v2/workflows"
```

### API keys

Create a key in the platform. Click your organization's name in the sidebar, then **API Keys**. Or open [platform.asteroid.ai/keys](https://platform.asteroid.ai/keys).

* A key belongs to one organization. Every request it makes acts in that organization.
* Any member of the organization can create and revoke keys.

## Base URL

```
https://odyssey.asteroid.ai/agents/v2
```

## Schemas

* Core API: `https://odyssey.asteroid.ai/agents/v2/openapi.yaml`
* Webhooks: `https://odyssey.asteroid.ai/webhooks/openapi.json`

## Start here

> [card] [Call a workflow from your code](https://docs.asteroid.ai/integrate/call-a-workflow.md)
>
> The whole integration, with working code in three languages

> [card] [Executions and statuses](https://docs.asteroid.ai/concepts/executions.md)
>
> The lifecycle an execution moves through

> [card] [Inputs and outputs](https://docs.asteroid.ai/concepts/inputs-and-outputs.md)
>
> The contract between a workflow and your code

> [card] [SDKs](https://docs.asteroid.ai/sdks/setup.md)
>
> TypeScript and Python clients


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.