POST /v1/actions/remove-tag
Retire un tag d'un contact. Le tag lui-même n'est pas supprimé.
Retire un tag d'un contact. La définition du tag elle-même n'est pas supprimée — seul le lien contact-tag l'est. Si le tag n'existe pas, l'appel renvoie tout de même 200.
POST /api/v1/actions/remove-tag
Corps de la requête
| Champ | Type | Requis |
|---|---|---|
contact_id |
UUID | l'un des deux |
phone |
string | l'un des deux |
tag |
string | oui |
curl -X POST https://www.qyvo.io/api/v1/actions/remove-tag \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{"phone": "+14155550123", "tag": "vip-2026"}'
const result = await fetch('https://www.qyvo.io/api/v1/actions/remove-tag', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.QYVO_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ phone: '+14155550123', tag: 'vip-2026' }),
}).then((r) => r.json());
$result = Http::withToken(env('QYVO_TOKEN'))
->post('https://www.qyvo.io/api/v1/actions/remove-tag', [
'phone' => '+14155550123',
'tag' => 'vip-2026',
])
->json();
import os, httpx
result = httpx.post(
'https://www.qyvo.io/api/v1/actions/remove-tag',
headers={'Authorization': f"Bearer {os.environ['QYVO_TOKEN']}"},
json={'phone': '+14155550123', 'tag': 'vip-2026'},
).json()
Réponse — 200 OK
{
"id": "01J1Y...",
"phone": "+14155550123",
"tag_removed": "vip-2026",
"tags": ["fr-FR"]
}
