Sage HR Documents API

The Documents API from Sage HR — 2 operation(s) for documents.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /documents/categories List document categories · List document categories #
Ask an LLM
“What document categories exist for employees to file documents into?”
“Can I see the category tree for documents?”
Tell an agent
List all document categories.
Show the document category tree.
POST /documents Upload an employee document · Create new document #
Ask an LLM
“How do I upload a file for an employee to store in their documents?”
“Can I notify an employee by email when I upload a document for them?”
Tell an agent
Upload {file} for employee {employee_id}.
Upload {file} for {employee_id} in category {category_id} and notify them by email.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/sage-hr:sage-hr-documents-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

sage-hr-documents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: All requests are required to be sent to your subdomain. To learn how to enable API in your Sage HR account, please visit https://support.sage.hr/en/articles/3246469-how-does-cakehr-api-work
  title: Sage HR Documents API
  version: '1.0'
  x-konfig-ignore:
    potential-incorrect-type: true
  x-konfig-uses-multipart-form-data: true
servers:
- url: https://subdomain.sage.hr/api
tags:
- name: Documents
paths:
  /documents/categories:
    summary: Document categories
    get:
      operationId: Documents_listCategories
      responses:
        '200':
          content:
            application/json:
              examples:
                response:
                  value:
                    data:
                    - id: 1
                      name: General
                      documents_count: 10
                    - id: 2
                      name: Job contracts
                      documents_count: 1
              schema:
                $ref: '#/components/schemas/DocumentsListCategoriesResponse'
          description: Successful Response
      summary: List document categories
      tags:
      - Documents
      x-konfig-operation-can-have-single-parameter: true
      x-konfig-single-parameter-schema: konfig-generated-schema-single-parameter-schema-get--documents-categories
      x-accepts: application/json
  /documents:
    summary: Document
    post:
      description: Document will only be visible to employee themselves
      operationId: Documents_createNewDocument
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/DocumentsCreateNewDocumentRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              examples:
                response:
                  value:
                    data:
                      id: 1
              schema:
                $ref: '#/components/schemas/DocumentsCreateNewDocumentResponse'
          description: Successful Response
      summary: Create new document
      tags:
      - Documents
      x-konfig-operation-can-have-single-parameter: true
      x-konfig-single-parameter-schema: konfig-generated-schema-single-parameter-schema-post--documents
      x-content-type: multipart/form-data
      x-accepts: application/json
components:
  schemas:
    DocumentsListCategoriesResponse_data_inner:
      properties:
        id:
          example: 1
          type: number
          x-konfig-original-example: 1
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-DocumentsListCategoriesResponse-properties-data-items-properties-id
        name:
          example: General
          type: string
          x-konfig-original-example: General
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-DocumentsListCategoriesResponse-properties-data-items-properties-name
        documents_count:
          example: 10
          type: number
          x-konfig-original-example: 10
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-DocumentsListCategoriesResponse-properties-data-items-properties-documents_count
      type: object
    DocumentsCreateNewDocumentRequest:
      properties:
        description:
          description: Document description
          type: string
        file:
          description: The file to upload.
          format: binary
          type: string
        employee_id:
          description: Employee identifier
          type: integer
        category_id:
          description: Category identifier, leave empty for default category
          type: integer
        notify:
          description: '''true'' to notify employee by email'
          type: string
      required:
      - employee_id
      - file
      type: object
    DocumentsCreateNewDocumentResponse:
      example:
        data:
          id: 1
      properties:
        data:
          $ref: '#/components/schemas/DocumentsCreateNewDocumentResponse_data'
      type: object
      x-konfig-original-example:
        data:
          id: 1
      x-konfig-generated-schema: konfig-generated-schema-components-schemas-DocumentsCreateNewDocumentResponse
      x-konfig-is-used-in-successful-response: true
    DocumentsListCategoriesResponse:
      example:
        data:
        - id: 1
          name: General
          documents_count: 10
        - id: 2
          name: Job contracts
          documents_count: 1
      properties:
        data:
          items:
            $ref: '#/components/schemas/DocumentsListCategoriesResponse_data_inner'
          type: array
      type: object
      x-konfig-original-example:
        data:
        - id: 1
          name: General
          documents_count: 10
        - id: 2
          name: Job contracts
          documents_count: 1
      x-konfig-generated-schema: konfig-generated-schema-components-schemas-DocumentsListCategoriesResponse
      x-konfig-is-used-in-successful-response: true
    DocumentsCreateNewDocumentResponse_data:
      properties:
        id:
          example: 1
          type: number
          x-konfig-original-example: 1
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-DocumentsCreateNewDocumentResponse-properties-data-properties-id
      type: object
  securitySchemes:
    api_key:
      description: All request are required to pass a `X-Auth-Token` header.
      in: header
      name: X-Auth-Token
      type: apiKey
      x-konfig-globally-required-security: false