Destinations API reference
API reference for managing destinations and actions programmatically.
title: "Destinations API Reference" description: "API reference for managing destinations and actions programmatically."
Destinations API
The Destinations API lets you create, manage, test, and delete outbound destinations.
Create a Destination
POST /api/integrations/destinations
Creates a new destination with one or more actions.
Request body
{
"name": "Segment events",
"type": "segment",
"enabled": true,
"credentials": {
"write_key": "seg_..."
},
"actions": [
{
"name": "Send event",
"action_type": "send_event",
"enabled": true,
"property_mapping": {
"base": "default",
"overrides": []
},
"event_filter": {
"include": {
"event_types": ["link.clicked", "link.qr_scanned"]
},
"exclude": {
"bot_traffic": true
},
"conditions": []
}
}
]
}
List Destinations
GET /api/integrations/destinations
Returns configured destinations for the active workspace. Sensitive credentials are redacted in list responses.
Update a Destination
PUT /api/integrations/destinations/:id
Updates destination settings and replaces the destination's action list with the submitted actions.
Delete a Destination
DELETE /api/integrations/destinations/:id
Deletes the destination and its actions.
Send a Test Event
POST /api/integrations/destinations/:id/test-send
Queues a test event for one action on the destination.
Request body
{
"action_id": "action_uuid"
}
If action_id is omitted, Nimriz uses the first enabled action on the destination.
Action types
| Action type | Typical destinations | Behavior |
|---|---|---|
send_event | GA4, Segment, Amplitude, PostHog, Mixpanel, GTM server-side | Sends event-style activity such as clicks, QR scans, card events, or conversions |
send_conversion | Meta, Google Ads, LinkedIn, TikTok | Sends conversion-only activity |
send_webhook | Generic HTTP | Sends Nimriz events to a custom HTTP endpoint |
interstitial_settings | Ad Pixel Interstitial | Stores tracking interstitial behavior for browser-side pixels |
Mapping actions
Each action can use these mapping override types:
renameexcludeincludestatictemplate
Filters
Each action can filter on:
include.event_typesinclude.touch_typesinclude.domain_idsinclude.tag_idsinclude.space_idsinclude.countriesexclude.event_typesexclude.touch_typesexclude.domain_idsexclude.tag_idsexclude.countriesexclude.bot_trafficconditions[]