Skip to main content

Create a webhook endpoint

POST 

/projects/:projectId/webhooks

Register an HTTPS URL to receive the events you subscribe it to. TextSetu generates a signing secret and returns it once.

Constraints:

  • The secret is returned ONCE and cannot be retrieved later — store it before discarding the response.
  • The URL must be publicly reachable — private, loopback and link-local addresses are rejected, and redirects are never followed.
  • eventTypes must contain at least one type from GET /webhook-event-types.

Request

Responses

The created endpoint and its signing secret.