Inforcer Reports API

Endpoints for triggering and managing reports

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 5

GET /beta/reports/runs List recent report runs #
POST /beta/reports/runs Queue a report run #
GET /beta/reports/types Get available report types #
GET /beta/reports/runs/{reportRunId}/outputs List rendered outputs for a report run #
GET /beta/reports/runs/{reportRunId}/outputs/{outputId} Download a single rendered output for a report run #

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/inforcer:inforcer-reports-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

inforcer-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: inforcer | Public Reports API
  description: The inforcer Public API built for developers
  contact:
    email: engineering@inforcer.com
    name: Engineering
    url: https://inforcer.com
servers:
- url: http://localhost:7072/api
security:
- apiKeyAuth: []
tags:
- name: Reports
  description: Endpoints for triggering and managing reports
paths:
  /beta/reports/runs:
    get:
      summary: List recent report runs
      description: Retrieves all report runs for the calling client within the last 7 days, newest first
      tags:
      - Reports
      operationId: listReportRuns
      responses:
        '200':
          description: A list of recent report runs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/reportRunsResponse'
        '401':
          $ref: '#/components/responses/unauthorized'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internalServerError'
    post:
      summary: Queue a report run
      description: 'Queues a report run for the requested tenants. The response contains the

        canonical `runId` which the caller can use to poll the `listReportRuns`

        operation for status. The run is processed asynchronously.

        The run is not idempotent so calling it twice will result in two runs.'
      tags:
      - Reports
      operationId: queueReportRun
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/triggerReportRequest'
            example:
              reports:
              - type: copilotadoption
                outputFormat: pdf
              tenants:
                includeTenants:
                - 1234
                - 5678
      responses:
        '202':
          description: The report run was queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/triggerReportResponse'
        '400':
          $ref: '#/components/responses/invalidRequest'
        '401':
          $ref: '#/components/responses/unauthorized'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internalServerError'
  /beta/reports/types:
    get:
      summary: Get available report types
      description: Retrieves the list of report types that can be triggered, including their supported output formats and any required parameters.
      tags:
      - Reports
      operationId: getReportTypes
      responses:
        '200':
          description: A list of available report types
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/reportTypesResponse'
        '401':
          $ref: '#/components/responses/unauthorized'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internalServerError'
  /beta/reports/runs/{reportRunId}/outputs:
    get:
      summary: List rendered outputs for a report run
      description: 'Returns metadata for the rendered output(s) of a terminal report run, filtered to the

        api key''s tenant scope. Tenant-specific outputs are included when the output''s tenant

        is in the api key''s scope; collated outputs (covering multiple tenants) are included

        only when the api key covers every tenant the run targeted.


        To download the bytes for a single output, call the `getReportRunOutput` operation

        using the `id` returned here.


        Returns 404 if the run does not exist, belongs to a different client, or is not in

        a terminal state (`completed` or `completedWithErrors`) — these cases are deliberately

        indistinguishable to avoid leaking run existence across clients. Returns 200 with an

        empty `outputs` array when the run is visible to the api key but no outputs are within

        scope.'
      tags:
      - Reports
      operationId: listReportRunOutputs
      parameters:
      - name: reportRunId
        in: path
        required: true
        description: The unique identifier for the report run, as returned by the `queueReportRun` operation.
        schema:
          type: string
          format: guid
      responses:
        '200':
          description: Metadata for the rendered outputs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/reportRunOutputsResponse'
        '401':
          $ref: '#/components/responses/unauthorized'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFoundError'
        '500':
          $ref: '#/components/responses/internalServerError'
  /beta/reports/runs/{reportRunId}/outputs/{outputId}:
    get:
      summary: Download a single rendered output for a report run
      description: 'Streams the bytes of a single rendered output for a terminal report run. The

        response `Content-Type` reflects the report''s output format (`application/json`,

        `text/csv`, `text/html` or `application/pdf`) and a `Content-Disposition` header

        suggests a filename.


        Returns 404 if the run does not exist, belongs to a different client, is not in a

        terminal state (`completed` or `completedWithErrors`), the output ID does not

        belong to the run, or the output''s tenant is outside the api key''s tenant scope —

        all cases are deliberately indistinguishable to avoid leaking run/output existence.

        Collated outputs (covering multiple tenants) are only served when the api key covers

        every tenant the run targeted.'
      tags:
      - Reports
      operationId: getReportRunOutput
      parameters:
      - name: reportRunId
        in: path
        required: true
        description: The unique identifier for the report run.
        schema:
          type: string
          format: guid
      - name: outputId
        in: path
        required: true
        description: Opaque identifier of the output, as returned by the `listReportRunOutputs` operation.
        schema:
          type: string
          format: guid
      responses:
        '200':
          description: The rendered output bytes
          content:
            application/json:
              schema:
                type: string
                format: binary
            text/csv:
              schema:
                type: string
                format: binary
            text/html:
              schema:
                type: string
                format: binary
            application/pdf:
              schema:
                type: string
                format: binary
            application/octet-stream:
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/unauthorized'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFoundError'
        '500':
          $ref: '#/components/responses/internalServerError'
components:
  schemas:
    reportRunSummary:
      type: object
      description: Summary of a single report run
      additionalProperties: false
      properties:
        runId:
          type: string
          format: guid
          description: The unique identifier for the report run
        status:
          type: string
          description: The lifecycle status of the report run
          enum:
          - running
          - completed
          - completedWithErrors
          - failed
        reportTypes:
          type: array
          description: The report types covered by this run. A run can span multiple types when bundled together.
          items:
            type: string
        outputFormats:
          type: array
          description: 'The output formats produced by this run. Known values: `csv`, `json`, `html`, `pdf`.

            New formats may be added — clients should treat unknown values as informational rather than failing.

            '
          items:
            type: string
        triggeredByType:
          type: string
          description: How the run was triggered
          enum:
          - user
          - scheduled
        createdAt:
          type: string
          format: date-time
          description: When the run was first recorded (ISO-8601 with UTC offset)
        startedAt:
          type:
          - string
          - 'null'
          format: date-time
          description: When rendering started; null until the orchestration picks up the trigger
        completedAt:
          type:
          - string
          - 'null'
          format: date-time
          description: When the run reached a terminal status; null while still running
        outputCount:
          type:
          - integer
          - 'null'
          minimum: 0
          description: Number of successful report outputs produced; null while still running or for failed runs with no outputs
      required:
      - runId
      - status
      - reportTypes
      - outputFormats
      - triggeredByType
      - createdAt
      - startedAt
      - completedAt
      - outputCount
    triggerReportTenants:
      type: object
      description: Tenant scope for the report run
      additionalProperties: false
      required:
      - includeTenants
      properties:
        includeTenants:
          type: array
          description: 'Tenant IDs the run should cover. Must be a non-empty subset of the

            tenants the calling API key has access to.

            '
          minItems: 1
          items:
            type: integer
    reportRunsData:
      type: object
      description: Container for the report-runs list
      additionalProperties: false
      properties:
        runs:
          type: array
          description: Report runs from the last 7 days, ordered newest-first. Capped at 500 entries.
          default: []
          maxItems: 500
          items:
            $ref: '#/components/schemas/reportRunSummary'
      required:
      - runs
    reportType:
      type: object
      description: A report type that can be triggered via the public API
      additionalProperties: false
      required:
      - key
      - name
      - collatable
      - supportedOutputFormats
      - tags
      - requiredParameters
      properties:
        key:
          type: string
          description: The unique key for this report type, used in the trigger request
        name:
          type: string
          description: A human-readable name for the report type
        description:
          type:
          - string
          - 'null'
          description: A user-friendly description of what the report contains
        collatable:
          type: boolean
          description: Whether the report can collate multiple tenants' data into a single output
        supportedOutputFormats:
          type: array
          description: Output formats supported by this report type (e.g. pdf, csv, html, json)
          items:
            type: string
        tags:
          type: array
          description: Categorisation tags for the report type
          items:
            type: string
        requiredParameters:
          type: array
          description: Parameters that must be supplied when triggering this report type
          items:
            $ref: '#/components/schemas/reportParameter'
    reportRunOutputsResponse:
      type: object
      additionalProperties: false
      allOf:
      - $ref: '#/components/schemas/baseResponseEnvelope'
      - type: object
        required:
        - data
        properties:
          data:
            $ref: '#/components/schemas/reportRunOutputsData'
    reportRunOutput:
      type: object
      additionalProperties: false
      required:
      - id
      - reportType
      - format
      properties:
        id:
          type: string
          format: guid
          description: Stable opaque identifier for the output. Pass to the `getReportRunOutput` operation to download the bytes.
        reportType:
          type: string
          description: The report type key this output was rendered for, matching `reportType.key` from the `getReportTypes` operation (e.g. "copilotadoption", "activeusercount").
        tenantId:
          type:
          - integer
          - 'null'
          description: The inforcer tenant ID this output relates to. Null for outputs collated across multiple tenants.
        format:
          type: string
          description: 'The output format, lower-cased file extension. Matches the `Content-Type`

            returned by the per-output download endpoint. Known values: `csv`, `json`,

            `html`, `pdf`. New formats may be added — clients should treat unknown

            values as informational; the download endpoint serves unknown formats as

            `application/octet-stream`.

            '
        sizeBytes:
          type:
          - integer
          - 'null'
          format: int64
          minimum: 0
          description: Size of the rendered output in bytes. Nullable when the renderer did not record a size at terminal-event time.
    triggerReportRequest:
      type: object
      description: Body for queueing a report run
      additionalProperties: false
      required:
      - reports
      - tenants
      properties:
        reports:
          type: array
          description: One or more reports to generate as part of this run
          minItems: 1
          items:
            $ref: '#/components/schemas/triggerReportItem'
        tenants:
          $ref: '#/components/schemas/triggerReportTenants'
    triggerReportItem:
      type: object
      additionalProperties: false
      required:
      - type
      - outputFormat
      properties:
        type:
          type: string
          description: The report type key, matching `reportType.key` from the `getReportTypes` operation (e.g. copilotadoption, activeusercount).
        outputFormat:
          type: string
          description: Output format for this report item
          enum:
          - pdf
          - csv
          - html
          - json
        collate:
          type: boolean
          default: false
          description: When true, combine outputs across all tenants into a single document
        parameters:
          type: object
          description: Optional key/value parameters specific to the report type
          additionalProperties:
            type: string
    reportRunOutputsData:
      type: object
      additionalProperties: false
      required:
      - outputs
      properties:
        outputs:
          type: array
          description: One entry per rendered blob produced by the run. Empty for completed runs that produced no outputs.
          default: []
          items:
            $ref: '#/components/schemas/reportRunOutput'
    reportTypesResponse:
      type: object
      additionalProperties: false
      allOf:
      - $ref: '#/components/schemas/baseResponseEnvelope'
      - type: object
        properties:
          data:
            type: array
            items:
              $ref: '#/components/schemas/reportType'
    reportParameterOption:
      type: object
      description: An allowed value for a report parameter that has a fixed set of choices.
      additionalProperties: false
      required:
      - key
      - description
      properties:
        key:
          type: string
          description: 'The value to supply for the parent parameter in the trigger

            request''s `parameters` map.

            '
          example: '30'
        description:
          type: string
          description: The description for this option, suitable for display to a user.
          example: Last 30 days
    triggerReportData:
      type: object
      description: Identifiers returned when a report run is queued
      additionalProperties: false
      required:
      - runId
      properties:
        runId:
          type: string
          format: guid
          description: The unique identifier for the queued run; use with the `listReportRuns` operation to poll status. Matches the `runId` field returned by `listReportRuns`.
    baseResponseEnvelope:
      type: object
      description: The common properties of responses
      additionalProperties: false
      properties:
        success:
          type: boolean
          description: Whether the request was successful
        message:
          type:
          - string
          - 'null'
          description: An optional message
        errors:
          type: array
          description: Any errors that occurred during the request
          default: []
          items:
            type: string
      required:
      - success
      - message
      - errors
    reportParameter:
      type: object
      description: 'A parameter that must be supplied when triggering a report. The `key`

        is passed in the `parameters` map of the trigger request, paired with

        one of the `options` values (or a free-form value if `options` is absent).

        '
      additionalProperties: false
      required:
      - key
      - description
      properties:
        key:
          type: string
          description: 'The parameter key to pass in the `parameters` map when triggering

            a report run. Treat as an opaque identifier defined by the report type.

            '
          example: report-period
        description:
          type: string
          description: Description of what this parameter controls.
          example: Report Period
        options:
          type:
          - array
          - 'null'
          description: 'When present, the value supplied for this parameter must be the `key`

            of one of these options. When absent, any string value is accepted.

            '
          items:
            $ref: '#/components/schemas/reportParameterOption'
    reportRunsResponse:
      type: object
      additionalProperties: false
      allOf:
      - $ref: '#/components/schemas/baseResponseEnvelope'
      - type: object
        required:
        - data
        properties:
          data:
            $ref: '#/components/schemas/reportRunsData'
    errorResponse:
      type: object
      description: The response to a request that failed
      additionalProperties: false
      allOf:
      - $ref: '#/components/schemas/baseResponseEnvelope'
      - type: object
        additionalProperties: false
        properties:
          data:
            type: object
            default: {}
          errorCode:
            type: string
            description: The error code for the failure
    triggerReportResponse:
      type: object
      additionalProperties: false
      allOf:
      - $ref: '#/components/schemas/baseResponseEnvelope'
      - type: object
        required:
        - data
        properties:
          data:
            $ref: '#/components/schemas/triggerReportData'
  responses:
    internalServerError:
      description: An unexpected error occurred
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
          examples:
            Internal Server Error:
              value:
                success: false
                message: Something went pop
                errors:
                - It was the weasel
    notFoundError:
      description: A response returned when a resource cannot be found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
          examples:
            notFoundError:
              value:
                success: false
                message: The resource 'derp' could not be found
                errors:
                - Could not find the magic
    invalidRequest:
      description: The request was invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
          examples:
            badRequest:
              value:
                success: false
                message: One or more validation errors occurred
                errors:
                - userId is required and must be a valid integer
    unauthorized:
      description: You are not authorized to access this endpoint
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
          examples:
            unauthorized:
              value:
                success: false
                message: Your credentials are invalid or you are not logged in
                errors:
                - Please verify your credentials
    forbidden:
      description: You are not permitted to carry out this operation
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
          examples:
            forbidden:
              value:
                success: false
                message: Client tenant verification failed
                errors:
                - First years are not permitted to access the Forbidden Forest
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Inf-Api-Key
      description: The API key for authentication.