Get Campaign
decision_api_get_campaignRetrieve a specific campaign by ID for a visitor using their context to return the campaign variation and modifications for targeted delivery.
Instructions
Get a specific campaign by its ID for a visitor with their context. Returns campaign variation and modifications.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"visitor_id": "<visitor_id>",
"campaign_id": "<campaign_id>",
"context": "<context>",
"trigger_hit": "<trigger_hit>"
},
"name": "decision_api_get_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | The visitor context (key-value pairs for targeting) | |
| visitor_id | Yes | The unique identifier for the visitor | |
| campaign_id | Yes | The unique identifier for the campaign | |
| trigger_hit | Yes | Whether to send a hit to analytics (default: false) |