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
secretis 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.
eventTypesmust contain at least one type fromGET /webhook-event-types.
Request
Responses
- 201
- 400
The created endpoint and its signing secret.
Invalid URL, blocked address, or no valid event types selected.