SecureAuth (incl. Cloudentity) User Metrics API

The UserMetrics API from SecureAuth (incl. Cloudentity) — 4 operation(s) for usermetrics.

Operations 4

GET /pools/{ipID}/users/{userID}/access-tokens Query access tokens #
GET /pools/{ipID}/users/{userID}/authentications Query authentications #
GET /pools/{ipID}/users/{userID}/authentications/{group} Query authentications by group #
GET /pools/{ipID}/users/{userID}/loa Query level of assurance #

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/secureauth:secureauth-usermetrics-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

secureauth-usermetrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'SecureAuth Analytics API


    The SecureAuth Analytics APIs provide a robust solution for capturing and analyzing metrics related to various operational aspects including access token minting, policy validations, OTP validations, authorizer validations, and HTTP metrics, among others.'
  title: SecureAuth User Metrics API
  version: latest
servers:
- url: https://localhost:8443/api/analytics/default
tags:
- name: UserMetrics
paths:
  /pools/{ipID}/users/{userID}/access-tokens:
    get:
      description: Query access token data points.
      operationId: userSingleAccessTokenMetrics
      parameters:
      - in: path
        name: ipID
        required: true
        schema:
          type: string
      - in: path
        name: userID
        required: true
        schema:
          type: string
      - description: From
        in: query
        name: from
        schema:
          type: string
      - description: To
        in: query
        name: to
        schema:
          type: string
      - description: Bucket
        in: query
        name: bucket
        schema:
          type: string
          enum:
          - auto
          - all
          - 1m
          - 5m
          - 15m
          - 30m
          - 1h
          - 3h
          - 6h
          - 12h
          - 1d
          - 1w
          - 1M
          - 3M
          - 6M
          - 1Y
          default: auto
      - description: Origin
        in: query
        name: origin
        schema:
          type: string
          format: date-time
      - description: A server will only return requested resources if the resource matches one of the listed ETag value
        in: header
        name: if-match
        schema:
          type: string
          format: etag
      - description: Unique identifier included in audit events for request tracking
        in: header
        name: x-correlation-id
        schema:
          type: string
      - description: Key used to safely retry failed requests without duplicate processing
        in: header
        name: x-idempotency-key
        schema:
          type: string
      - description: Function
        in: query
        name: function
        schema:
          type: string
          enum:
          - count
          - count_recovery
          - recovery_friction
          - unique
          - unique_clients
          - unique_users
          default: count
      responses:
        '200':
          $ref: '#/components/responses/DataPoints'
        '400':
          $ref: '#/components/responses/badRequestHTTPError'
        '401':
          $ref: '#/components/responses/unauthorizedHTTPError'
        '403':
          $ref: '#/components/responses/forbiddenHTTPError'
        '429':
          $ref: '#/components/responses/tooManyRequestsHTTPError'
      security:
      - admin: []
      summary: Query access tokens
      tags:
      - UserMetrics
  /pools/{ipID}/users/{userID}/authentications:
    get:
      description: Query authentication data points.
      operationId: userSingleAuthenticationMetrics
      parameters:
      - in: path
        name: ipID
        required: true
        schema:
          type: string
      - in: path
        name: userID
        required: true
        schema:
          type: string
      - description: From
        in: query
        name: from
        schema:
          type: string
      - description: To
        in: query
        name: to
        schema:
          type: string
      - description: Bucket
        in: query
        name: bucket
        schema:
          type: string
          enum:
          - auto
          - all
          - 1m
          - 5m
          - 15m
          - 30m
          - 1h
          - 3h
          - 6h
          - 12h
          - 1d
          - 1w
          - 1M
          - 3M
          - 6M
          - 1Y
          default: auto
      - description: Origin
        in: query
        name: origin
        schema:
          type: string
          format: date-time
      - description: A server will only return requested resources if the resource matches one of the listed ETag value
        in: header
        name: if-match
        schema:
          type: string
          format: etag
      - description: Unique identifier included in audit events for request tracking
        in: header
        name: x-correlation-id
        schema:
          type: string
      - description: Key used to safely retry failed requests without duplicate processing
        in: header
        name: x-idempotency-key
        schema:
          type: string
      - description: Function
        in: query
        name: function
        schema:
          type: string
          enum:
          - count
          default: count
      responses:
        '200':
          $ref: '#/components/responses/DataPoints'
        '400':
          $ref: '#/components/responses/badRequestHTTPError'
        '401':
          $ref: '#/components/responses/unauthorizedHTTPError'
        '403':
          $ref: '#/components/responses/forbiddenHTTPError'
        '429':
          $ref: '#/components/responses/tooManyRequestsHTTPError'
      security:
      - admin: []
      summary: Query authentications
      tags:
      - UserMetrics
  /pools/{ipID}/users/{userID}/authentications/{group}:
    get:
      description: Query authentication data points by group.
      operationId: userAggregatedAuthenticationMetrics
      parameters:
      - in: path
        name: ipID
        required: true
        schema:
          type: string
      - in: path
        name: userID
        required: true
        schema:
          type: string
      - description: From
        in: query
        name: from
        schema:
          type: string
      - description: To
        in: query
        name: to
        schema:
          type: string
      - description: Bucket
        in: query
        name: bucket
        schema:
          type: string
          enum:
          - auto
          - all
          - 1m
          - 5m
          - 15m
          - 30m
          - 1h
          - 3h
          - 6h
          - 12h
          - 1d
          - 1w
          - 1M
          - 3M
          - 6M
          - 1Y
          default: auto
      - description: Origin
        in: query
        name: origin
        schema:
          type: string
          format: date-time
      - description: Filter by result (works only for grouping by method)
        in: query
        name: result
        schema:
          type: string
      - description: Filter by method (works only for grouping by result)
        in: query
        name: method
        schema:
          type: string
      - description: A server will only return requested resources if the resource matches one of the listed ETag value
        in: header
        name: if-match
        schema:
          type: string
          format: etag
      - description: Unique identifier included in audit events for request tracking
        in: header
        name: x-correlation-id
        schema:
          type: string
      - description: Key used to safely retry failed requests without duplicate processing
        in: header
        name: x-idempotency-key
        schema:
          type: string
      - description: Function
        in: query
        name: function
        schema:
          type: string
          enum:
          - count
          default: count
      - description: Group by
        in: path
        name: group
        required: true
        schema:
          type: string
          enum:
          - result
          - method
          - device_type
          - device_os
          - device_browser
          - grid_1_0
          - grid_5_0
          default: result
      responses:
        '200':
          $ref: '#/components/responses/AggregatedDataPoints'
        '400':
          $ref: '#/components/responses/badRequestHTTPError'
        '401':
          $ref: '#/components/responses/unauthorizedHTTPError'
        '403':
          $ref: '#/components/responses/forbiddenHTTPError'
        '429':
          $ref: '#/components/responses/tooManyRequestsHTTPError'
      security:
      - admin: []
      summary: Query authentications by group
      tags:
      - UserMetrics
  /pools/{ipID}/users/{userID}/loa:
    get:
      description: Query level of assurance.
      operationId: userSingleLOAMetrics
      parameters:
      - in: path
        name: ipID
        required: true
        schema:
          type: string
      - in: path
        name: userID
        required: true
        schema:
          type: string
      - description: From
        in: query
        name: from
        schema:
          type: string
      - description: To
        in: query
        name: to
        schema:
          type: string
      - description: Bucket
        in: query
        name: bucket
        schema:
          type: string
          enum:
          - auto
          - all
          - 1m
          - 5m
          - 15m
          - 30m
          - 1h
          - 3h
          - 6h
          - 12h
          - 1d
          - 1w
          - 1M
          - 3M
          - 6M
          - 1Y
          default: auto
      - description: Origin
        in: query
        name: origin
        schema:
          type: string
          format: date-time
      - description: A server will only return requested resources if the resource matches one of the listed ETag value
        in: header
        name: if-match
        schema:
          type: string
          format: etag
      - description: Unique identifier included in audit events for request tracking
        in: header
        name: x-correlation-id
        schema:
          type: string
      - description: Key used to safely retry failed requests without duplicate processing
        in: header
        name: x-idempotency-key
        schema:
          type: string
      - description: Function
        in: query
        name: function
        schema:
          type: string
          enum:
          - average
          default: average
      responses:
        '200':
          $ref: '#/components/responses/DataPoints'
        '400':
          $ref: '#/components/responses/badRequestHTTPError'
        '401':
          $ref: '#/components/responses/unauthorizedHTTPError'
        '403':
          $ref: '#/components/responses/forbiddenHTTPError'
        '429':
          $ref: '#/components/responses/tooManyRequestsHTTPError'
      security:
      - admin: []
      summary: Query level of assurance
      tags:
      - UserMetrics
components:
  schemas:
    DataPoints:
      properties:
        bucket:
          type: string
        data:
          items:
            $ref: '#/components/schemas/SingleDataPoint'
          type: array
      type: object
    AggregatedDataPoints:
      properties:
        bucket:
          type: string
        data:
          items:
            $ref: '#/components/schemas/AggregatedDataPoint'
          type: array
      type: object
    SingleDataPoint:
      properties:
        timestamp:
          format: date-time
          type: string
        value:
          format: double
          type: number
      type: object
    Error:
      description: HTTP error response
      properties:
        details:
          type: object
        error:
          type: string
        error_code:
          type: string
        status_code:
          format: int64
          type: integer
      type: object
    AggregatedDataPoint:
      properties:
        timestamp:
          format: date-time
          type: string
        values:
          additionalProperties:
            format: double
            type: number
          type: object
      type: object
  responses:
    forbiddenHTTPError:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
        text/csv:
          schema:
            $ref: '#/components/schemas/Error'
    unauthorizedHTTPError:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
        text/csv:
          schema:
            $ref: '#/components/schemas/Error'
    DataPoints:
      description: Data points
      headers:
        etag:
          description: 'The ETag HTTP header is an identifier for a specific version of a resource


            in:header'
          schema:
            type: string
            format: etag
        x-external-error:
          description: 'Indicates that a 5xx error was caused by tenant-provided code


            in:header'
          schema:
            type: string
        x-trace-id:
          description: 'OpenTelemetry trace identifier


            in:header'
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DataPoints'
        text/csv:
          schema:
            $ref: '#/components/schemas/DataPoints'
    AggregatedDataPoints:
      description: Aggregated data points
      headers:
        etag:
          description: 'The ETag HTTP header is an identifier for a specific version of a resource


            in:header'
          schema:
            type: string
            format: etag
        x-external-error:
          description: 'Indicates that a 5xx error was caused by tenant-provided code


            in:header'
          schema:
            type: string
        x-trace-id:
          description: 'OpenTelemetry trace identifier


            in:header'
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AggregatedDataPoints'
        text/csv:
          schema:
            $ref: '#/components/schemas/AggregatedDataPoints'
    tooManyRequestsHTTPError:
      description: Too many requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
        text/csv:
          schema:
            $ref: '#/components/schemas/Error'
    badRequestHTTPError:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
        text/csv:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    admin:
      type: oauth2
      flows:
        clientCredentials:
          scopes: {}
          tokenUrl: /default/admin/oauth2/token