Receive Inbound Event
POST
/api/audience-destinations/inbound/{destination_id}
const url = 'http://localhost:8000/api/audience-destinations/inbound/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"external_event_id":"example","external_record_id":"example","fields":{},"lead_id":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/audience-destinations/inbound/example \ --header 'Content-Type: application/json' \ --data '{ "external_event_id": "example", "external_record_id": "example", "fields": {}, "lead_id": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”destination_id
required
Destination Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
InboundEvent
object
Examplegenerated
{ "external_event_id": "example", "external_record_id": "example", "fields": {}, "lead_id": 1}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}