> For the complete documentation index, see [llms.txt](https://developers.frontstream.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.frontstream.com/welcome-to-our-payment-api/api-references/create-and-configure-pay-links.md).

# Create and configure Pay links

**Payment API - Paylink - API specification-** calling our Payment API POST `/api/paylink` will return a Pay link URL configured to your specific parameters that when ‘clicked’ will render our FrontStream Payment Form your customers can use to make payments.

**Key Details:**

* **API Version:** v1
* **Endpoint:** [`/api/paylink`](/welcome-to-our-payment-api/api-references/test-payment-api-features/each-api-reference-specifics/pay-links.md#post-api-paylink)
* **Method:** POST
* **Purpose:** Returns a configured 'clickable' Pay Link URL for accepting payments.

**Responses:**

* **200 (Success)**: Returns a pay link URL.
* **400 (Bad Request):** If pay link creation throws exception.
* **404 (Not Found):** If pay link data is not found.

**Components:**

* **PayLinkUrl Response:** Returns the pay link URL.
* **BrokenRule:** Represents an error in pay link url creation with an error code and message.
* **ProblemDetails:** Details for any error response, including status, title, and description.

### Create, configure, and return Pay Link URL

See how to create and configure your Pay Link URL through the POST /api/paylink here:

{% content-ref url="/pages/c95d5ed8a9177aebaccfb628cfa58ed8642be771" %}
[Pay Links](/welcome-to-our-payment-api/api-references/test-payment-api-features/each-api-reference-specifics/pay-links.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers.frontstream.com/welcome-to-our-payment-api/api-references/create-and-configure-pay-links.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
