Release Candidate — the API is undergoing final validation before general availability, and minor changes may still occur.
Hellomateo API Documentation
Contacts

Update Contact Channel State

PATCH
/v1/contacts/{id}/channels/{channel_type}

Updates the specified contact Channel State.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Unique identifier for the resource.

Formatuuid
channel_type*"email" | "facebook" | "instagram" | "postal" | "sms" | "whatsapp"

Channel Type that identifies the resource.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

health?"healthy" | "unhealthy" | "unknown"

Health value for this resource.

transactional_opt_in?|

Transactional Opt In value for this resource.

marketing_subscription_status?|

Marketing Subscription Status value for this resource.

Response Body

application/json

curl -X PATCH "https://api.getmateo.com/v1/contacts/497f6eca-6276-4993-bfeb-53cbbbba6f08/channels/email" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598",  "channel_type": "email",  "health": "healthy",  "transactional_opt_in": "consent_granted",  "marketing_subscription_status": "requested",  "marketing_messages_this_month": 32767,  "messages_this_month": 32767,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}