Offer Campaign APIs
Fetch Form Submission API
The Update Form API is used to modify existing lead form data within a campaign. This API is especially useful when updating incorrect details, adding new information, or making adjustments to previously submitted leads to ensure accurate campaign records.
GET
cURL
Overview
The Fetch Form Submission API retrieves the stored response data for a previously submitted lead. Use it to look up the distribution outcome, buyer response, deduplication result, or redirect URL associated with a specifictransaction_id. This is useful for debugging integrations, auditing lead outcomes, and building confirmation pages that display post-submission results.
Endpoint
:sourceID with the source unique ID. The transaction_id is passed as a query parameter to identify the specific lead.
Authentication
Include your API token in theAuthorization header:
Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sourceID | string | Yes | The unique ID of the campaign source |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction_id | string | Yes | The transaction ID of the lead submission to retrieve |
Example Request
Example Responses
Success — Lead Response Found
Success — Duplicate Lead
Error — Lead Not Found
Error — Unauthorized
Status Codes
| HTTP Code | Description |
|---|---|
| 200 | Lead response retrieved successfully |
| 400 | Invalid or missing transaction_id, or lead not found |
| 401 | Invalid or missing API token |
| 500 | Internal server error |
Tips
- Immediate availability: Response data is available as soon as the lead submission completes. In most cases, you can fetch it within a few milliseconds of the original POST.
- Debugging submissions: If a landing page integration is not behaving as expected, use this endpoint to confirm what the platform recorded and returned during distribution.
- Redirect URL delivery: If your form does not capture the
redirect_urlfrom the submission response, you can re-fetch it here and redirect the consumer server-side. - Deduplication flag: The
isDeDupefield lets you determine whether the consumer had previously submitted through this campaign.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Your campaign ID
Query Parameters
Your lead transaction ID
cURL