Memos

Create User Webhook

CreateUserWebhook creates a webhook for a user. Only the user may call it. The service generates a signing secret when none is given.

POST
/api/users/{user}/webhooks

Path Parameters

user*string

The user id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

UserWebhook is a webhook owned by a user.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/users/string/webhooks" \  -H "Content-Type: application/json" \  -d '{}'
{  "name": "string",  "displayName": "string",  "url": "string",  "signingSecret": "string",  "signingSecretSet": true,  "createTime": "2019-08-24T14:15:22Z",  "updateTime": "2019-08-24T14:15:22Z"}