application/json
Body
The specific forecast to create
-
The assets to forecast
-
The start date of the campaign
-
The end date of the campaign
-
The audience segments to include in the forecast
-
The ID of the business making the forecast request
POST
/forecast
cURL (application/json)
curl \
--request POST 'https://client.spotlumos.com/forecast' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"assets":["string"],"campaignStartDate":"string","campaignEndDate":"string","segments":["string"],"businessId":"string"}'
curl \
--request POST 'https://client.spotlumos.com/forecast' \
--header "X-API-KEY: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--form "assets[]=string" \
--form "campaignStartDate=string" \
--form "campaignEndDate=string" \
--form "segments[]=string" \
--form "businessId=string"
Request examples
{
"assets": [
"string"
],
"campaignStartDate": "string",
"campaignEndDate": "string",
"segments": [
"string"
],
"businessId": "string"
}
Response examples (200)
{
"data": [
{
"asset_id": "string",
"campaign_start_date": {
"value": "string"
},
"campaign_end_date": {
"value": "string"
},
"reach": 42,
"impressions": 42,
"frequency": 42.0,
"demographics": [
{
"lumos_segment_id": "string",
"segment_name": "string",
"penetration": 42.0,
"index": 42.0
}
],
"segments": [
{
"lumos_segment_id": "string",
"segment_name": "string",
"index": 42.0
}
]
}
]
}
Response examples (400)
{
"message": "string"
}