# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
