Block a subscriber
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/subscribers/{id}/block \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Suspicious activity detected"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Suspicious activity detected'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/subscribers/{id}/block', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/subscribers/{id}/block"
payload = { "reason": "Suspicious activity detected" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}Subscribers
Block a subscriber
Block a subscriber account with a reason
POST
/
subscribers
/
{id}
/
block
Block a subscriber
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/subscribers/{id}/block \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Suspicious activity detected"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Suspicious activity detected'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/subscribers/{id}/block', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/subscribers/{id}/block"
payload = { "reason": "Suspicious activity detected" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}Authorizations
ApiKeyAuthBearerAuth
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Path Parameters
Subscriber ID
Body
application/json
Block reason
Example:
"Suspicious activity detected"
Response
Block successful
The response is of type object.
⌘I