create web hook
Developing
POST
/projects/{id}/webhooks
Create a Webhook for a project
POST
/projects/<project_id>/webhooks
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vidinfra.com/v1/projects/f32a0116-fe11-454c-8e6a-5ff4101882e5/webhooks' \
--header 'Content-Type: application/json' \
--data-raw '{
"project_id": "f32a0116-fe11-454c-8e6a-5ff4101882e5",
"name": "Webhook1",
"target_url": "http://example.com/webhook",
"description": "This is a sample webhook",
"event_type": "event1",
"events": ["video.created", "video.deleted"],
"auth_type": "header",
"auth_type_api_key_header_name": "Authorization",
"auth_type_api_key_header_value": "Bearer",
"secrets": "secret1"
}'
Response Response Example
200 - OK - Success
{"message":"Webhook Created","result":{"id":"97a7e1e4-dc3a-4d6d-8fd5-3034fbc26067","project_id":"19a2c7db-f22f-4871-9ab7-e9df1021d100","name":"Webhook1","target_url":"http://example.com/webhook","description":"This is a sample webhook","event_type":"event1","events":{"event1":"value1","event2":"value2"},"auth_type":"header","auth_type_api_key_header_name":"Authorization","auth_type_api_key_header_value":"Bearer","secrets":"secret1","created_at":"2024-02-19T12:39:20.319811191Z","updated_at":"2024-02-19T12:39:20.319811241Z","deleted_at":null},"success":true}
Request
Path Params
id
stringÂ
required
Example:
f32a0116-fe11-454c-8e6a-5ff4101882e5
Body Params application/json
Responses
Modified at 2025-06-19 04:59:01