Webhooks
Update User Webhook URL

Knit API Documentation

Update User Webhook URL

Endpoint

PUT

{{baseUrl}}/api/user
Headers
  • X-API-KEY: Your API key, which authorizes the request.
  • Accept: Set to application/json to receive the response in JSON format.
Request Body
json
{
    "webhookUrl": "https://webhook.site/34b47e03-38ac-4040-a6fc-3dcb44a922e9"
}
Sample Request
Sample Request
curl --location -g --request PUT '{{baseUrl}}/api/user' \
--header 'X-API-KEY: {{apiKey}}' \
--header 'Accept: application/json' \
--data '{
    "webhookUrl": "https://webhook.site/34b47e03-38ac-4040-a6fc-3dcb44a922e9"
}'
Sample Response
Sample Response
{
  "success": true,
  "status": 200,
  "data": {
    "id": "a2667393-2c6c-43c9-a288-6167e2b2b591",
    "name": "Firstname Lastname",
    "email": "user@gmail.com",
    "email_verified_at": null,
    "webhookUrl": "https://webhook.site/id",
    "createdAt": "2024-02-17T16:25:47.000000Z",
    "updatedAt": "2024-02-17T18:02:06.000000Z"
  },
  "message": "User details updated successfully"
}