List external distribution lists
Description:
Returns the list of external distribution lists for the current user.Precondition:
User must be authenticated.Response:
The list of external distribution lists is returned.Search term to filter external distribution lists by email address.
The external distribution lists have been successfully returned.
Email address of the external distribution list entry.
Unauthorized
Possible error codes: ERR_ACCESS_USER, ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/externalDL" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/externalDL"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Add external distribution lists
Description:
Adds one or more email addresses to the current user's external distribution lists.Precondition:
User must be authenticated.Response:
The external distribution lists are created and returned.List of email addresses to add or remove from the external distribution lists.
The external distribution lists have been successfully added.
Email address of the external distribution list entry.
Unauthorized
Possible error codes: ERR_ACCESS_USER, ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED
Error code
Error message
Request blocked by WAF
curl -X POST \
"https://{instance}.kiteworks.com/rest/externalDL" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"emails": [
"string"
]
}'import requests
url = "https://{instance}.kiteworks.com/rest/externalDL"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"emails": [
"string"
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Delete external distribution lists
Description:
Removes one or more email addresses from the current user's external distribution lists.Precondition:
User must be authenticated.Response:
The specified external distribution lists are deleted.List of email addresses to add or remove from the external distribution lists.
The external distribution lists have been successfully deleted.
Email address of the external distribution list entry.
Unauthorized
Possible error codes: ERR_ACCESS_USER, ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/externalDL" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/externalDL"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())