Get logs from a webhook
Get /settings/webhooks/{id}/logs
URL parameters:
Name | Description | Type | Mandatory |
---|---|---|---|
id | Id of the webhook | String | Yes |
Parameters:
Name | Description | Type | Mandatory |
---|---|---|---|
pageSize | Int | No | |
page | Int | No | |
order | Order of the return 0 (ASC) or 1 (DESC) / based on eventDate) | Int | No |
Response:
Array of logs generated:
Parameter | Description | Type |
---|---|---|
recipient | Recipient's email address | String |
subject | Subject of the email | String |
eventDate | Datetime on timestamp format | Int |
descriptionError | If error, you can see the error returned | String |
errorType | Event | String |
typeOfStatus | success / failure | String |
Programming language:
Request exemple:
1 2 3 4 5 6 | { "pageSize" : 10, "page" : 1, "order" : 1 } |
Response exemple:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | [ { "recipient" : "email@example.com" , "subject" : "test" , "eventDate" : "1443017959" , "statusDate" : "1443017959" , "descriptionError" : "" , "eventType" : "delivered" , "typeOfStatus" : "Success" }, { "recipient" : "email@example.com" , "subject" : "test" , "eventDate" : "1443100566" , "statusDate" : "1443100567" , "descriptionError" : "" , "eventType" : "opened" , "typeOfStatus" : "Success" }, { "recipient" : "email@example.com" , "subject" : "test" , "eventDate" : "1443100666" , "statusDate" : "1443100666" , "descriptionError" : "" , "eventType" : "delivered" , "typeOfStatus" : "Success" } ] |