DeepFellow DOCS

Add webhook endpoint to project

POST
/v1/organization/projects/{project_id}/webhooks

Create a new webhook endpoint in the project.

Authorization

headerAuthorizationBearer <token>

Path Parameters

project_id*string

The ID of the project.

Match^[0-9a-fA-F]{24}$

Header Parameters

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.

Request Body

application/json
  1. body

Model for creating a new project webhook endpoint.

url*string

HTTPS endpoint that receives webhook event callbacks.

events?array<>|

The webhook event types this endpoint receives.

Default"all"
secret?|

Secret used to sign webhook event callbacks. Auto-generated if left unset.

Response Body

Successful Response

application/json
  1. 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*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$
object*string
url*string
events*array<>|

The webhook event types this endpoint receives.

created_at*integer
secret*string
Example Request
curl -X POST 'https://deepfellow-server-host/v1/organization/projects/5eb7cf5a86d9755df3a6c593/webhooks' \  -H 'Content-Type: application/json' \  -d '{  "url": "string"}'
Example Response
{  "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.