v1

latestOpenAPI 3.1.02026-07-2419603.1 MB
Data Activation

Fetch webhook import requests

Returns webhook import requests from the last 30 days, newest to oldest. Requires view permission.

get/api/cdp/v3/logs/apps/{app_id}/webhook-imports/{webhook_import_id}

Path parameters

app_idstring uuid required

ID of the app.

Example:3929d56c-cd62-4001-a4fc-013f5f954691
webhook_import_idstring uuid required
Example:e898ae47-61cd-4c9d-9d67-e5a930eb9f39

An webhook import UUID for which last log entries are requested

Query parameters

qstring

Filter entries by a fragment of their identifier (case insensitive).

limitinteger

How many objects should be returned

Example:20
offsetinteger

How many objects to skip (for use in pagination)

Example:10
profile_typestring[]

Return only webhook import requests that affected profiles of selected types.

statusstring[]

Return only webhook import requests that ended with selected statuses.

Response

Paginated list of webhook import requests

offsetinteger required

Current page offset.

limitinteger required

Current page size.

totalinteger required

Total number of resources for the given query.

Example response

{
  "limit": 10,
  "total": 1,
  "items": [
    {
      "time": "2023-05-26T16:58:12.195361Z",
      "profile_identifier_type": "cookie_id",
      "profile_identifier_value": "aa2720bcb1ddce1b",
      "success": true,
      "error": {
        "message": "Webhook not yet defined"
      },
      "request": {
        "method": "POST",
        "url": "https://organization.piwik.pro/api/cdp/profiles/v1/public/app/3929d56c-cd62-4001-a4fc-013f5f954691/webhook/09e107ec60874f0b",
        "headers": [
          [
            "Content-Type",
            "application/json"
          ],
          [
            "Content-Length",
            "472"
          ]
        ],
        "body": "{\"user\":\"tom@example.com\",\"user_score\":102.55}"
      },
      "response": {
        "time_ms": 146,
        "status": 200,
        "headers": [
          [
            "Content-Type",
            "application/json"
          ],
          [
            "Content-Length",
            "472"
          ]
        ],
        "body": "{\"user\":\"tom@example.com\",\"user_score\":102.55}"
      }
    }
  ]
}