Send a Request File to Folder request
Description:
Initiates a Request File to Folder.Precondition:
The user profile must have the necessary access rights to request files to the folder.Response:
Successfully creates a request file and returns the request file details.The unique identifier (UUID) of the entity.
List of email addresses to send the files to.
Subject of the email. Must be between 1 and 998 characters.
The body of the email.
The expiration date of the request file link.
The maximum number of files to attach.
Indicates if authentication is required to access the files.
List of object GUIDs representing the files to be sent.
The action to allow recipients to perform on viewable files.1 – View only.2 – View and download.
Whether to include the request file token in the response.0 – Do not include the token.1 – Include the token.
Request File to Folder request has been successfully created.
Bad Request
Possible error codes: ERR_REQUEST_INVALID_JSON
Error code
Error message
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_USER, ERR_ENTITY_DELETED, ERR_ENTITY_DLP_LOCKED, ERR_ENTITY_IS_SECURE_FOLDER, ERR_ENTITY_NOT_SCANNED, ERR_ENTITY_VIRUS_FOUND, ERR_INPUT_EMAIL_IS_DISTRIBUTION_LIST, ERR_LICENSE_MAX_USERS_COUNT_REACHED, ERR_USER_HAS_NO_USER_TYPE, ERR_USER_TYPE_NO_ACCESS
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INPUT_HYPERLINK, ERR_INPUT_INVALID_DATE, ERR_INPUT_REQUIRED, ERR_INVALID_PARAMETER
Error code
Error message
Request blocked by WAF
curl -X POST \
"https://{instance}.kiteworks.com/rest/folders/:id/actions/requestFile" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"to": [
"string"
],
"subject": "string",
"body": "string",
"expire": "2024-01-15",
"count": 1,
"requireAuth": true
}'import requests
id = "VALUE" # The unique identifier (UUID) of the entity.
url = f"https://{{instance}}.kiteworks.com/rest/folders/{id}/actions/requestFile"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"to": [
"string"
],
"subject": "string",
"body": "string",
"expire": "2024-01-15",
"count": 1,
"requireAuth": true
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Returns Request File Info by ref
Description:
Retrieves detailed information about a Request File using the provided reference (ref).Precondition:
The user must have valid authentication and appropriate access to view the request file information.Response:
Returns the details of the specified request file, including its associated metadata and status.The unique reference of the Request File upload link.
Indicates whether to log the view event. Defaults to true.
The Request File Info, including the details of the specified request file.
Unique identifier for the request file.
The type of the request file.
Unique identifier (UUID) for the user.
Email address associated with the user.
Unique identifier (UUID) for the user.
Email address associated with the user.
The number of remaining files or actions.
The maximum number of files allowed for this request.
Unique identifier of the email.
Subject line of the email.
The body of the email.
Full HTML body of the email.
Unique identifier of the parent email, if applicable.
Unique identifier of the associated email package.
Unique identifier of the sender.
Unique identifier of the shared mailbox, if applicable.
Message or note associated with the request file.
Indicates whether authentication is required to access the request file.
The expiration date of the request file.
List of file extensions not allowed for upload via this file request.
Link for uploading the request file.
Reference or identifier for the request file.
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_REQUEST_FILE, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_USER, ERR_ENTITY_DELETED, ERR_ENTITY_REQUEST_FILE_EXPIRED
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/requestFile/:ref" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
ref = "VALUE" # The unique reference of the Request File upload link.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Expire a request file link
Marks the request file link as expired, preventing any further file uploads through it. Requires the authenticated user to be the user who created the request file link.
The unique reference of the Request File upload link.
The request file link was successfully expired. Returns no content.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/requestFile/:ref" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
ref = "VALUE" # The unique reference of the Request File upload link.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())Get preview metadata for a source file
Gets the preview metadata for a source file attached to the request file link. If the source file's action is set to view, the preview is generated with the Viewer role.
The unique reference of the Request File upload link.
The unique identifier (UUID) of the source file.
Returns the preview metadata for the specified source file.
Preview link for the file
PDF file for the preview
URL for viewing the preview
Preview processing status. Accepted values: processing, preview, failed
Format of the generated preview, such as image or PDF
Additional metadata about the preview, such as dimensions or page count
MIME type of the preview file
Indicates whether the preview is a native render
Watermark applied to the preview
Original file extension for TDF files
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/requestFile/:ref/preview/:object_id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
ref = "VALUE" # The unique reference of the Request File upload link.
object_id = "VALUE" # The unique identifier (UUID) of the source file.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}/preview/{object_id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get source files attached by the requester
Returns the list of files the requester attached to the request file link for the uploader to view or download. Each entry includes computed permissions based on DLP policy and the configured action (view or download).
The unique reference of the Request File upload link.
Returns a paginated list of source file records attached to the request file link.
The unique identifier of the source file
The unique identifier of the associated request file
The available permissions on the source file for the uploader
Action name
Determines if action is valid
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/requestFile/:ref/sources" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
ref = "VALUE" # The unique reference of the Request File upload link.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}/sources"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get source file metadata
Gets the file metadata for a specific source file attached to the request file link.
The unique reference of the Request File upload link.
The unique identifier (UUID) of the source file.
With parameters
Determines the detail level of the response body.
Returns the file metadata for the specified source file.
Unique identifier (UUID) of the file.
Unique identifier (UUID) of the parent folder.
Name of the object.
Type of the object.f – File.d – Folder.
Unique identifier (UUID) who created the file.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The date and time when the object was created.
The date and time when the object was last modified.
Expiration timestamp of the object, if applicable.
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
Indicates whether the object has been deleted.
Indicates whether the object has been permanently deleted.
Permanent URL link to access the file.
Path to the object in the hierarchy.
Unique identifier (UUID) of the associated object (file or folder).
Role assigned to the member.
Unique identifier (UUID) of the user.
Unique identifier of the LDAP group.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Role ID
Role name
Role rank
Role type
LDAP Group ID
LDAP Group name
LDAP Group domain name
LDAP Group email
LDAP Group description
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Date when the file or folder was shared.
Inherited role ID from the parent folder, if applicable.
List of allowed folder role IDs.
Email associated with the member.
Rank of the member role.
Vendor document ID associated with the object.
Name of the vendor document associated with the object.
Indicates whether the folder or the parent folder containing the file is marked as secure.
ID representing the source of the object (1 - Salesforce, 2 - Teams).
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The size of the file in bytes.
The MIME type of the file.
A unique hash identifying the file.
The algorithm used to generate the fingerprint (e.g., sha3-256, md5).
The resulting hash value representing the fingerprint of the file or object.
The date and time when the file was created on the client side.
The date and time when the file was last modified on the client side.
Indicates whether the expiration date for the file has been overridden.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The date and time when the file was shared.
Unique identifier (UUID) of the folder.
Unique identifier (UUID) of the parent object.
Name of the object.
Type of the object.f – File.d – Folder.
Unique identifier (UUID) who created the folder.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The date and time when the object was created.
The date and time when the object was last modified.
Expiration timestamp of the object, if applicable.
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
Indicates whether the object has been deleted.
Indicates whether the object has been permanently deleted.
Permanent URL link to access the object.
Path to the folder in the hierarchy.
Unique identifier (UUID) of the associated object (file or folder).
Role assigned to the member.
Unique identifier (UUID) of the user.
Unique identifier of the LDAP group.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Role ID
Role name
Role rank
Role type
LDAP Group ID
LDAP Group name
LDAP Group domain name
LDAP Group email
LDAP Group description
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Date when the file or folder was shared.
Inherited role ID from the parent folder, if applicable.
List of allowed folder role IDs.
Email associated with the member.
Rank of the member role.
Vendor document ID associated with the object.
Name of the vendor document associated with the object.
Indicates whether the folder or the parent folder containing the file is marked as secure.
ID representing the source of the object (1 - Salesforce, 2 - Teams).
Indicates if the folder is shared with other users.
Indicates if the folder can be synced by Desktop Sync Client.
Time duration (in days) for which the files in this folder are kept after being added to the folder.
The description of the folder.
Indicates if the folder is marked as a favorite by the user.
The number of files that have been pushed to mobile apps in this folder.
Role ID
Role name
Role rank
Role type
The Antivirus (AV) status of the folder.
The Data Loss Prevention (DLP) status of the folder.
Total number of members who have access to this folder.
Total number of subfolders within this folder.
Total number of files within this folder.
The maximum expiration date allowed for files in this folder.
The maximum duration (in days) that files in this folder can be kept after being added to the folder.
Indicates if the folder is part of an LDAP group.
Indicates if this folder is a subfolder of the user's "My Folder".
A list of IDs representing the path of the folder within the folder hierarchy.
Indicates if this folder is a root folder.
The ID of the root folder if this is a subfolder.
Indicates if a folder quota is applied to this folder.
The storage quota for the folder (in bytes).
The total storage size used by the folder (in bytes).
The amount of free space available in the folder (in bytes).
Indicates if a folder inherits permissions from the parent folder
The ID of the original file if this one is a copy.
Indicates the file version's availability status based on Antivirus (AV) settings and whether it has been scanned or detected as infected.
Indicates the file version's availability status based on Data Loss Prevention (DLP) settings and whether it has been scanned or detected as infected.
Indicates the file version's availability status based on the administrator's quarantine status.
Indicates if the file is locked.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Indicates if the file is shared with other users.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Unique identifier (UUID) for the pushed object.
Unique identifier (UUID) for the user who pushed the object.
The date and time when the object was pushed.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
A list of IDs representing the path of the file within the folder hierarchy.
The WOPI (Web Application Open Platform Interface) source URL for the mobile application.
Unique identifier of the user.
The WOPI service ID.
URI scheme used by the mobile application to handle the file.
Indicates the level of support the mobile app has for the URI scheme.
Indicates if the file has been pushed to a mobile app.
Unique identifier (UUID) for the tag.
Display name of the tag.
Type category of the tag.
Indicates if the file is locked through a SafeEdit session.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The total number of versions for the file.
Tracking identifier associated with the file upload.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/requestFile/:ref/sources/:object_id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
ref = "VALUE" # The unique reference of the Request File upload link.
object_id = "VALUE" # The unique identifier (UUID) of the source file.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}/sources/{object_id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get files uploaded by the current user
Returns the list of files the currently authenticated user has uploaded for the specified request file link. Returns an empty list when the link does not require authentication (require_auth=false).
The unique reference of the Request File upload link.
Returns a paginated list of upload records for the current user. Returns {data: []} when the link does not require authentication.
The unique identifier of the uploaded file
The unique identifier of the associated request file
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/requestFile/:ref/uploads" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
ref = "VALUE" # The unique reference of the Request File upload link.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}/uploads"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get uploaded file metadata
Gets the file metadata for a specific file uploaded through the request file link. Only accessible when the link requires authentication (require_auth=true). The uploader's email address is stripped from the displayed file name before it is returned.
The unique reference of the Request File upload link.
The unique identifier (UUID) of the uploaded file.
With parameters
Determines the detail level of the response body.
Returns the file metadata for the specified uploaded file, with the uploader's email suffix removed from the file name.
Unique identifier (UUID) of the file.
Unique identifier (UUID) of the parent folder.
Name of the object.
Type of the object.f – File.d – Folder.
Unique identifier (UUID) who created the file.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The date and time when the object was created.
The date and time when the object was last modified.
Expiration timestamp of the object, if applicable.
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
Indicates whether the object has been deleted.
Indicates whether the object has been permanently deleted.
Permanent URL link to access the file.
Path to the object in the hierarchy.
Unique identifier (UUID) of the associated object (file or folder).
Role assigned to the member.
Unique identifier (UUID) of the user.
Unique identifier of the LDAP group.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Role ID
Role name
Role rank
Role type
LDAP Group ID
LDAP Group name
LDAP Group domain name
LDAP Group email
LDAP Group description
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Date when the file or folder was shared.
Inherited role ID from the parent folder, if applicable.
List of allowed folder role IDs.
Email associated with the member.
Rank of the member role.
Vendor document ID associated with the object.
Name of the vendor document associated with the object.
Indicates whether the folder or the parent folder containing the file is marked as secure.
ID representing the source of the object (1 - Salesforce, 2 - Teams).
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The size of the file in bytes.
The MIME type of the file.
A unique hash identifying the file.
The algorithm used to generate the fingerprint (e.g., sha3-256, md5).
The resulting hash value representing the fingerprint of the file or object.
The date and time when the file was created on the client side.
The date and time when the file was last modified on the client side.
Indicates whether the expiration date for the file has been overridden.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The date and time when the file was shared.
Unique identifier (UUID) of the folder.
Unique identifier (UUID) of the parent object.
Name of the object.
Type of the object.f – File.d – Folder.
Unique identifier (UUID) who created the folder.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The date and time when the object was created.
The date and time when the object was last modified.
Expiration timestamp of the object, if applicable.
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
Indicates whether the object has been deleted.
Indicates whether the object has been permanently deleted.
Permanent URL link to access the object.
Path to the folder in the hierarchy.
Unique identifier (UUID) of the associated object (file or folder).
Role assigned to the member.
Unique identifier (UUID) of the user.
Unique identifier of the LDAP group.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Role ID
Role name
Role rank
Role type
LDAP Group ID
LDAP Group name
LDAP Group domain name
LDAP Group email
LDAP Group description
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Date when the file or folder was shared.
Inherited role ID from the parent folder, if applicable.
List of allowed folder role IDs.
Email associated with the member.
Rank of the member role.
Vendor document ID associated with the object.
Name of the vendor document associated with the object.
Indicates whether the folder or the parent folder containing the file is marked as secure.
ID representing the source of the object (1 - Salesforce, 2 - Teams).
Indicates if the folder is shared with other users.
Indicates if the folder can be synced by Desktop Sync Client.
Time duration (in days) for which the files in this folder are kept after being added to the folder.
The description of the folder.
Indicates if the folder is marked as a favorite by the user.
The number of files that have been pushed to mobile apps in this folder.
Role ID
Role name
Role rank
Role type
The Antivirus (AV) status of the folder.
The Data Loss Prevention (DLP) status of the folder.
Total number of members who have access to this folder.
Total number of subfolders within this folder.
Total number of files within this folder.
The maximum expiration date allowed for files in this folder.
The maximum duration (in days) that files in this folder can be kept after being added to the folder.
Indicates if the folder is part of an LDAP group.
Indicates if this folder is a subfolder of the user's "My Folder".
A list of IDs representing the path of the folder within the folder hierarchy.
Indicates if this folder is a root folder.
The ID of the root folder if this is a subfolder.
Indicates if a folder quota is applied to this folder.
The storage quota for the folder (in bytes).
The total storage size used by the folder (in bytes).
The amount of free space available in the folder (in bytes).
Indicates if a folder inherits permissions from the parent folder
The ID of the original file if this one is a copy.
Indicates the file version's availability status based on Antivirus (AV) settings and whether it has been scanned or detected as infected.
Indicates the file version's availability status based on Data Loss Prevention (DLP) settings and whether it has been scanned or detected as infected.
Indicates the file version's availability status based on the administrator's quarantine status.
Indicates if the file is locked.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Indicates if the file is shared with other users.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
Unique identifier (UUID) for the pushed object.
Unique identifier (UUID) for the user who pushed the object.
The date and time when the object was pushed.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
A list of IDs representing the path of the file within the folder hierarchy.
The WOPI (Web Application Open Platform Interface) source URL for the mobile application.
Unique identifier of the user.
The WOPI service ID.
URI scheme used by the mobile application to handle the file.
Indicates the level of support the mobile app has for the URI scheme.
Indicates if the file has been pushed to a mobile app.
Unique identifier (UUID) for the tag.
Display name of the tag.
Type category of the tag.
Indicates if the file is locked through a SafeEdit session.
Unique identifier (UUID) for the user.
Email address associated with the user.
Full name of the user.
URL or identifier for the user's profile icon.
The total number of versions for the file.
Tracking identifier associated with the file upload.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/requestFile/:ref/uploads/:object_id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
ref = "VALUE" # The unique reference of the Request File upload link.
object_id = "VALUE" # The unique identifier (UUID) of the uploaded file.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}/uploads/{object_id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Delete an uploaded file
Deletes a file that was uploaded through the request file link. Only accessible when the link requires authentication (require_auth=true) and has not expired.
The unique reference of the Request File upload link.
The unique identifier (UUID) of the uploaded file.
The uploaded file was successfully deleted. Returns no content.
Forbidden
Possible error codes: ERR_ACCESS_USER, ERR_ENTITY_LOCKED
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/requestFile/:ref/uploads/:object_id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
ref = "VALUE" # The unique reference of the Request File upload link.
object_id = "VALUE" # The unique identifier (UUID) of the uploaded file.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}/uploads/{object_id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())Request files to inbox
Description:
Sends a request files to inbox message.Precondition:
Must be assigned a user profile with the ability to request files to inbox.Response:
Sends the message requesting files to your inbox.If true, includes the entity in the response body.
Specifies additional fields to include in the response.
Determines the detail level of the response body.
List of email addresses to send the files to.
Subject of the email. Must be between 1 and 998 characters.
The body of the email.
The expiration date of the request file link.
The maximum number of files to attach.
Indicates if authentication is required to access the files.
List of email addresses to send read receipts to.
Unique identifier for the Shared Mailbox. Used to search for results belonging to this Shared Mailbox.
Request File to Inbox request has been successfully created.
Bad Request
Possible error codes: ERR_REQUEST_INVALID_JSON
Error code
Error message
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_INPUT_EMAIL_IS_DISTRIBUTION_LIST, ERR_LICENSE_MAX_USERS_COUNT_REACHED, ERR_SYSTEM_REQUEST_FILE_DISABLED, ERR_USER_HAS_NO_USER_TYPE, ERR_PROFILE_SEND_FILE_EXTERNAL_DISABLED, ERR_USER_TYPE_NO_ACCESS
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INPUT_HYPERLINK, ERR_INPUT_INVALID_DATE, ERR_INPUT_REQUIRED, ERR_INVALID_PARAMETER
Error code
Error message
Request blocked by WAF
curl -X POST \
"https://{instance}.kiteworks.com/rest/mail/actions/requestFile" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"to": [
"string"
],
"subject": "string",
"body": "string",
"expire": "2024-01-15",
"fileLimit": 1,
"requireAuth": true
}'import requests
url = "https://{instance}.kiteworks.com/rest/mail/actions/requestFile"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"to": [
"string"
],
"subject": "string",
"body": "string",
"expire": "2024-01-15",
"fileLimit": 1,
"requireAuth": true
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Reply to Request File
Description:
Processes a reply to a specific Request File.Precondition:
The user must be authenticated and have the proper access to reply to the specified request file.Response:
The reply to the request file is processed, and a successful response is returned with the status of the action.The unique reference of the Request File upload link.
The body of the reply. This field is optional.
The reply to the Request File has been successfully processed.
Bad Request
Possible error codes: ERR_REQUEST_INVALID_JSON
Error code
Error message
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_USER, ERR_ENTITY_REQUEST_FILE_NO_FILE_UPLOADED
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INPUT_HYPERLINK
Error code
Error message
Request blocked by WAF
curl -X POST \
"https://{instance}.kiteworks.com/rest/requestFile/:ref/reply" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"body": "string"
}'import requests
ref = "VALUE" # The unique reference of the Request File upload link.
url = f"https://{{instance}}.kiteworks.com/rest/requestFile/{ref}/reply"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"body": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())