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

# Introduction

> The Market or Die REST API — compose, schedule, and ship to every channel programmatically.

The Market or Die API lets you do everything the composer does — from your own
code: schedule posts, fan them out to X, LinkedIn, YouTube, and Instagram, list
your queue, and read your team's leaderboard.

## Base URL

```
https://api.marketordie.io/v1
```

All endpoints are versioned under `/v1` and return JSON.

## Authentication

Send your API key as a bearer token on every request:

```bash theme={null}
Authorization: Bearer mod_live_…
```

Create keys in the app under **Profile → API keys**. See
[Authentication](/authentication) for details.

## Responses

Every response is wrapped in a consistent envelope.

<CodeGroup>
  ```json Success theme={null}
  { "data": { "...": "..." } }
  ```

  ```json List (paginated) theme={null}
  { "data": [], "pagination": { "limit": 25, "offset": 0, "total": 0 } }
  ```

  ```json Error theme={null}
  { "error": { "code": "unauthorized", "message": "Invalid or revoked API key." } }
  ```
</CodeGroup>

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Create a key and ship your first post in two calls.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    How API keys work and how to keep them safe.
  </Card>
</CardGroup>
