Data Activation
Create webhook import
Create a new webhook import definition. Webhook import ID is optional, if absent, it'll be randomly generated. Requires manage permission.
post/api/cdp/settings/v1/app/{app_id}/webhook-import
Request
- Base URLhttps://example.piwik.pro
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"identifiers": {
"email": "user_id"
},
"attributes": {
"url": "analytics.event_url",
"user.age": "age",
"transaction_id": "session_custom_dimension_5"
},
"status": "inactive",
"test_request_body": "{\"user_id\":\"test\",\"total_revenue\":1}"
}Response
Created webhook import object.
Example response
{
"author": {
"email": "author@piwik.pro"
},
"identifiers": {
"email": "user_id"
},
"attributes": {
"url": "analytics.event_url",
"user.age": "age",
"transaction_id": "session_custom_dimension_5"
},
"status": "inactive",
"test_request_body": "{\"user_id\":\"test\",\"total_revenue\":1}",
"created_at": "2022-10-17T09:49:16.123456Z",
"updated_at": "2022-10-17T09:49:16.123456Z"
}Changes
No recorded changes to this operation across all 2 revisions of this API.