Create
Path Parameters
projectId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
name*string
description?string|null
url*string
events*array<>
Items
1 <= itemsResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/projects/string/webhooks" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "url": "string", "events": [ "person.created" ] }'{ "id": "string", "projectId": "string", "name": "string", "description": "string", "url": "string", "events": [ "person.created" ], "status": "active", "consecutiveFailures": -9007199254740991, "lastSuccessAt": "string", "createdAt": "string", "secret": "string"}{ "error": { "type": "invalid_request", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "unauthenticated", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "permission_denied", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "not_found", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "internal", "code": "string", "message": "string", "param": "string" }}