Hellomateo API Documentation
Webhooks

Update Webhook

PATCH
/v1/webhooks/{id}

Updates the specified webhook.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Unique identifier for the resource.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name?string

Human-readable name of the resource.

Length1 <= length
method?"POST" | "PUT" | "PATCH"

Method value for this resource.

target_url?string

Target URL value for this resource.

Formaturi
api_version?string

Moves the webhook to another API version. A legacy webhook sending events moves to the latest version unless api_version is sent.

Match^(legacy|\d{4}-\d{2}-\d{2})$
events?array<>

Events value for this resource.

Items1 <= items
include?

Related fields to include in the response.

filters?

Filters value for this resource.

event?"contact_details.updated" | "contact.created" | "contact.deleted" | "contact.updated" | "conversation.assign" | "conversation.close" | "conversation.inbound" | "conversation.outbound" | "conversation.reopen" | "conversation.sending_error" | "conversation.submission_error" | "conversation.tag" | "conversation.unassign" | "conversation.untag" | "form_submission.aborted" | "form_submission.completed"

Event value for this resource.

fields?array<>|

Fields value for this resource.

headers?|array<>Deprecated

Deprecated: set credentials instead. Non-empty headers replace the credentials with header authentication; an empty object changes nothing.

Response Body

application/json

curl -X PATCH "https://api.getmateo.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "target_url": "string",  "event": "contact_details.updated",  "method": "GET",  "active": true,  "authentication_type": "none",  "fields": [    "string"  ],  "api_version": "string",  "events": [    "string"  ],  "include": {    "property1": [      "string"    ],    "property2": [      "string"    ]  },  "filters": {    "property1": {      "fields": [        "string"      ]    },    "property2": {      "fields": [        "string"      ]    }  },  "disabled_at": "2019-08-24T14:15:22Z",  "disabled_reason": "gone",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}