SafetyCulture · Schema
s12.userdocuments.v1.GetDocumentsRequest
CompanyBusiness ApplicationsSafetyInspectionWorkplace OperationsEHSComplianceTrainingField Service ManagementWebhookAustralia
Properties
| Name | Type | Description |
|---|---|---|
| page_size | integer | The number of credentials to return in a single request. This defaults to 20. |
| page_token | string | If present, will fetch the next page of results. This must be the value of `next_page_token` from the response. |
| sort_direction | object | The direction to sort credentials in. |
| document_version_filters | array | An array of filters that can be provided to request specific credentials. |
| document_version_sort_field | object | The field to use for sorting. |
| archived_filter | object | Controls which credentials are returned based on their archived status. Defaults to `CREDENTIAL_ARCHIVED_FILTER_UNSPECIFIED`, which returns only unarchived credentials. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-userdocuments-v1-get-documents-request-schema.json",
"title": "s12.userdocuments.v1.GetDocumentsRequest",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/safetyculture-credentials-api-openapi.yml#/components/schemas/s12.userdocuments.v1.GetDocumentsRequest",
"type": "object",
"properties": {
"page_size": {
"type": "integer",
"format": "int32",
"description": "The number of credentials to return in a single request. This defaults to 20."
},
"page_token": {
"type": "string",
"description": "If present, will fetch the next page of results. This must be the value of `next_page_token` from the response."
},
"sort_direction": {
"description": "The direction to sort credentials in.",
"allOf": [
{
"$ref": "#/$defs/s12.common.SortDirection"
}
]
},
"document_version_filters": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter"
},
"description": "An array of filters that can be provided to request specific credentials."
},
"document_version_sort_field": {
"description": "The field to use for sorting.",
"allOf": [
{
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionSortField"
}
]
},
"archived_filter": {
"description": "Controls which credentials are returned based on their archived status.\nDefaults to `CREDENTIAL_ARCHIVED_FILTER_UNSPECIFIED`, which returns only unarchived credentials.",
"allOf": [
{
"$ref": "#/$defs/s12.userdocuments.v1.CredentialArchivedFilter"
}
]
}
},
"$defs": {
"s12.common.SortDirection": {
"type": "string",
"enum": [
"SORT_DIRECTION_UNSPECIFIED",
"SORT_DIRECTION_ASC",
"SORT_DIRECTION_DESC"
],
"default": "SORT_DIRECTION_UNSPECIFIED",
"title": "Common set of sorting directions as used by lists"
},
"s12.userdocuments.v1.CredentialArchivedFilter": {
"type": "string",
"enum": [
"CREDENTIAL_ARCHIVED_FILTER_UNSPECIFIED",
"CREDENTIAL_ARCHIVED_FILTER_ARCHIVED_ONLY",
"CREDENTIAL_ARCHIVED_FILTER_ALL"
],
"default": "CREDENTIAL_ARCHIVED_FILTER_UNSPECIFIED",
"description": "CredentialArchivedFilter controls which credentials are returned based on their archived status.\n\n - CREDENTIAL_ARCHIVED_FILTER_UNSPECIFIED: `CREDENTIAL_ARCHIVED_FILTER_UNSPECIFIED` returns only unarchived credentials. This is the default behavior.\n - CREDENTIAL_ARCHIVED_FILTER_ARCHIVED_ONLY: `CREDENTIAL_ARCHIVED_FILTER_ARCHIVED_ONLY` returns only archived credentials.\n - CREDENTIAL_ARCHIVED_FILTER_ALL: `CREDENTIAL_ARCHIVED_FILTER_ALL` returns both archived and unarchived credentials."
},
"s12.userdocuments.v1.DocumentApprovalStatus": {
"type": "string",
"enum": [
"DOCUMENT_APPROVAL_STATUS_PENDING",
"DOCUMENT_APPROVAL_STATUS_PENDING_RESUBMISSION",
"DOCUMENT_APPROVAL_STATUS_APPROVED"
],
"description": "The approval status of a credential."
},
"s12.userdocuments.v1.DocumentVersionFilter": {
"type": "object",
"properties": {
"user_id": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter.UserID"
},
"document_type_id": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter.DocumentTypeID"
},
"user_status": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter.UserStatusFilter"
},
"expiry_status": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter.ExpiryStatusFilter"
},
"approval_status": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter.ApprovalStatusFilter"
},
"groups": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter.GroupsFilter"
},
"sites": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter.SitesFilter"
},
"companies": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionFilter.CompaniesFilter"
}
},
"description": "DocumentVersionFilter is used to filter document versions based on various criteria."
},
"s12.userdocuments.v1.DocumentVersionFilter.ApprovalStatusFilter": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"$ref": "#/$defs/s12.userdocuments.v1.DocumentApprovalStatus"
},
"description": "The approval status values."
}
},
"description": "ApprovalStatusFilter is the approval status of the document."
},
"s12.userdocuments.v1.DocumentVersionFilter.CompaniesFilter": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Company UUIDs to filter for"
}
},
"description": "CompaniesFilter is used to query for documents based on the companies the associated user is assigned to."
},
"s12.userdocuments.v1.DocumentVersionFilter.DocumentTypeID": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "The UUID form of the document type ID."
}
},
"description": "DocumentTypeID is used to query for documents of a particular type."
},
"s12.userdocuments.v1.DocumentVersionFilter.ExpiryStatusFilter": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"$ref": "#/$defs/s12.userdocuments.v1.ExpiryStatus"
},
"description": "The expiry status values."
}
},
"description": "ExpiryStatusFilter is the expiry status of the document."
},
"s12.userdocuments.v1.DocumentVersionFilter.GroupsFilter": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Group UUIDs to filter for"
}
},
"description": "GroupsFilter is used to query for documents based on the groups they are assigned to."
},
"s12.userdocuments.v1.DocumentVersionFilter.SitesFilter": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Site UUIDs to filter for"
}
}
},
"s12.userdocuments.v1.DocumentVersionFilter.UserID": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "The UUID form of the user ID."
}
},
"description": "UserID is a filter that can be used to request documents for a specific set of users."
},
"s12.userdocuments.v1.DocumentVersionFilter.UserStatusFilter": {
"type": "object",
"properties": {
"value": {
"description": "The user status value.",
"allOf": [
{
"$ref": "#/$defs/s12.userdocuments.v1.UserStatus"
}
]
}
},
"description": "UserStatus is used to query for documents based on user's activation status."
},
"s12.userdocuments.v1.DocumentVersionSortField": {
"type": "string",
"enum": [
"DOCUMENT_VERSION_SORT_FIELD_EXPIRY",
"DOCUMENT_VERSION_SORT_FIELD_ISSUE_DATE",
"DOCUMENT_VERSION_SORT_FIELD_DOCUMENT_TYPE_NAME",
"DOCUMENT_VERSION_SORT_FIELD_MODIFIED_AT",
"DOCUMENT_VERSION_SORT_FIELD_USER_NAME",
"DOCUMENT_VERSION_SORT_FIELD_APPROVAL_STATUS"
],
"description": "DocumentVersionSortField is used to sort document versions based on various criteria.\n\n - DOCUMENT_VERSION_SORT_FIELD_EXPIRY: `DOCUMENT_VERSION_SORT_FIELD_EXPIRY` will sort credentials by expiry date.\n - DOCUMENT_VERSION_SORT_FIELD_ISSUE_DATE: `DOCUMENT_VERSION_SORT_FIELD_ISSUE_DATE` will sort credentials by issue date.\n - DOCUMENT_VERSION_SORT_FIELD_DOCUMENT_TYPE_NAME: `DOCUMENT_VERSION_SORT_FIELD_DOCUMENT_TYPE_NAME` will sort credentials by document type name.\n - DOCUMENT_VERSION_SORT_FIELD_MODIFIED_AT: `DOCUMENT_VERSION_SORT_FIELD_MODIFIED_AT` will sort credentials by modified at date.\n - DOCUMENT_VERSION_SORT_FIELD_USER_NAME: `DOCUMENT_VERSION_SORT_FIELD_USER_NAME` will sort credentials by user name.\n - DOCUMENT_VERSION_SORT_FIELD_APPROVAL_STATUS: `DOCUMENT_VERSION_SORT_FIELD_APPROVAL_STATUS` will sort credentials by approval status."
},
"s12.userdocuments.v1.ExpiryStatus": {
"type": "string",
"enum": [
"EXPIRY_STATUS_VALID",
"EXPIRY_STATUS_EXPIRED",
"EXPIRY_STATUS_EXPIRING_SOON"
],
"description": "@deprecated. Use s12.common.ExpiryStatus instead.\nThe status of a credential based on its expiration period."
},
"s12.userdocuments.v1.UserStatus": {
"type": "string",
"enum": [
"USER_STATUS_ACTIVE",
"USER_STATUS_DEACTIVATED"
],
"description": "The status of a user with respect to the organization. A user can be active or deactivated.\n\n - USER_STATUS_ACTIVE: The user is active.\n - USER_STATUS_DEACTIVATED: The user is deactivated."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/safetyculture-s12-userdocuments-v1-get-documents-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.