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

# API overview

> Authenticate and call the Costory HTTP API. Use a bearer token from the Costory app for every request.

The Costory API exposes the same endpoints the app uses over HTTP. Base URL:

```bash theme={null}
https://app-api.costory.io
```

Start with the [Query Costs API](https://docs.costory.io/api-reference/queries/overview.md) to run Explorer queries from your own tools, the [Reports API](https://docs.costory.io/api-reference/reports/overview.md) to create and schedule cost reports, or the [Enrichments API](https://docs.costory.io/api-reference/enrichments/overview.md) to publish lookup files from git. To ingest hourly custom metrics, use [Custom Metrics Push](https://docs.costory.io/setup/usage-metrics/custom-metrics-push.md) (`POST /integrations/:id/metrics/points` with an organization API key). More resources (Events, Teams, and others) are listed in this API Reference tab as they ship.

## Authentication

All requests use a bearer token in the `Authorization` header. Create a user-scoped token or an organization-scoped token (admins only) in the [Costory app](https://app.costory.io/).

```bash theme={null}
Authorization: Bearer <your-api-token>
```

![Create a user scoped token in Costory settings](https://mintcdn.com/costory/JTfvymumgsDgNwGk/images/api/authentication.png?fit=max\&auto=format\&n=JTfvymumgsDgNwGk\&q=85\&s=c2b334377c87e9f1a1b71a38bf2ae944)

Create a user scoped token


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