post
https://platform.textingline.com/api/v1/contacts/by-phone//groups/
Adds the contact identified by phoneNumber to the group identified by groupId. The request body chooses the enrollment mode:
optInMode: "DIRECT"(default) — caller asserts prior consent. The contact is added as an active member immediately; the group's configured opt-in message may be sent.optInMode: "CONFIRM"— the system sends an SMS confirmation to the contact. They land inpendingGroups[]until they reply YES.optInMode: "SILENT"— caller asserts prior consent AND no contact-facing messaging is sent (no confirmation, no opt-in message, no linked flow). Not available on all accounts — requests from accounts without this capability are rejected with403(33038).
Consent gate (cannot be overridden, all modes): HARD-opted-out contacts are rejected with 409 ContactHardOptedOut (33035). Contacts with PENDING memberships in groups other than the target are rejected with 409 ContactPending (33036).
Idempotency: if the contact is already active in this group, the call is a no-op and returns the current contact state, for all modes. A pending confirmation in this group: DIRECT/CONFIRM no-op; SILENT quietly completes the membership (pending → active, no message).
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…