Documentation Index
Fetch the complete documentation index at: https://docs.yo-lead.com/llms.txt
Use this file to discover all available pages before exploring further.
All /v1/* requests require these headers:
X-YoLead-Key: <publicKey>
X-YoLead-Timestamp: <unix_ms_timestamp>
X-YoLead-Signature: <hex_hmac_sha256>
Create the signature with HMAC-SHA256 over:
For requests without a body, raw_body is empty. The timestamp must be within a 5-minute window.
import { createHmac } from "node:crypto";
function signYoLeadRequest(secret: string, timestamp: string, rawBody: string) {
return createHmac("sha256", secret)
.update(`${timestamp}.`)
.update(rawBody)
.digest("hex");
}