webhook-sources
GET
https://lucidace.com /v1/projects/{project_id}/webhook-sources Scope connector:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/webhook-sources"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{
"data": [
{
"auth": {
"has_secret": true,
"header": "string",
"mode": "string",
"tolerance_secs": 0
},
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"id": "string",
"last_received_at": "2024-01-01T00:00:00Z",
"log_keep": 0,
"log_payloads": true,
"mapping": {
"distinct_id": "string",
"distinct_id_path": "string",
"event": "string",
"event_path": "string",
"event_prefix": "string",
"events": {},
"id_path": "string",
"include_payload": true,
"items_path": "string",
"preset": "atlas",
"properties": {},
"timestamp_path": "string"
},
"name": "string",
"token_prefix": "string"
}
],
"next_cursor": "string"
}Schema
datawebhooksrc.Source[]requiredShow child parameters
authobjectrequiredShow child parameters
has_secretbooleanrequiredheaderstringmodestringrequiredtolerance_secsintegercreated_atstringrequiredenabledbooleanrequiredidstringrequiredlast_received_atstringlog_keepintegerrequiredlog_payloadsbooleanrequiredmappingobjectrequiredShow child parameters
distinct_idstringdistinct_id_pathstringrequiredeventstringevent_pathstringevent_prefixstringeventsobjectid_pathstringinclude_payloadbooleanitems_pathstringpresetstringpropertiesobjecttimestamp_pathstringnamestringrequiredtoken_prefixstringrequirednext_cursorstringdefault Problem details (RFC 9457)
Example
{
"detail": "string",
"instance": "string",
"status": 0,
"title": "string",
"type": "string"
}Schema
detailstringinstancestringstatusintegertitlestringtypestringPOST
https://lucidace.com /v1/projects/{project_id}/webhook-sources Scope connector:writeParameters
project_idstringpathrequiredRequest body
application/json
authobjectShow child parameters
headerstringmodestringrequiredsecretstringrequiredtolerance_secsintegerlog_keepintegerlog_payloadsbooleanmappingobjectrequiredShow child parameters
distinct_idstringdistinct_id_pathstringrequiredeventstringevent_pathstringevent_prefixstringeventsobjectid_pathstringinclude_payloadbooleanitems_pathstringpresetstringpropertiesobjecttimestamp_pathstringnamestringrequired{
"auth": {
"header": "string",
"mode": "string",
"secret": "string",
"tolerance_secs": 0
},
"log_keep": 0,
"log_payloads": true,
"mapping": {
"distinct_id": "string",
"distinct_id_path": "string",
"event": "string",
"event_path": "string",
"event_prefix": "string",
"events": {},
"id_path": "string",
"include_payload": true,
"items_path": "string",
"preset": "atlas",
"properties": {},
"timestamp_path": "string"
},
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/webhook-sources" \
-H "Content-Type: application/json" \
-d '{"auth":{"header":"string","mode":"string","secret":"string","tolerance_secs":0},"log_keep":0,"log_payloads":true,"mapping":{"distinct_id":"string","distinct_id_path":"string","event":"string","event_path":"string","event_prefix":"string","events":{},"id_path":"string","include_payload":true,"items_path":"string","preset":"atlas","properties":{},"timestamp_path":"string"},"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Created
Example
{
"auth": {
"has_secret": true,
"header": "string",
"mode": "string",
"tolerance_secs": 0
},
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"id": "string",
"last_received_at": "2024-01-01T00:00:00Z",
"log_keep": 0,
"log_payloads": true,
"mapping": {
"distinct_id": "string",
"distinct_id_path": "string",
"event": "string",
"event_path": "string",
"event_prefix": "string",
"events": {},
"id_path": "string",
"include_payload": true,
"items_path": "string",
"preset": "atlas",
"properties": {},
"timestamp_path": "string"
},
"name": "string",
"path": "string",
"token": "string",
"token_prefix": "string"
}Schema
authobjectrequiredShow child parameters
has_secretbooleanrequiredheaderstringmodestringrequiredtolerance_secsintegercreated_atstringrequiredenabledbooleanrequiredidstringrequiredlast_received_atstringlog_keepintegerrequiredlog_payloadsbooleanrequiredmappingobjectrequiredShow child parameters
distinct_idstringdistinct_id_pathstringrequiredeventstringevent_pathstringevent_prefixstringeventsobjectid_pathstringinclude_payloadbooleanitems_pathstringpresetstringpropertiesobjecttimestamp_pathstringnamestringrequiredpathstringrequiredtokenstringrequiredtoken_prefixstringrequiredPOST
https://lucidace.com /v1/projects/{project_id}/webhook-sources/preview Scope connector:writeParameters
project_idstringpathrequiredRequest body
application/json
mappingobjectrequiredShow child parameters
distinct_idstringdistinct_id_pathstringrequiredeventstringevent_pathstringevent_prefixstringeventsobjectid_pathstringinclude_payloadbooleanitems_pathstringpresetstringpropertiesobjecttimestamp_pathstringpayloadobjectrequiredsource_idstring{
"mapping": {
"distinct_id": "string",
"distinct_id_path": "string",
"event": "string",
"event_path": "string",
"event_prefix": "string",
"events": {},
"id_path": "string",
"include_payload": true,
"items_path": "string",
"preset": "atlas",
"properties": {},
"timestamp_path": "string"
},
"payload": {},
"source_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/webhook-sources/preview" \
-H "Content-Type: application/json" \
-d '{"mapping":{"distinct_id":"string","distinct_id_path":"string","event":"string","event_path":"string","event_prefix":"string","events":{},"id_path":"string","include_payload":true,"items_path":"string","preset":"atlas","properties":{},"timestamp_path":"string"},"payload":{},"source_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{
"data": [
{}
]
}Schema
dataobject[]requiredGET
https://lucidace.com /v1/projects/{project_id}/webhook-sources/{id} Scope connector:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/webhook-sources/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{
"auth": {
"has_secret": true,
"header": "string",
"mode": "string",
"tolerance_secs": 0
},
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"id": "string",
"last_received_at": "2024-01-01T00:00:00Z",
"log_keep": 0,
"log_payloads": true,
"mapping": {
"distinct_id": "string",
"distinct_id_path": "string",
"event": "string",
"event_path": "string",
"event_prefix": "string",
"events": {},
"id_path": "string",
"include_payload": true,
"items_path": "string",
"preset": "atlas",
"properties": {},
"timestamp_path": "string"
},
"name": "string",
"token_prefix": "string"
}Schema
authobjectrequiredShow child parameters
has_secretbooleanrequiredheaderstringmodestringrequiredtolerance_secsintegercreated_atstringrequiredenabledbooleanrequiredidstringrequiredlast_received_atstringlog_keepintegerrequiredlog_payloadsbooleanrequiredmappingobjectrequiredShow child parameters
distinct_idstringdistinct_id_pathstringrequiredeventstringevent_pathstringevent_prefixstringeventsobjectid_pathstringinclude_payloadbooleanitems_pathstringpresetstringpropertiesobjecttimestamp_pathstringnamestringrequiredtoken_prefixstringrequiredDELETE
https://lucidace.com /v1/projects/{project_id}/webhook-sources/{id} Scope connector:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/webhook-sources/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204 No Content
Updated