#Block contact

Block bulk & automated messages to a contact. Incoming messages are not blocked.

#Method

POST

#Path

/contacts/block/[phone_number]

#Path parameter

NameValueRequired?
phone_numberPhone number starting with the country code with or without leading plus. e.g. +16175551212 or 16175551212Yes

#Response

#HTTP status codes

CodeRemarks
200Request was successful.
400Validation error or request body was incorrectly formatted.
401Authentication failed. Check apikey header.
404Requested API endpoint not found.
429The rate limit has been reached.
500-511There was a problem processing the request on our server. Try again later.

#Response object

NameValueRemarks
statussuccess or error-
errorsArray of object { msg: [error detail] }Only present when status is error.

#Code sample

curl --location --request POST 'https://api.sociocs.com/contacts/block/16175551212' \ --header 'apikey: your_api_key'