Fetches all company webhooks endpoints.
Base url https://api.omegastream.net/company
this will be called from now as [base_url]
GET: [base_url]/client/webhooks/all
Key | Value | Details |
---|---|---|
Authorization | Bearer {{api_key}} | api key is very important here to authorize your request. |
Content-Type | application/json |
[
{
"id": "631c652c15fa642045c1a003",
"created_at": "2022-09-10T10:21:32.192Z",
"updated_at": "2022-09-10T10:21:32.192Z",
"coid": "omega-cop-KoNef9DB5i",
"url": "http://localhost:6060/webhook",
"description": null,
"events": [
"video.uploaded",
"video.ready_for_processing",
"video.in_progress",
"video.completed_processing",
"video.process_failed",
"video.process_succeeded",
"video.ready_to_watch"
],
"active": true
}
]
To learn more about the available events and how to use theme, checkout Create Endpoint.
PUT: [base_url]/company/webhooks/:id
id
value.Delete a specific webhook, thus not sending any future event to it.
DELETE: [base_url]/company/webhooks/:id
id
value.Key | Value | Details |
---|---|---|
Authorization | Bearer {{api_key}} | api key is very important here to authorize your request. |
Content-Type | application/json |
Response code: OK 200
{
"message": "webhook endpoint deleted"
}
You simply activate or deactivate your endpoint.
POST: [base_url]/company/webhooks/:id/status
id
value.Key | Value | Details |
---|---|---|
Authorization | Bearer {{api_key}} | api key is very important here to authorize your request. |
Content-Type | application/json |
{
"active": true
}
active: true
the endpoint will be active and can receive its events.active: false
the endpoint will be completely has no effect.