SafetyCulture · Schema

s12.userdocuments.v1.GetDocumentsResponse

CompanyBusiness ApplicationsSafetyInspectionWorkplace OperationsEHSComplianceTrainingField Service ManagementWebhookAustralia

Properties

Name Type Description
next_page_token string If there are more results available, this will be set. If this is unset, there are no more results. To get the next set of results, call `GetDocuments` again with `page_token` set to this value.
latest_document_versions array The latest version of each credential returned by the query.
total_count integer The total count of credentials matching the query (filters applied) available in the current archived scope — active, archived, or all, whichever was requested.
total_archived_count integer The total count of archived credentials matching the same filters as this request, regardless of which archived scope was requested. Used by clients to populate a "Show archived (N)" badge without fir
View JSON Schema on GitHub

JSON Schema

safetyculture-s12-userdocuments-v1-get-documents-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-userdocuments-v1-get-documents-response-schema.json",
  "title": "s12.userdocuments.v1.GetDocumentsResponse",
  "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.GetDocumentsResponse",
  "type": "object",
  "properties": {
    "next_page_token": {
      "type": "string",
      "description": "If there are more results available, this will be set. If this is unset, there are no more results.\nTo get the next set of results, call `GetDocuments` again with `page_token` set to this value."
    },
    "latest_document_versions": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.userdocuments.v1.DocumentVersion"
      },
      "description": "The latest version of each credential returned by the query."
    },
    "total_count": {
      "type": "integer",
      "format": "int32",
      "description": "The total count of credentials matching the query (filters applied) available\nin the current archived scope — active, archived, or all, whichever was requested."
    },
    "total_archived_count": {
      "type": "integer",
      "format": "int32",
      "description": "The total count of archived credentials matching the same filters as this\nrequest, regardless of which archived scope was requested. Used by clients\nto populate a \"Show archived (N)\" badge without firing a second request,\nso the count always respects the user's active filters."
    }
  },
  "$defs": {
    "google.type.Date": {
      "type": "object",
      "properties": {
        "year": {
          "type": "integer",
          "format": "int32",
          "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without\na year."
        },
        "month": {
          "type": "integer",
          "format": "int32",
          "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a\nmonth and day."
        },
        "day": {
          "type": "integer",
          "format": "int32",
          "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0\nto specify a year by itself or a year and month where the day isn't\nsignificant."
        }
      },
      "description": "* A full date, with non-zero year, month, and day values\n* A month and day value, with a zero year, such as an anniversary\n* A year on its own, with zero month and day values\n* A year and month value, with a zero day, such as a credit card expiration\ndate\n\nRelated types are [google.type.TimeOfDay][google.type.TimeOfDay] and\n`google.protobuf.Timestamp`.",
      "title": "Represents a whole or partial calendar date, such as a birthday. The time of\nday and time zone are either specified elsewhere or are insignificant. The\ndate is relative to the Gregorian Calendar. This can represent one of the\nfollowing:"
    },
    "s12.common.Media": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "filename": {
          "type": "string",
          "description": "full file name, including file extension"
        },
        "media_type": {
          "$ref": "#/$defs/s12.common.MediaType"
        }
      },
      "title": "Represents an image or video"
    },
    "s12.common.MediaType": {
      "type": "string",
      "enum": [
        "MEDIA_TYPE_IMAGE",
        "MEDIA_TYPE_VIDEO",
        "MEDIA_TYPE_PDF",
        "MEDIA_TYPE_DOCX",
        "MEDIA_TYPE_XLSX",
        "MEDIA_TYPE_PPTX",
        "MEDIA_TYPE_CSV"
      ],
      "description": " - MEDIA_TYPE_IMAGE: An image file (GIF, JPG, PNG, WEBP).\n - MEDIA_TYPE_VIDEO: A video file (MP4, MOV).\n - MEDIA_TYPE_PDF: A PDF document.\n - MEDIA_TYPE_DOCX: A Microsoft Word document (DOCX, DOC).\n - MEDIA_TYPE_XLSX: A Microsoft Excel spreadsheet (XLSX, XLS).\n - MEDIA_TYPE_PPTX: A Microsoft PowerPoint presentation (PPTX, PPT).\n - MEDIA_TYPE_CSV: A CSV file."
    },
    "s12.userdocuments.v1.DocumentType": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the document type."
        },
        "name": {
          "type": "string",
          "description": "The name of the type"
        }
      },
      "title": "A type of document"
    },
    "s12.userdocuments.v1.DocumentVersion": {
      "type": "object",
      "properties": {
        "subject_org_id": {
          "type": "string",
          "description": "The ID of the organization that a credential is stored in."
        },
        "subject_user_id": {
          "type": "string",
          "description": "@deprecated: use subject_user instead"
        },
        "document_type_id": {
          "type": "string",
          "description": "@deprecated: use document_type instead"
        },
        "document_id": {
          "type": "string",
          "description": "The ID of a credential."
        },
        "document_version_id": {
          "type": "string",
          "description": "The ID of a credential version."
        },
        "attributes": {
          "description": "Any intrinsic attributes associated with a credential version.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionAttributes"
            }
          ]
        },
        "metadata": {
          "description": "Any metadata associated with a credential version.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.userdocuments.v1.DocumentVersionMetadata"
            }
          ]
        },
        "subject_user": {
          "description": "The subject of a credential.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.userdocuments.v1.User"
            }
          ]
        },
        "document_type": {
          "description": "The type of a credential.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.userdocuments.v1.DocumentType"
            }
          ]
        }
      },
      "description": "A version is the point-in-time snapshot of a credential. A credential can have multiple versions that are added and edited over time."
    },
    "s12.userdocuments.v1.DocumentVersionAttributes": {
      "type": "object",
      "properties": {
        "media": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/s12.common.Media"
          },
          "description": "Media array to be associated with the document."
        },
        "expiry_period_start_date": {
          "description": "The start date of a credential's expiration period.",
          "allOf": [
            {
              "$ref": "#/$defs/google.type.Date"
            }
          ]
        },
        "expiry_period_end_date": {
          "description": "The end date of a credential's expiration period.",
          "allOf": [
            {
              "$ref": "#/$defs/google.type.Date"
            }
          ]
        }
      },
      "description": "Intrinsic attributes associated with a credential version."
    },
    "s12.userdocuments.v1.DocumentVersionMetadata": {
      "type": "object",
      "properties": {
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "The creation date of a credential version."
        },
        "created_by_user": {
          "description": "The creator of a credential version.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.userdocuments.v1.User"
            }
          ]
        },
        "last_modified": {
          "type": "string",
          "format": "date-time",
          "description": "The last modified date of a credential version."
        },
        "last_modified_by_user": {
          "description": "The user who last edited a credential version.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.userdocuments.v1.User"
            }
          ]
        },
        "expiry_status": {
          "description": "The expiration status of a credential based on its expiration period.",
          "readOnly": true,
          "allOf": [
            {
              "$ref": "#/$defs/s12.userdocuments.v1.ExpiryStatus"
            }
          ]
        },
        "total_media_count": {
          "type": "integer",
          "format": "int32",
          "description": "The total count of media items associated with this credential version.\nThis count is available regardless of whether the user has permissions to view the media."
        },
        "is_archived": {
          "type": "boolean",
          "description": "Whether the credential has been archived.",
          "readOnly": true
        },
        "archived_at": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the credential was archived. Unset if not archived.",
          "readOnly": true
        },
        "archived_by": {
          "type": "string",
          "description": "The ID of the user who archived the credential. Unset if not archived.",
          "readOnly": true
        }
      },
      "description": "Metadata associated with a credential version."
    },
    "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.User": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the user."
        },
        "first_name": {
          "type": "string",
          "description": "The first name of the user."
        },
        "last_name": {
          "type": "string",
          "description": "The last name of the user."
        }
      },
      "description": "Information about a SafetyCulture user."
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/safetyculture-s12-userdocuments-v1-get-documents-response"
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.