Skip to main content
POST
/
growth-channel-postback
/
  curl --request POST \
    --url 'http://gc-api-prod.us-east-1.elasticbeanstalk.com/api/public/growth-channel-postback/' \
    --header 'Content-Type: application/json' \
    --header 'X-Api-Key: YOUR_PUBLIC_API_KEY' \
    --data '{
      "ref_id": "abc123xyz",
      "event_name": "user_converted",
      "revenue": 123,
      "conversion_data": {
        "order_id": "order_98765",
        "lead_source": "callrail"
      }
    }'
This endpoint is protected and requires a public API key for access.
  curl --request POST \
    --url 'http://gc-api-prod.us-east-1.elasticbeanstalk.com/api/public/growth-channel-postback/' \
    --header 'Content-Type: application/json' \
    --header 'X-Api-Key: YOUR_PUBLIC_API_KEY' \
    --data '{
      "ref_id": "abc123xyz",
      "event_name": "user_converted",
      "revenue": 123,
      "conversion_data": {
        "order_id": "order_98765",
        "lead_source": "callrail"
      }
    }'

Method

POST

Endpoint

/api/public/growth-channel-postback/

Overview

Use this endpoint to send server-side conversion events to Growth Channel. The client should capture a unique tracking ID from the campaign landing URL and send it back when a conversion happens.
Send ref_id for every conversion. Add event_name, revenue, tracker_id, and conversion_data when you need more specific attribution or reporting metadata.

Headers

X-Api-Key
string
required
Your public API key for authorization.
Content-Type
string
required
Must be application/json.

Body

ref_id
string
required
Unique tracking ID captured from the landing page URL.
tracker_id
string
Conversion tracker ID when the conversion should be attributed to a specific tracker.
event_name
string
Name of the conversion event, for example user_converted or phone_call.
revenue
number
Revenue amount for the conversion.
conversion_data
object
Additional metadata for the conversion.

Setup Guide

1

Add a tracking ID to the landing URL

Add a tracking ID macro to the campaign landing URL.
https://example.com/track?ref_id={TRACKING_ID}
2

Capture the tracking ID

Capture and store ref_id when the visitor lands on the site.
3

Send the conversion

When the user converts, send ref_id to this endpoint with optional event_name, revenue, and conversion_data.
4

Use a tracker when needed

Use tracker_id only when attribution should go to a specific conversion tracker.

Example

{
  "ref_id": "abc123xyz",
  "event_name": "user_converted",
  "revenue": 123,
  "conversion_data": {
    "order_id": "order_98765",
    "lead_source": "callrail"
  }
}

Responses

{
  "status": "ok"
}
status
string
Request status value.