All URIs are relative to http://localhost/api
Method | Description | HTTP request |
---|---|---|
create() | Create webhook | POST /webhooks |
get() | Get user's webhook by id | GET /webhooks/{id} |
update() | Update event webhook | PATCH /webhooks/{id} |
delete() | Delete webhook | DELETE /webhooks/{id} |
list() | Get list webhooks | GET /webhooks |
check() | Check webhook by id | POST /webhooks/check/{id} |
Webhooks can push notifications to your server, rather than polling streaming service for changes
Name | Type | Required | Description |
---|---|---|---|
request | CreateWebhookRequest | yes | Create Webhook input |
Promise<CreateWebhookResponse>.
Retrieve webhook details by id.
Name | Type | Required | Description |
---|---|---|---|
id | string | yes | webhook's id |
Promise<GetUserWebhookResponse>.
This endpoint will update the indicated webhook.
Name | Type | Required | Description |
---|---|---|---|
id | string | yes | webhook's id |
request | UpdateWebhookRequest | yes | Update Webhook input, events example: video.encoding.quality.completed |
Promise<ResponseSuccess>.
This endpoint will delete the indicated webhook.
Name | Type | Required | Description |
---|---|---|---|
id | string | yes | Webhook ID |
Promise<ResponseSuccess>.
This method returns a list of your webhooks (with all their details).
You can filter what the webhook list that the API returns using the parameters described below.
Name | Type | Required | Description |
---|---|---|---|
search | string | no | only support search by name |
sortBy | 'created_at' | 'name' | no | sort by |
orderBy | 'asc' | 'desc' | no | allowed: asc, desc. Default: asc |
offset | number | no | offset, allowed values greater than or equal to 0. Default(0) |
limit | number | no | results per page. Allowed values 1-100, default is 25 |
encodingFinished | boolean | no | search by event encoding finished |
encodingStarted | boolean | no | search by event encoding started |
fileReceived | boolean | no | search by event file received |
Promise<GetWebhooksListResponse>.
This endpoint will check the indicated webhook.
Name | Type | Required | Description |
---|---|---|---|
id | string | yes | webhook's id |
Promise<ResponseSuccess>.