API documentation GET /offers/{id}
Export the complete JSON representation of an existing offer.
GET https://demo.trafficmanager.com/api/v1/offers/{id}
The response uses the same offer schema accepted by POST /api/v1/offers/create. Use it to duplicate an offer by reading offer from this response, changing the needed fields, and sending it as the offer value in the create request.
Authentication:
The request must be authenticated with the following HTTP headers:x-api-key: Your API key, found on the Security pagex-user-id: Your User ID, found on the Security page
If the HTTP headers are not passed, but you are logged in to the TrafficManager panel, the current user is used instead (so you can easily preview or download the data using your browser)
Permissions:
- The authenticated user must be an admin or advertiser.
- The authenticated user must be allowed to edit the requested offer.
Path Parameters:
id: offer ID
Success Response:
{
"status": 200,
"offer": {
"id": 100,
"status": 1,
"visibility": 1,
"payout": "1.00",
"payoutMode": 1,
"mainCategory": {
"name": "Test"
},
"name": "Offer test",
"allowMultipleConversions": true,
"description": "Test description",
"landingPages": [
{
"id": 100,
"name": "Default",
"url": "https://example.com/?clickid={clickid}",
"description": "Default landing page"
}
],
"settings": {
"leadApi": "{\"url\":\"https:\\/\\/offers.trafficman.io\\/forms\\/api\\/\"}"
}
}
}
The offer object may include additional fields depending on the offer setup, such as forms, custom payouts, banners, files, targeting, and budget settings.
Duplicate Example:
curl --location 'https://demo.trafficmanager.com/api/v1/offers/100' \
--header 'X-User-ID: __USER_UUID__' \
--header 'X-Api-Key: __API_KEY__'
curl --location 'https://demo.trafficmanager.com/api/v1/offers/create' \
--header 'X-User-ID: __USER_UUID__' \
--header 'X-Api-Key: __API_KEY__' \
--header 'Content-Type: application/json' \
--data '{
"offer": {
"...": "copy the offer object returned by GET /api/v1/offers/{id}, then change the fields you need"
}
}'
Error Response:
{
"status": [error code],
"message": [error message]
}
English
العربية
Dansk
Deutsch
Español
Suomi
Italiano
한국어
Português
Română
Русский
Svenska
中文