Past Events
GET/events/v2/history/webhooks/:name
Search handled events by specified params
Generate JWTRequest
Path Parameters
Possible values: non-empty
and <= 64 characters
, Value must match regular expression ^[a-zA-Z0-9_-]+$
Query Parameters
Possible values: >= 1
and <= 100
100
0
Possible values: >= 100
and <= 599
Possible values: [NEW
, IN_PROCESS
, DELIVERED
, CANCELED
, FAILED
]
Responses
- 200
- 400
- 404
- 500
Returns on success
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
UUIDv1 of current event. It's different with source event id
413f13e3-684e-223f-2247-0963feaa3351
source
object
Source event from an application
UUIDv1 of incomming event. Can be generated on client side or automatically server side
166ae306-50ff-11e9-8647-d663bd873d93
Project name
Possible values: non-empty
and <= 64 characters
, Value must match regular expression ^[a-zA-Z0-9_-]+$
pvc
Event name
Possible values: non-empty
and <= 64 characters
, Value must match regular expression ^[a-zA-Z0-9_-]+$
broadcast-start
Payload which described in project config. HTTP method must be POST, PUT, PATCH or DELETE
{"foo":"bar"}
How many attempts it already made
3
Last HTTP code returned from webhook endpoint
200
How long was las response (ms)
25
Current status of this task
Possible values: [NEW
, IN_PROCESS
, DELIVERED
, CANCELED
, FAILED
]
Last error was occurred
Remote endpoint returned 500 HTTP code
Timestamp when the task was started
2019-07-21T17:32:28.000Z
Webhook name
Possible values: non-empty
and <= 64 characters
, Value must match regular expression ^[a-zA-Z0-9_-]+$
pvc-broadcast-events
[
{
"id": "413f13e3-684e-223f-2247-0963feaa3351",
"source": {
"id": "166ae306-50ff-11e9-8647-d663bd873d93",
"project": "pvc",
"event": "broadcast-start",
"payload": {
"foo": "bar"
}
},
"attempts": 3,
"lastResponseCode": 200,
"lastResponseTime": 25,
"status": "NEW",
"lastError": "Remote endpoint returned 500 HTTP code",
"created": "2019-07-21T17:32:28.000Z",
"webhookName": "pvc-broadcast-events"
}
]
Bad request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Specific error scoped to a field
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Not Found Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Specific error scoped to a field
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error message for the end user
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Specific error scoped to a field
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}