webhook-sources

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-webhook-sources"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/435ca8ff-99c4-4fbd-8374-4c6d88a689d4/social-card.svg?v=3e7ae33eec8b" alt="webhook-sources" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/webhook-sourcesScope connector:read

Parameters

project_idstringpathrequired

Code 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[]required
Show child parameters
authobjectrequired
Show child parameters
has_secretbooleanrequired
headerstring
modestringrequired
tolerance_secsinteger
created_atstringrequired
enabledbooleanrequired
idstringrequired
last_received_atstring
log_keepintegerrequired
log_payloadsbooleanrequired
mappingobjectrequired
Show child parameters
distinct_idstring
distinct_id_pathstringrequired
eventstring
event_pathstring
event_prefixstring
eventsobject
id_pathstring
include_payloadboolean
items_pathstring
presetstring
atlas | referalli | hermeticor | chatly
propertiesobject
timestamp_pathstring
namestringrequired
token_prefixstringrequired
next_cursorstring
default Problem details (RFC 9457)
Example
{
  "detail": "string",
  "instance": "string",
  "status": 0,
  "title": "string",
  "type": "string"
}
Schema
detailstring
instancestring
statusinteger
titlestring
typestring
POSThttps://lucidace.com/v1/projects/{project_id}/webhook-sourcesScope connector:write

Parameters

project_idstringpathrequired

Request body

application/json
authobject
Show child parameters
headerstring
modestringrequired
secretstringrequired
tolerance_secsinteger
log_keepinteger
log_payloadsboolean
mappingobjectrequired
Show child parameters
distinct_idstring
distinct_id_pathstringrequired
eventstring
event_pathstring
event_prefixstring
eventsobject
id_pathstring
include_payloadboolean
items_pathstring
presetstring
atlas | referalli | hermeticor | chatly
propertiesobject
timestamp_pathstring
namestringrequired
{
  "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
authobjectrequired
Show child parameters
has_secretbooleanrequired
headerstring
modestringrequired
tolerance_secsinteger
created_atstringrequired
enabledbooleanrequired
idstringrequired
last_received_atstring
log_keepintegerrequired
log_payloadsbooleanrequired
mappingobjectrequired
Show child parameters
distinct_idstring
distinct_id_pathstringrequired
eventstring
event_pathstring
event_prefixstring
eventsobject
id_pathstring
include_payloadboolean
items_pathstring
presetstring
atlas | referalli | hermeticor | chatly
propertiesobject
timestamp_pathstring
namestringrequired
pathstringrequired
tokenstringrequired
token_prefixstringrequired
default Problem details (RFC 9457)

Same as default · GET /v1/projects/{project_id}/webhook-sources

POSThttps://lucidace.com/v1/projects/{project_id}/webhook-sources/previewScope connector:write

Parameters

project_idstringpathrequired

Request body

application/json
mappingobjectrequired
Show child parameters
distinct_idstring
distinct_id_pathstringrequired
eventstring
event_pathstring
event_prefixstring
eventsobject
id_pathstring
include_payloadboolean
items_pathstring
presetstring
atlas | referalli | hermeticor | chatly
propertiesobject
timestamp_pathstring
payloadobjectrequired
source_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[]required
default Problem details (RFC 9457)

Same as default · GET /v1/projects/{project_id}/webhook-sources

GEThttps://lucidace.com/v1/projects/{project_id}/webhook-sources/{id}Scope connector:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
authobjectrequired
Show child parameters
has_secretbooleanrequired
headerstring
modestringrequired
tolerance_secsinteger
created_atstringrequired
enabledbooleanrequired
idstringrequired
last_received_atstring
log_keepintegerrequired
log_payloadsbooleanrequired
mappingobjectrequired
Show child parameters
distinct_idstring
distinct_id_pathstringrequired
eventstring
event_pathstring
event_prefixstring
eventsobject
id_pathstring
include_payloadboolean
items_pathstring
presetstring
atlas | referalli | hermeticor | chatly
propertiesobject
timestamp_pathstring
namestringrequired
token_prefixstringrequired
default Problem details (RFC 9457)

Same as default · GET /v1/projects/{project_id}/webhook-sources

DELETEhttps://lucidace.com/v1/projects/{project_id}/webhook-sources/{id}Scope connector:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
default Problem details (RFC 9457)

Same as default · GET /v1/projects/{project_id}/webhook-sources

Updated