Authentication
Authenticate requests using your Public API Key in the header.
x-api-key: pk_live_...
Record Visit POST
Record a new visitor session. This is usually handled automatically by our JS SDK.
Endpoint:https://v2.postpayout.com/api/track/visit
{
"visitorId": "vis_123456",
"url": "https://yoursite.com/product",
"referrer": "https://twitter.com",
"userAgent": "Mozilla/5.0..."
}Record Conversion POST
Trigger a conversion event when a purchase is made.
Endpoint:https://v2.postpayout.com/api/track/conversion
{
"visitorId": "vis_123456",
"amount": 9900, // Cents
"currency": "usd",
"orderId": "ord_789"
}List Affiliates GET
Retrieve a paginated list of your affiliates.
Endpoint:https://v2.postpayout.com/api/affiliates
{
"data": [
{
"id": "aff_1",
"name": "Pieter Levels",
"earnings": 50000
}
],
"hasMore": true
}