AimRank Security API

The Security API from AimRank — 4 operation(s) for security.

Operations 4

POST /api/v1/security/2fa/setup Setup 2Fa #
POST /api/v1/security/2fa/verify Verify 2Fa #
POST /api/v1/security/2fa/disable Disable 2Fa #
GET /api/v1/security/audit-log Get Audit Log #

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/aimrank-io:aimrank-io-security-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

aimrank-io-security-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AimRank Security API
  description: Ranking-as-a-Service API — Turn binary comparisons into calibrated rankings with Glicko-2, Bradley-Terry, TrueSkill, and cross-domain transfer learning. Includes webhooks, API keys, RLHF exports, and embeddable widgets.
  version: 4.12.0
tags:
- name: Security
paths:
  /api/v1/security/2fa/setup:
    post:
      tags:
      - Security
      summary: Setup 2Fa
      description: 'Generate a TOTP secret and QR code. Does NOT enable 2FA yet — call /verify next.


        Switched off: login does not yet enforce a second factor (see module

        docstring), so enrolling would promise protection that does not exist.'
      operationId: setup_2fa_api_v1_security_2fa_setup_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Setup2FAResponse'
  /api/v1/security/2fa/verify:
    post:
      tags:
      - Security
      summary: Verify 2Fa
      description: Verify a TOTP code and enable 2FA. Must call /setup first.
      operationId: verify_2fa_api_v1_security_2fa_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Verify2FARequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/security/2fa/disable:
    post:
      tags:
      - Security
      summary: Disable 2Fa
      description: Disable 2FA. Requires current TOTP code + password for security.
      operationId: disable_2fa_api_v1_security_2fa_disable_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Disable2FARequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/security/audit-log:
    get:
      tags:
      - Security
      summary: Get Audit Log
      description: Get paginated audit log for the current user.
      operationId: get_audit_log_api_v1_security_audit_log_get
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: integer
          default: 1
          title: Page
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Setup2FAResponse:
      properties:
        secret:
          type: string
          title: Secret
        qr_code_data_url:
          type: string
          title: Qr Code Data Url
        manual_entry_key:
          type: string
          title: Manual Entry Key
      type: object
      required:
      - secret
      - qr_code_data_url
      - manual_entry_key
      title: Setup2FAResponse
    Disable2FARequest:
      properties:
        code:
          type: string
          title: Code
        password:
          type: string
          title: Password
      type: object
      required:
      - code
      - password
      title: Disable2FARequest
    Verify2FARequest:
      properties:
        code:
          type: string
          title: Code
      type: object
      required:
      - code
      title: Verify2FARequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key