| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| GET | /webhook/messages/{MessageId}/attempts | List webhook message attempts |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CompanyId | query | Guid? | Yes | The company id, if empty will use the company id for the user you are logged in with. |
| MessageId | path | string | Yes | The ID of the webhook message. |
| Iterator | query | string | No | Pagination iterator. |
| Limit | query | int? | No | Maximum number of attempts to return. |
| Status | query | int? | No | Filter by message status. 0 = Success, 1 = Pending, 2 = Fail, 3 = Sending. |
| EventTypes | query | List<string> | No | Filter by event types. |
| EndpointId | query | string | No | Filter by endpoint ID. |
| Before | query | DateTime? | No | Filter attempts before this date. |
| After | query | DateTime? | No | Filter attempts after this date. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Attempts | form | List<WebhookMessageAttempt> | Yes | |
| Done | form | bool | No | |
| Iterator | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | Yes | |
| MessageId | form | string | Yes | |
| EndpointId | form | string | Yes | |
| Url | form | string | Yes | |
| Status | form | string | Yes | |
| ResponseStatusCode | form | int? | No | |
| Timestamp | form | DateTime | No | |
| TriggerType | form | string | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /webhook/messages/{MessageId}/attempts HTTP/1.1
Host: api.bokamera.se
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Attempts":[{"Id":"String","MessageId":"String","EndpointId":"String","Url":"String","Status":"String","ResponseStatusCode":0,"TriggerType":"String"}],"Done":false,"Iterator":"String"}