Get an Apple Messages for Business suppression
/v1/amb/suppressions/{suppression_id}const result = await bird.amb.suppressions.get(
"asp_01krdgeqcxet5s7t44vh8rt9mg",
);
console.log(result);result = client.amb.suppressions.get('asp_01krdgeqcxet5s7t44vh8rt9mg')
print(result)result, err := client.Amb.Suppressions.Get(ctx, "asp_01krdgeqcxet5s7t44vh8rt9mg")
if err != nil {
log.Fatal(err)
}
fmt.Println(result)$bird->amb->suppressions->get('asp_01krdgeqcxet5s7t44vh8rt9mg');bird amb suppressions get <suppression-id>curl -X GET "https://us1.platform.bird.com/v1/amb/suppressions/{suppression_id}" \
-H "Authorization: Bearer $TOKEN"{
"id": "asp_01krdgeqcxet5s7t44vh8rt9mg",
"business_account_id": "abz_01krdgeqcxet5s7t44vh8rt9mg",
"address": "+15551234567",
"address_type": "opaque_user_id",
"reason": "manual",
"origin": "user",
"applies_to": "all",
"source_message_id": "amb_01krdgeqcxet5s7t44vh8rt9mg",
"source_event_id": "aev_01krdgeqcxet5s7t44vh8rt9mg",
"source_end_message_id": "amb_01krdgeqcxet5s7t44vh8rt9mg",
"ended_reason": "user"
}
Returns the suppression episode for the given ID, including one that has already ended. An ended episode keeps its dates and reports when and how it ended.
Paramètres
suppression_idstringContenu de la réponse
idbusiness_account_idaddressCanonical E.164 phone number, or the exact opaque identifier Apple supplied.
address_typeWhat kind of value address holds.
phone_numbermeansaddressis the customer's phone number. Apple's CloseSession event carries a phone number rather than an opaque identifier, so a suppression opened by a close on a conversation identified by phone number takes this kind.opaque_user_idmeansaddressis the opaque identifier Apple assigns to the customer's conversation with the business, stable across a close and a later re-initiation.
Possible values: phone_number, opaque_user_id
reasonWhy the handle is suppressed. manual means it was added directly through this API or the dashboard. opted_out covers every case where Apple or the customer signaled they should not be contacted: a close, a permanent delivery failure, a declined invitation, or a stop keyword. This list grows over time, so treat an unknown value as informational rather than rejecting the record.
Possible values (may grow over time): manual, opted_out
originWho created the episode. user and api_key identify manual blocks. close_session and gone are protected automatic conversation facts. Phone invitation opt-outs are recorded as preferences.
Possible values (may grow over time): user, api_key, close_session, gone
applies_toPaths blocked by this episode. Treat unknown values as blocking.
Possible values (may grow over time): all, invitations
source_message_idMessage whose permanent delivery failure opened the episode, when applicable.
source_event_idConversation event that opened the episode, when applicable.
source_end_message_idInbound message that ended an eligible automatic episode, when applicable.
effective_atWhen the blocking state took effect.
created_atWhen Bird recorded this episode.
ended_atWhen Bird recorded the end, or null while active.
ended_reasonWhat ended the episode, or null while active. Customers can end only manual episodes.
Possible values (may grow over time): user, api_key, reinitiated
ended_effective_atWhen the end took effect, or null while active.
Ressources associées
Poursuivez avec la documentation, les guides et les exemples sur ce sujet.