> For the complete documentation index, see [llms.txt](https://docs.llamapay.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.llamapay.io/payments-gateway/integration/api-reference.md).

# API Reference

### Authentication

All calls must be authenticated with the header `Authorization: llamapay_sk_YOUR_API_KEY`.\
You can obtain the required API Key in the Developer tab on [LlamaPay's interface](https://checkout.llamapay.io/).

{% openapi src="/files/gKndNCnizEZc61uXFYJO" path="/charges" method="post" %}
[api-reference.yaml](https://1064095018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CMHHZLnhZkCj1dVKJLj%2Fuploads%2F3GaohI5v4gaB9TyGT3rV%2Fapi-reference.yaml?alt=media\&token=dc36d22b-bddd-491b-a5d0-9d3b9f5de784)
{% endopenapi %}

{% openapi src="/files/gKndNCnizEZc61uXFYJO" path="/charges" method="get" %}
[api-reference.yaml](https://1064095018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CMHHZLnhZkCj1dVKJLj%2Fuploads%2F3GaohI5v4gaB9TyGT3rV%2Fapi-reference.yaml?alt=media\&token=dc36d22b-bddd-491b-a5d0-9d3b9f5de784)
{% endopenapi %}

{% openapi src="/files/gKndNCnizEZc61uXFYJO" path="/charges/{payment\_id}" method="get" %}
[api-reference.yaml](https://1064095018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CMHHZLnhZkCj1dVKJLj%2Fuploads%2F3GaohI5v4gaB9TyGT3rV%2Fapi-reference.yaml?alt=media\&token=dc36d22b-bddd-491b-a5d0-9d3b9f5de784)
{% endopenapi %}
