Skip to main content

HTTP Request

A typical HTTP request may look like:

POST /customer-defined-path/ HTTP/1.1
Host: customer.example.com
X-API-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Accept: application/json
Content-Type: application/json
Content-Length: 797

{
"schema": "https://schema.dasintel.io/farm-0.0.0",
...
}

Local Testing

Given a JSON file named example.json containing sample data, you can simulate webhook requests from DAS services via a simple curl command, such as:

curl --data '@example.json' --header 'x-api-key: your-shared-secret' \
--header 'Content-Type: application/json' --silent --tlsv1.2 --verbose \
'https://customer.example.com/path'
info

Replace your-shared-secret and https://customer.example.com/path to match the customer’s endpoint.