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

# Link API

> Authenticate OnlyFans users and obtain connection IDs

The Link API handles user authentication through hosted flows. Users authenticate on OFAuth's secure pages, and you receive a connection ID to use with the Access API.

<Card title="Link Guide" icon="book" href="/guides/link">
  Complete guide with integration options, security configuration, and implementation examples
</Card>

## Quick Reference

| Endpoint                  | Method | Purpose                   |
| ------------------------- | ------ | ------------------------- |
| `/v2/link/init`           | POST   | Initialize a Link session |
| `/v2/link/{clientSecret}` | GET    | Check session status      |
| `/v2/link/{clientSecret}` | DELETE | Delete a session          |

## Authentication

```http theme={null}
apikey: YOUR_API_KEY
```

**Required Scope:** `LINK`

<CardGroup cols={2}>
  <Card title="Redirect Flow" icon="external-link" href="/guides/link#redirect-flow">
    Redirect-based authentication
  </Card>

  <Card title="Popup Flow" icon="window" href="/guides/link#popup-flow-embed-library">
    Popup authentication without redirects
  </Card>
</CardGroup>
