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

# Overview

> Complete reference for all Reached API endpoints.

# API Reference

The Reached API provides a set of RESTful endpoints to manage your outbound calling workflow. All endpoints accept and return JSON.

## Base URL

```text theme={null}
https://kdjmltmhxvvmiuehafgl.supabase.co/functions/v1/api-gateway/v1
```

## Authentication

All requests must include a valid API key in the `Authorization` header:

```text theme={null}
Authorization: Bearer rchd_live_xxxxxxxxxxxx
```

<Card title="Learn more about authentication" icon="key" href="/authentication">
  See the full authentication guide for details on generating and managing API keys.
</Card>

## Available Resources

<CardGroup cols={2}>
  <Card title="Leads" icon="user" href="/rest-api/leads/get-lead">
    Create, list, get, and update leads in your workspace.
  </Card>

  <Card title="Campaigns" icon="bullhorn" href="/rest-api/campaigns/list-campaigns">
    Access calling campaigns and add leads for parallel dialing.
  </Card>

  <Card title="Call Logs" icon="phone" href="/rest-api/call-logs/list-call-logs">
    Retrieve call history with recordings, transcripts, and dispositions.
  </Card>

  <Card title="Tasks" icon="list-check" href="/rest-api/tasks/create-task">
    Create and manage follow-up tasks linked to leads.
  </Card>
</CardGroup>

## Endpoint Summary

### Leads

| Method | Endpoint        | Description   |
| ------ | --------------- | ------------- |
| `POST` | `/v1/leads`     | Create a lead |
| `GET`  | `/v1/leads`     | List leads    |
| `GET`  | `/v1/leads/:id` | Get a lead    |
| `PUT`  | `/v1/leads/:id` | Update a lead |

### Campaigns

| Method   | Endpoint                           | Description                   |
| -------- | ---------------------------------- | ----------------------------- |
| `GET`    | `/v1/campaigns`                    | List campaigns                |
| `GET`    | `/v1/campaigns/:id`                | Get a campaign                |
| `POST`   | `/v1/campaigns/:id/leads`          | Add leads to a campaign       |
| `DELETE` | `/v1/campaigns/:id/leads/:lead_id` | Remove a lead from a campaign |

### Call Logs

| Method | Endpoint            | Description    |
| ------ | ------------------- | -------------- |
| `GET`  | `/v1/call-logs`     | List call logs |
| `GET`  | `/v1/call-logs/:id` | Get a call log |

### Tasks

| Method | Endpoint    | Description   |
| ------ | ----------- | ------------- |
| `POST` | `/v1/tasks` | Create a task |
| `GET`  | `/v1/tasks` | List tasks    |

### Enrichment

| Method | Endpoint               | Description   |
| ------ | ---------------------- | ------------- |
| `POST` | `/v1/leads/:id/enrich` | Enrich a lead |
