> This page is for version V3 - Beta (default).
> For other versions, use one of these documentation indexes:
> - V3 - Beta (default): https://docs.authlyx.dev/v3/llms.txt
> - V2 - Legacy: https://docs.authlyx.dev/v2/llms.txt
> - V1 - End of support: https://docs.authlyx.dev/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.authlyx.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.authlyx.dev/_mcp/server.

# Send webhook

POST http://127.0.0.1:4000/v3/webhooks/send
Content-Type: application/json

Send text or JSON data to the webhooks enabled for this event in your dashboard. The webhook URL stays on AuthlyX. Requires Plus or Elite.

Reference: https://docs.authlyx.dev/api-reference/client/app-data/webhooks/send-webhook

## Authentication

- `Authorization` header (bearer token, required) — Opaque v3 session token returned by login, bound to its identity and installation.

## Servers

- `http://127.0.0.1:4000` (Local development, default)
- `https://api.authlyx.dev` (Production host - deployment pending)

## Request

### Headers

- `X-AuthlyX-Nonce` (string, required) — Fresh random hexadecimal nonce. Do not reuse.
- `X-AuthlyX-Timestamp` (string, required) — Server-aligned Unix time in milliseconds.
- `X-AuthlyX-Signature` (string, required) — Base64 Ed25519 installation signature over the exact request-proof payload.

### Body (application/json)

This endpoint expects an object.

- `event` (string, required)
- `message` (string, optional)
- `data` (map from string to any, optional)
- `idempotencyKey` (string, optional)

## Response

### 200

Successful

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (V3WebhooksSendPostResponsesContentApplicationJsonSchemaData, required, nullable)
- `requestId` (string, required)
- `verification` (V3WebhooksSendPostResponsesContentApplicationJsonSchemaVerification, required)

## Errors

### 400 Bad Request Error

Bad request

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (map from string to any, required, nullable)
- `requestId` (string, required)
- `verification` (SignedResponseVerification, required)

### 401 Unauthorized Error

Unauthorized

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (map from string to any, required, nullable)
- `requestId` (string, required)
- `verification` (SignedResponseVerification, required)

### 403 Forbidden Error

Forbidden

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (map from string to any, required, nullable)
- `requestId` (string, required)
- `verification` (SignedResponseVerification, required)

### 404 Not Found Error

Not found

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (map from string to any, required, nullable)
- `requestId` (string, required)
- `verification` (SignedResponseVerification, required)

### 413 Content Too Large Error

Payload too large

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (map from string to any, required, nullable)
- `requestId` (string, required)
- `verification` (SignedResponseVerification, required)

### 415 Unsupported Media Type Error

Unsupported content type

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (map from string to any, required, nullable)
- `requestId` (string, required)
- `verification` (SignedResponseVerification, required)

### 429 Too Many Requests Error

Too many requests

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (map from string to any, required, nullable)
- `requestId` (string, required)
- `verification` (SignedResponseVerification, required)

### 503 Service Unavailable Error

Service unavailable

- `success` (boolean, required)
- `code` (string, required)
- `message` (string, required)
- `data` (map from string to any, required, nullable)
- `requestId` (string, required)
- `verification` (SignedResponseVerification, required)

## Types

### V3WebhooksSendPostResponsesContentApplicationJsonSchemaData

- `id` (string, required)

### V3WebhooksSendPostResponsesContentApplicationJsonSchemaVerification

- `keyId` (string, required)
- `signedPayload` (string, required)
- `signature` (string, required)

### SignedResponseVerification

- `keyId` (string, required)
- `signedPayload` (string, required)
- `signature` (string, required)

## Examples

**Request**

```json
{
  "event": "report.exported",
  "message": "Alex exported the monthly report.",
  "data": {
    "format": "pdf",
    "reportId": "REPORT-1042"
  },
  "idempotencyKey": "export-1042"
}
```

**Response**

```json
{
  "success": true,
  "code": "WEBHOOK_QUEUED",
  "message": "Webhook queued.",
  "data": {
    "id": "98b6a22d-2ea3-4863-91f8-c575cdccf1a2"
  },
  "requestId": "98b6a22d-2ea3-4863-91f8-c575cdccf1a2",
  "verification": {
    "keyId": "324be2dea8bc44461b0233e51fa48902ed6b1cc671e7739af2551e0bfe68f54e",
    "signedPayload": "{\"type\":\"authlyx.response.v3\",\"keyId\":\"324be2dea8bc44461b0233e51fa48902ed6b1cc671e7739af2551e0bfe68f54e\",\"httpStatus\":200,\"serverTime\":\"2026-10-24T12:00:00.000Z\",\"request\":{\"method\":\"POST\",\"path\":\"/v3/webhooks/send\",\"nonce\":\"a6e4c18b379520dfa6e4c18b379520df\",\"bodySha256\":\"867625226ed3e3b1baac5ce334c4b13fb1b5addba01ce62ec122a500d6856818\"},\"response\":{\"success\":true,\"code\":\"WEBHOOK_QUEUED\",\"message\":\"Webhook queued.\",\"data\":{\"id\":\"98b6a22d-2ea3-4863-91f8-c575cdccf1a2\"},\"requestId\":\"98b6a22d-2ea3-4863-91f8-c575cdccf1a2\"}}",
    "signature": "wWwd9kAt33vGy3jQxM9gxsc19H4SdD/e7HBokRg6yiiU4qkeOiqq4bikIYrxgYjOSitT+KZ+SNuKhx7TCEpcCg=="
  }
}
```

**SDK Code**

```python
import requests

url = "http://127.0.0.1:4000/v3/webhooks/send"

payload = {
    "event": "report.exported",
    "message": "Alex exported the monthly report.",
    "data": {
        "format": "pdf",
        "reportId": "REPORT-1042"
    },
    "idempotencyKey": "export-1042"
}
headers = {
    "X-AuthlyX-Nonce": "a6e4c18b379520dfa6e4c18b379520df",
    "X-AuthlyX-Signature": "DQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ==",
    "X-AuthlyX-Timestamp": "1792843200000",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'http://127.0.0.1:4000/v3/webhooks/send';
const options = {
  method: 'POST',
  headers: {
    'X-AuthlyX-Nonce': 'a6e4c18b379520dfa6e4c18b379520df',
    'X-AuthlyX-Signature': 'DQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ==',
    'X-AuthlyX-Timestamp': '1792843200000',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"event":"report.exported","message":"Alex exported the monthly report.","data":{"format":"pdf","reportId":"REPORT-1042"},"idempotencyKey":"export-1042"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "http://127.0.0.1:4000/v3/webhooks/send"

	payload := strings.NewReader("{\n  \"event\": \"report.exported\",\n  \"message\": \"Alex exported the monthly report.\",\n  \"data\": {\n    \"format\": \"pdf\",\n    \"reportId\": \"REPORT-1042\"\n  },\n  \"idempotencyKey\": \"export-1042\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-AuthlyX-Nonce", "a6e4c18b379520dfa6e4c18b379520df")
	req.Header.Add("X-AuthlyX-Signature", "DQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ==")
	req.Header.Add("X-AuthlyX-Timestamp", "1792843200000")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:4000/v3/webhooks/send")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["X-AuthlyX-Nonce"] = 'a6e4c18b379520dfa6e4c18b379520df'
request["X-AuthlyX-Signature"] = 'DQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ=='
request["X-AuthlyX-Timestamp"] = '1792843200000'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"event\": \"report.exported\",\n  \"message\": \"Alex exported the monthly report.\",\n  \"data\": {\n    \"format\": \"pdf\",\n    \"reportId\": \"REPORT-1042\"\n  },\n  \"idempotencyKey\": \"export-1042\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("http://127.0.0.1:4000/v3/webhooks/send")
  .header("X-AuthlyX-Nonce", "a6e4c18b379520dfa6e4c18b379520df")
  .header("X-AuthlyX-Signature", "DQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ==")
  .header("X-AuthlyX-Timestamp", "1792843200000")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"event\": \"report.exported\",\n  \"message\": \"Alex exported the monthly report.\",\n  \"data\": {\n    \"format\": \"pdf\",\n    \"reportId\": \"REPORT-1042\"\n  },\n  \"idempotencyKey\": \"export-1042\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'http://127.0.0.1:4000/v3/webhooks/send', [
  'body' => '{
  "event": "report.exported",
  "message": "Alex exported the monthly report.",
  "data": {
    "format": "pdf",
    "reportId": "REPORT-1042"
  },
  "idempotencyKey": "export-1042"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-AuthlyX-Nonce' => 'a6e4c18b379520dfa6e4c18b379520df',
    'X-AuthlyX-Signature' => 'DQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ==',
    'X-AuthlyX-Timestamp' => '1792843200000',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("http://127.0.0.1:4000/v3/webhooks/send");
var request = new RestRequest(Method.POST);
request.AddHeader("X-AuthlyX-Nonce", "a6e4c18b379520dfa6e4c18b379520df");
request.AddHeader("X-AuthlyX-Signature", "DQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ==");
request.AddHeader("X-AuthlyX-Timestamp", "1792843200000");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"event\": \"report.exported\",\n  \"message\": \"Alex exported the monthly report.\",\n  \"data\": {\n    \"format\": \"pdf\",\n    \"reportId\": \"REPORT-1042\"\n  },\n  \"idempotencyKey\": \"export-1042\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-AuthlyX-Nonce": "a6e4c18b379520dfa6e4c18b379520df",
  "X-AuthlyX-Signature": "DQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ==",
  "X-AuthlyX-Timestamp": "1792843200000",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "event": "report.exported",
  "message": "Alex exported the monthly report.",
  "data": [
    "format": "pdf",
    "reportId": "REPORT-1042"
  ],
  "idempotencyKey": "export-1042"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "http://127.0.0.1:4000/v3/webhooks/send")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```