Intervene
Record a steering intervention shown to a customer
POST/api/steer/interveneOptional Auth
publicproductoptional-auth
Example Request
cURL
curl -X POST https://margin.so/api/steer/intervene \
-H "Content-Type: application/json" \
-H "X-API-Key: sk_live_your_api_key_here" \
-d '{}'JavaScript
const response = await fetch('https://margin.so/api/steer/intervene', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'sk_live_your_api_key_here'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);Python
import requests
response = requests.post(
'https://margin.so/api/steer/intervene',
headers={
'Content-Type': 'application/json',
'X-API-Key': 'sk_live_your_api_key_here'
},
json={}
)
data = response.json()
print(data)Example Response
{
"success": true,
"data": {
"event_id": "evt_intervention_abc123",
"bin": "471234",
"is_commercial": true,
"estimated_savings_cents": 160,
"recommended_action": "Offer SEPA Instant as an alternative"
}
}Request Body
| Field | Type | Required | Description |
|---|