Skip to content

Latest commit

 

History

History
66 lines (66 loc) · 2.09 KB

Add a contacts group to a list of distribution.md

File metadata and controls

66 lines (66 loc) · 2.09 KB

Add a contacts group to a list of distribution

Add all contacts of the given group to the given list of distribution.

Emails can be only sent to contacts that belong to a distribution list.

Remember to provide the authentication HTTP headers as described in the Authenticate using a session key and the Authenticate using a user token sections.
All the query string parameters in URL must be UTF-8 URL Encoded.

HTTP Headers

user_key / Session_key

HTTP Method

POST

HTTP Request

https://app.gateway.smsend.it/API/v1.0/REST/list/{list_id}/group/{group_id}?sendoptin={send}

Parameters

Parameter Type Description Required Default
list_id Int The list ID Yes -
group_id String The group ID Yes -
sendoptin Bool Send the Opt-in email to the group’s contacts No false

Returns

Code Description
200 The group has been added to the list
400 Other errors, details are in the body
401 [Unauthorized] User_key, Token or Session_key are invalid or not provided
404 [Not found] The User_key was not found