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

# API reference

> Lynq server API authentication, endpoints, and states.

# API reference

Base URL: `https://api.lynq.am/api`

Authenticate server requests with `Authorization: Bearer sk_...`.

\| Method | Path | Purpose |
\| --- | --- |
\| `POST` | `/payment-intents` | Create a Payment Intent. |
\| `GET` | `/payment-intents/:id` | Retrieve a Payment Intent. |

| Status                    | Meaning                                                      |
| ------------------------- | ------------------------------------------------------------ |
| `requires_payment_method` | Awaiting payment details.                                    |
| `requires_action`         | Authentication or a redirect is in progress inside Checkout. |
| `processing`              | Processor completion is pending.                             |
| `succeeded`               | Payment completed successfully.                              |
| `canceled`                | Payment was canceled.                                        |

See [Payment Intents](/build/payment-intents) for request fields and idempotency.


## Related topics

- [Checkout SDK reference](/reference/checkout-sdk.md)
- [API keys and environments](/start/api-keys.md)
- [Errors and troubleshooting](/reference/errors.md)
- [Webhook events](/reference/webhook-events.md)
- [Support](/resources/support.md)
