> For the complete documentation index, see [llms.txt](https://docs.aurinko.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aurinko.io/unified-apis/webhooks-api/notification-url-verification.md).

# Notification URL Verification

To ensure endpoint availability, Aurinko performs a validation handshake when a subscription is created.<br>

1. **The Verification Request**\
   When you call the <mark style="color:red;">POST</mark> <mark style="color:red;"></mark><mark style="color:red;">`/v1/subscriptions`</mark> endpoint, Aurinko immediately sends a POST request to your provided notificationUrl. \
   \
   **Request Details:**

   * **Method:** <mark style="color:red;">POST</mark>
   * **Query Parameter:** <mark style="color:red;">validationToken</mark> (a random string generated by Aurinko)

   \
   **Example Request:**

   ```
   Content-Type: text/plain; charset=utf-8
   POST https://{notificationUrl}?validationToken={challenge}
   ```

2. **Your Server’s Response**\
   Verify request see Authentication. Your endpoint must respond to this POST request to prove it is active and authorized to receive notifications.

* **Status Code:** <mark style="color:red;">200 OK</mark>
* **Content-Type:** <mark style="color:red;">text/plain</mark>
* **Response Body:** Must contain only the value of the [<mark style="color:red;">validationToken</mark>](#user-content-fn-1)[^1] parameter received in the request.\
  \
  **Example Response:**

  ```
  HTTP/1.1 200 OK Content-Type: text/plain
  679732f7-8775-4340-a33d-713217277682
  ```

3. **Critical Requirements**

* **Timeout:** Your server must respond within 30 seconds. If the request times out or returns an error (e.g., 4xx or 5xx), the subscription creation will fail.
* **Plain Text:** Ensure your framework does not wrap the token in JSON or HTML. It must be a raw string response.\
  \
  **Subscription Workflow Summary**
  1. **Register:** Your app calls <mark style="color:red;">POST</mark> <mark style="color:red;"></mark><mark style="color:red;">`/v1/subscriptions`</mark>.
  2. **Verify:** Aurinko calls your URL via <mark style="color:red;">POST</mark> with a <mark style="color:red;">validationToken</mark>.
  3. **Confirm:** Your server returns the token.
  4. **Activate:** Aurinko returns a <mark style="color:red;">200 Success</mark> to your original registration call and begins sending <mark style="color:red;">POST</mark> notifications.

[^1]:


---

# 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://docs.aurinko.io/unified-apis/webhooks-api/notification-url-verification.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.
