List contacts
Description:
Returns a paginated list of the current user's contacts, with optional name filtering and sort order.Precondition:
User must be authenticated.Response:
Returns the list of contacts matching the specified filters.Filter contacts by exact name match.
Filter contacts whose name contains the specified string.
Sort order for the results. Default is name:asc.
Allowed values: id:asc, id:desc, name:asc, name:desc, lastContactDate:asc, lastContactDate:desc.
Maximum number of contacts to return.
Number of contacts to skip before returning results, for pagination.
The contacts list has been successfully returned.
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Unique identifier of the contact.
Display name of the contact.
Date and time when the contact was created.
Date and time when the contact was last modified.
Date and time of the most recent interaction with this contact.
Email address of the contact.
Indicates whether the contact is a distribution list.
URL or identifier of the contact's profile icon.
Bad Request
Possible error codes: ERR_REQUEST_INVALID_FILTER
Error code
Error message
Unauthorized
Possible error codes: ERR_ACCESS_USER, ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/contacts" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/contacts"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Create a contact
Description:
Creates a new contact entry for the current user, associating a display name with one or more email addresses.Precondition:
User must be authenticated.Response:
Returns the newly created contact.Display name for the contact.
List of email addresses associated with this contact. At least one email address is required.
The contact has been successfully created.
Unique identifier of the contact.
Display name of the contact.
Date and time when the contact was created.
Date and time when the contact was last modified.
Date and time of the most recent interaction with this contact.
Email address of the contact.
Indicates whether the contact is a distribution list.
URL or identifier of the contact's profile icon.
Unauthorized
Possible error codes: ERR_ACCESS_USER, ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Conflict
Possible error codes: ERR_ENTITY_EXISTS
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INVALID_PARAMETER
Error code
Error message
Request blocked by WAF
curl -X POST \
"https://{instance}.kiteworks.com/rest/contacts" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"items": [
{
"email": "string"
}
]
}'import requests
url = "https://{instance}.kiteworks.com/rest/contacts"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"name": "string",
"items": [
{
"email": "string"
}
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Get a contact
Description:
Returns the details of the specified contact, including its display name and associated email addresses.Precondition:
User must be authenticated and must own the contact.Response:
Returns the contact details.The unique identifier of the entity.
The contact has been successfully returned.
Unique identifier of the contact.
Display name of the contact.
Date and time when the contact was created.
Date and time when the contact was last modified.
Date and time of the most recent interaction with this contact.
Email address of the contact.
Indicates whether the contact is a distribution list.
URL or identifier of the contact's profile icon.
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/contacts/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # The unique identifier of the entity.
url = f"https://{{instance}}.kiteworks.com/rest/contacts/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Update a contact
Description:
Updates the display name and associated email addresses of the specified contact.Precondition:
User must be authenticated and must own the contact.Response:
The contact has been updated.The unique identifier of the entity.
Display name for the contact.
List of email addresses associated with this contact. At least one email address is required.
The contact has been successfully updated.
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Conflict
Possible error codes: ERR_ENTITY_EXISTS
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INVALID_PARAMETER
Error code
Error message
Request blocked by WAF
curl -X PUT \
"https://{instance}.kiteworks.com/rest/contacts/:id" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"items": [
{
"email": "string"
}
]
}'import requests
id = "VALUE" # The unique identifier of the entity.
url = f"https://{{instance}}.kiteworks.com/rest/contacts/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"name": "string",
"items": [
{
"email": "string"
}
]
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Delete a contact
Description:
Permanently removes the specified contact from the current user's contact list.Precondition:
User must be authenticated and must own the contact.Response:
The contact has been deleted.The unique identifier of the entity.
The contact has been successfully deleted.
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/contacts/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # The unique identifier of the entity.
url = f"https://{{instance}}.kiteworks.com/rest/contacts/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())