Return user's sources
Description:
Returns a list of sources available to the current user, such as external cloud storage or SharePoint connections.Precondition:
User must be authenticated and have access to at least one source.Response:
A list of the user's sources is returned.If true, includes Kiteworks native sources in the results.
If true, includes container-type sources (e.g. SharePoint document libraries) in the results.
Maximum number of results to return.
Number of results to skip before returning results, for pagination.
Search query string to filter sources or sites by name.
Type of search to perform against the source.
The user's sources have been successfully returned.
Unique identifier of the external content source.
Display name of the external content source.
Description of the external content source.
URL of the external content source.
Numeric identifier of the source type.
Indicates whether this source was added by the user.
Indicates whether the source is pinned.
Date and time when the source was pinned.
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ENTITY_USER_HAS_INSUFFICIENT_PERMISSIONS
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/sources"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Add user ECM source
Creates a new ECM source for the current user with the provided name, URL, and source type. Returns 422 if a source with the same name or URL already exists for this user.
If set to true, returns information about the newly created entity.
Determines the detail level of the response body.
Display name of the source
Optional description of the source providing additional context about its contents or purpose
URL of the external source system to connect to
Unique identifier of source type
Username for authenticating with the external source system
Password for authenticating with the external source system
Name of the repository within the external source system to connect to
Indicates whether HATEOAS links should be included in the response
Unprocessable Content
Possible error codes: ERR_INPUT_REQUIRED
Error code
Error message
Request blocked by WAF
curl -X POST \
"https://{instance}.kiteworks.com/rest/sources" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"description": "string",
"sourceUrl": "string",
"sourceTypeId": "string",
"username": "string",
"password": "string"
}'import requests
url = "https://{instance}.kiteworks.com/rest/sources"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"name": "string",
"description": "string",
"sourceUrl": "string",
"sourceTypeId": "string",
"username": "string",
"password": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Lock Repositories Gateway files
Locks one or more Repositories Gateway files. Supports partial success — if some files cannot be locked, the operation continues for the remaining files.
A comma-separated list of unique identifiers for the entities to be processed.. A comma-separated list of unique identifiers for the entities to be processed.
If set to true, the operation will continue for the valid items even if some items result in failure.
Determines the detail level of the response body.
Files locked successfully.
Request blocked by WAF
curl -X PATCH \
"https://{instance}.kiteworks.com/rest/sources/actions/lock?id:in=VALUE" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/sources/actions/lock"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
params = {
"id:in": "VALUE",
}
response = requests.patch(url, params=params, headers=headers)
print(response.json())Unlock Repositories Gateway files
Unlocks one or more Repositories Gateway files. Supports partial success — if some files cannot be unlocked, the operation continues for the remaining files.
A comma-separated list of unique identifiers for the entities to be processed.. A comma-separated list of unique identifiers for the entities to be processed.
If set to true, the operation will continue for the valid items even if some items result in failure.
Determines the detail level of the response body.
Files unlocked successfully.
Request blocked by WAF
curl -X PATCH \
"https://{instance}.kiteworks.com/rest/sources/actions/unlock?id:in=VALUE" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/sources/actions/unlock"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
params = {
"id:in": "VALUE",
}
response = requests.patch(url, params=params, headers=headers)
print(response.json())Login to cloud source
Completes the cloud ECM authentication flow by submitting the code and state values returned by the ECM provider's redirect URL. Returns 200 on success or an error if the credentials are invalid.
ID of the client, from redirect url
Code from redirect url
Anti-CSRF state token returned by the OAuth provider in the redirect URL
Optional field needed for SharePoint Online and OneDrive
Cloud ECM authentication completed successfully.
Unprocessable Content
Possible error codes: ERR_INPUT_REQUIRED
Error code
Error message
Request blocked by WAF
curl -X POST \
"https://{instance}.kiteworks.com/rest/sources/auth" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"client": "string",
"code": "string",
"state": "string",
"sessionState": "string"
}'import requests
url = "https://{instance}.kiteworks.com/rest/sources/auth"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"client": "string",
"code": "string",
"state": "string",
"sessionState": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Get kp transfer status.
Returns the status of one or more file transfer operations to Repositories Gateway, including transaction ID, file name, user ID, error code, transfer status, and AV/DLP scan results.
Transaction ID of download
Transaction ID of download. Search for results that match any of the specified values for this parameter.
Determines the detail level of the response body.
Transfer status records retrieved successfully.
KP transfer status unique identifier
Unique transaction identifier for tracking the Repositories Gateway file transfer
Unique identifier of the Repositories Gateway object being transferred
File handle used to reference the temporary file during the transfer process
The unique identifier of the user.
Numeric error code returned when the file transfer fails
Current status of the Repositories Gateway file transfer. Accepted values: 0 (received request), 1 (in progress), 2 (completed successfully), 99 (transfer failed)
AV scan status. Accepted values: allowed, disallowed, scanning
DLP scan status. Accepted values: allowed, disallowed, scanning
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/files/actions/transferStatus" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/sources/files/actions/transferStatus"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get info of an Repositories Gateway file.
Returns the details of the specified Repositories Gateway file, including its name, parent ID, type, timestamps, and the current user's permissions on it.
ID of Repositories Gateway file
With parameters
Determines the detail level of the response body.
Repositories Gateway file details retrieved successfully.
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
File's creator (Explicit field. May be retrieved only if mentioned in "with" parameter)
Current user's permissions (Explicit field. May be retrieved only if mentioned in "with" parameter)
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Class SourceContent - if you need true EAPI entity use App\Entity\ECObject
HATEOAS links associated with the entity
HATEOAS links associated with the entity
HATEOAS links associated with the entity
HATEOAS links associated with the entity
Indicates whether the file is locked
Size of the source file in bytes
File content fingerprint
Date and time after which the source file expires and becomes unavailable
File MIME type
Check file availability status according to AV settings and file scanned/infected status
Check file availability status according to DLP settings and file scanned/infected status
Username/email of user who locked the file
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/files/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of Repositories Gateway file
url = f"https://{{instance}}.kiteworks.com/rest/sources/files/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Delete an Repositories Gateway file.
Permanently deletes the specified Repositories Gateway file. When the forceDelete query parameter is set to true, the file can be deleted even if it is currently in use by the requesting user. Deleting a file in use by another user is not permitted.
ID of Repositories Gateway file
If set to true, allows the user to delete a file that is only in their own use.
Determines the detail level of the response body.
Repositories Gateway file deleted successfully.
Unprocessable Content
Possible error codes: ERR_FILE_IS_IN_USE_BY_OTHER_USER, ERR_FILE_IS_IN_USE_BY_CURRENT_USER
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/sources/files/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of Repositories Gateway file
url = f"https://{{instance}}.kiteworks.com/rest/sources/files/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())Get info of an Repositories Gateway folder.
Returns the details of the specified Repositories Gateway folder, including its name, parent, type, timestamps, and child counts.
ID of Repositories Gateway folder
With parameters
Determines the detail level of the response body.
Repositories Gateway folder details retrieved successfully.
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
File's creator (Explicit field. May be retrieved only if mentioned in "with" parameter)
Current user's permissions (Explicit field. May be retrieved only if mentioned in "with" parameter)
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Class SourceContent - if you need true EAPI entity use App\Entity\ECObject
HATEOAS links associated with the entity
HATEOAS links associated with the entity
HATEOAS links associated with the entity
HATEOAS links associated with the entity
Indicates that Folder is marked as favorite for current user
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/folders/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of Repositories Gateway folder
url = f"https://{{instance}}.kiteworks.com/rest/sources/folders/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Delete an Repositories Gateway folder.
Permanently deletes the specified Repositories Gateway folder.
ID of Repositories Gateway folder
Repositories Gateway folder deleted successfully.
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/sources/folders/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of Repositories Gateway folder
url = f"https://{{instance}}.kiteworks.com/rest/sources/folders/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())Returns requested ECM source
Returns the details of the specified ECM source, including its name, description, URL, source type, pinned status, and the current user's permissions on it.
ID of the source to be retrieved
With parameters
Determines the detail level of the response body.
ECM source details retrieved successfully.
Unique identifier of the external content source.
Display name of the external content source.
Description of the external content source.
URL of the external content source.
Numeric identifier of the source type.
Indicates whether this source was added by the user.
Indicates whether the source is pinned.
Date and time when the source was pinned.
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of the source to be retrieved
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Deletes specified source
Removes the specified ECM source from the current user's source list.
ID of the source to be deleted.
ECM source deleted successfully.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/sources/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of the source to be deleted.
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())Get url with redirect to cloud ECM auth
Returns the authentication redirect URL and client ID for the specified cloud ECM source. The caller should redirect the user to the returned URL to complete the authentication flow with the ECM provider.
The source ID
Cloud ECM authentication URL retrieved successfully.
OAuth redirect URL for the cloud source
Cloud source OAuth client unique identifier
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/:id/auth" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # The source ID
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}/auth"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Login to on-premise source
Authenticates the current user to the specified on-premise ECM source using a login and password. Returns 200 on success or an error if the credentials are invalid.
The source ID
Login
Password
On-premise ECM authentication completed successfully.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INPUT_REQUIRED
Error code
Error message
Request blocked by WAF
curl -X POST \
"https://{instance}.kiteworks.com/rest/sources/:id/auth" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"login": "string",
"password": "string"
}'import requests
id = "VALUE" # The source ID
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}/auth"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"login": "string",
"password": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Get cloud ECM auth status
Checks whether the current user is authenticated to the specified cloud ECM source by attempting to list its contents. Returns HTTP 200 if authenticated, or an error if authentication is required.
The source ID
User is authenticated to the cloud ECM source.
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/:id/authStatus" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # The source ID
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}/authStatus"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Returns the content of the specified ECM source
Returns a paginated list of both files and subfolders within the specified ECM source folder, including each item's name, parent ID, type, timestamps, and permissions.
ID of the source folder to be retrieved
Object name
Object name. Search for results that contain the specified characters in this parameter.
Object description
Object description. Search for results that contain the specified characters in this parameter.
Object creation date
Object creation date. Search for results where this parameter value is greater than the specified value.
Object creation date. Search for results where this parameter value is greater than or equal to the specified value.
Object creation date. Search for results where this parameter value is less than the specified value.
Object creation date. Search for results where this parameter value is less than or equal to the specified value.
Object modification date
Object modification date. Search for results where this parameter value is greater than the specified value.
Object modification date. Search for results where this parameter value is greater than or equal to the specified value.
Object modification date. Search for results where this parameter value is less than the specified value.
Object modification date. Search for results where this parameter value is less than or equal to the specified value.
Indicates that object is deleted
Filter by object type. Accepted values: f, d.
Sorting options
Offset
Limit
With parameters
Determines the detail level of the response body.
ECM source folder contents retrieved successfully.
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
File's creator (Explicit field. May be retrieved only if mentioned in "with" parameter)
Current user's permissions (Explicit field. May be retrieved only if mentioned in "with" parameter)
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Class SourceContent - if you need true EAPI entity use App\Entity\ECObject
HATEOAS links associated with the entity
HATEOAS links associated with the entity
HATEOAS links associated with the entity
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/:id/children" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of the source folder to be retrieved
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}/children"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get access token for external file edit.
Returns a short-lived refresh token (expires after 300 seconds) scoped to the specified Repositories Gateway file, enabling an external editor to download and re-upload the file.
ID of the file
Object name
Object name. Search for results that contain the specified characters in this parameter.
Unique identifier of Object creator
Unique identifier of Object creator. Search for results that match any of the specified values for this parameter.
Object creation date
Object creation date. Search for results where this parameter value is greater than the specified value.
Object creation date. Search for results where this parameter value is greater than or equal to the specified value.
Object creation date. Search for results where this parameter value is less than the specified value.
Object creation date. Search for results where this parameter value is less than or equal to the specified value.
Object modification date
Object modification date. Search for results where this parameter value is greater than the specified value.
Object modification date. Search for results where this parameter value is greater than or equal to the specified value.
Object modification date. Search for results where this parameter value is less than the specified value.
Object modification date. Search for results where this parameter value is less than or equal to the specified value.
Indicates whether the object is deleted.
Expiration date
Expiration date. Search for results where this parameter value is greater than the specified value.
Expiration date. Search for results where this parameter value is greater than or equal to the specified value.
Expiration date. Search for results where this parameter value is less than the specified value.
Expiration date. Search for results where this parameter value is less than or equal to the specified value.
Whether the file is pushed
Sorting options
Offset
Limit
If specified, "offset" parameter will be ignored
and the page containing entity with this Id will be returned.
With parameters
Determines the detail level of the response body.
Refresh token for external file edit returned successfully.
Unique identifier of the user to whom the refresh token belongs
Date and time after which the refresh token is no longer valid
OAuth scope of the refresh token
Refresh token value
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/:id/externalEdit" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of the file
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}/externalEdit"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Returns the list of folders of the specified ECM folder
Returns a paginated list of subfolders within the specified ECM source folder, including each folder's name, parent ID, type, timestamps, and permissions.
ID of the source folder to be retrieved
Object name
Object name. Search for results that contain the specified characters in this parameter.
Object description
Object description. Search for results that contain the specified characters in this parameter.
Object creation date
Object creation date. Search for results where this parameter value is greater than the specified value.
Object creation date. Search for results where this parameter value is greater than or equal to the specified value.
Object creation date. Search for results where this parameter value is less than the specified value.
Object creation date. Search for results where this parameter value is less than or equal to the specified value.
Object modification date
Object modification date. Search for results where this parameter value is greater than the specified value.
Object modification date. Search for results where this parameter value is greater than or equal to the specified value.
Object modification date. Search for results where this parameter value is less than the specified value.
Object modification date. Search for results where this parameter value is less than or equal to the specified value.
Indicates that object is deleted
Sorting options
Offset
Limit
With parameters
Determines the detail level of the response body.
ECM folder contents retrieved successfully.
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
File's creator (Explicit field. May be retrieved only if mentioned in "with" parameter)
Current user's permissions (Explicit field. May be retrieved only if mentioned in "with" parameter)
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Class SourceContent - if you need true EAPI entity use App\Entity\ECObject
HATEOAS links associated with the entity
HATEOAS links associated with the entity
HATEOAS links associated with the entity
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/:id/folders" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of the source folder to be retrieved
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}/folders"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get file preview metadata for a file in Repositories Gateway source
Gets the current preview generation status for the specified file in a Repositories Gateway
source. When the preview is ready, the response includes the MIME type and a link to retrieve
it. If the file is empty, infected, or DLP-locked, an appropriate error status is returned
instead.
Requires view permission on the file.
The unique identifier of the file from Repositories Gateway Source.
Returns the current preview status for the file. When status is ready, the mime and link fields are populated.
The current preview generation status. Possible values: ready, processing, failed, transfer_failed, not_supported_empty.
The MIME type of the preview file. Populated only when status is ready; otherwise null.
The URL path to retrieve the preview file. Populated only when status is ready; otherwise null.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/sources/:id/preview" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # The unique identifier of the file from Repositories Gateway Source.
url = f"https://{{instance}}.kiteworks.com/rest/sources/{id}/preview"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Returns the list of files of the specified ECM folder
Returns a paginated list of files within the specified ECM source folder, including each file's name, parent ID, type, timestamps, and permissions.
ID of the source folder to be retrieved
Object name
Object name. Search for results that contain the specified characters in this parameter.
Object description
Object description. Search for results that contain the specified characters in this parameter.
Object creation date
Object creation date. Search for results where this parameter value is greater than the specified value.
Object creation date. Search for results where this parameter value is greater than or equal to the specified value.
Object creation date. Search for results where this parameter value is less than the specified value.
Object creation date. Search for results where this parameter value is less than or equal to the specified value.
Object modification date
Object modification date. Search for results where this parameter value is greater than the specified value.
Object modification date. Search for results where this parameter value is greater than or equal to the specified value.
Object modification date. Search for results where this parameter value is less than the specified value.
Object modification date. Search for results where this parameter value is less than or equal to the specified value.
Indicates that object is deleted
Sorting options
Offset
Limit
With parameters
Determines the detail level of the response body.
ECM folder file listing retrieved successfully.
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
The unique identifier of the user
The name of the user
The user's email
URL to the user's profile icon image
Unique identifier for the permission.
Name of the permission.
Indicates whether the permission is granted (True) or denied (False).
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique SourceContent identifier
Display name of the source content item
Parent source content unique identifier
Source content type. Accepted values: \d\ (folder), \f\ (file)
Creation timestamp of the source content in UTC
Last modification timestamp of the source content in UTC
Current availability status of the source content item
Indicates whether the source content is deleted
Full path of the source content
Current user role id (Explicit field. May be retrieved only if mentioned in "with" parameter)
File's creator (Explicit field. May be retrieved only if mentioned in "with" parameter)
Current user's permissions (Explicit field. May be retrieved only if mentioned in "with" parameter)
WOPI info for iOS app
Unique identifier of the root-level source content ancestor (Explicit field. May be retrieved only if mentioned in "with" parameter)
Ordered list of ancestor identifiers representing the full path from root to this source content item (Explicit field. May be retrieved only if mentioned in "with" parameter)
Unique identifier of the ECM source type this content belongs to (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of files in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Total number of folders in the source content (Explicit field. May be retrieved only if mentioned in "with" parameter)
Class SourceContent - if you need true EAPI entity use App\Entity\ECObject
HATEOAS links associated with the entity
HATEOAS links associated with the entity
HATEOAS links associated with the entity
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/sources/:parent/files" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
parent = "VALUE" # ID of the source folder to be retrieved
url = f"https://{{instance}}.kiteworks.com/rest/sources/{parent}/files"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())