v4
latestSwagger 2.02026-08-0343714211.7 MBList API Keys
List API Keys
Query parameters
User ID. Provide a value of 0 to operate the current session's user.
Used for pagination. When a list request has more records available, cursors are provided in the response headers X-Files-Cursor-Next and X-Files-Cursor-Prev. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
If set, sort records by the specified field in either asc or desc direction. Valid fields are site_id and workspace_id.
If set, return records where the specified field is equal to the supplied value. Valid fields are aws_style_credentials and expires_at.
If set, return records where the specified field is greater than the supplied value. Valid fields are expires_at.
If set, return records where the specified field is greater than or equal the supplied value. Valid fields are expires_at.
If set, return records where the specified field is less than the supplied value. Valid fields are expires_at.
If set, return records where the specified field is less than or equal the supplied value. Valid fields are expires_at.
Response
A list of ApiKeys objects.
Example response
[
{
"id": 1,
"descriptive_label": "Site-wide API key for https://site.files.com/ (key ID #1)",
"description": "example",
"created_at": "2000-01-01T01:00:00Z",
"expires_at": "2000-01-01T01:00:00Z",
"key": "[key]",
"aws_style_credentials": true,
"aws_access_key_id": "[aws_access_key_id]",
"aws_secret_key": "[aws_secret_key]",
"last_use_at": "2000-01-01T01:00:00Z",
"name": "My Main API Key",
"permission_set": "full",
"platform": "win32",
"site_id": 1,
"site_name": "example",
"url": "example",
"user_id": 1,
"workspace_id": 1
}
]