Add webhook endpoint to project
Create a new webhook endpoint in the project.
AuthorizationBearer <token>project_id*stringThe ID of the project.
^[0-9a-fA-F]{24}$OpenAI-Organization?|Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.
application/json- body
Model for creating a new project webhook endpoint.
url*stringHTTPS endpoint that receives webhook event callbacks.
events?array<>|The webhook event types this endpoint receives.
"all"secret?|Secret used to sign webhook event callbacks. Auto-generated if left unset.
Successful Response
application/json- response
Response for a just-created (or secret-rotated) webhook endpoint.
Unlike WebhookEndpointObj, this includes the plaintext secret: creation (or an update that
rotates the secret) is the only time a client can learn it, mirroring ApiKeyCreateRespose.
id*stringA 24-character hexadecimal MongoDB ObjectId string.
^[0-9a-fA-F]{24}$object*stringurl*stringevents*array<>|The webhook event types this endpoint receives.
created_at*integersecret*stringcurl -X POST 'https://deepfellow-server-host/v1/organization/projects/5eb7cf5a86d9755df3a6c593/webhooks' \ -H 'Content-Type: application/json' \ -d '{ "url": "string"}'{ "id": "5eb7cf5a86d9755df3a6c593", "object": "organization.project.webhook_endpoint", "url": "string", "events": [ "vector_store.file_batch.completed" ], "created_at": 0, "secret": "string"}We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.