whoisgeni-us Byok API

The byok API from whoisgeni-us — 2 operation(s) for byok.

Operations 3

GET /account/llm-keys List BYOK LLM API keys #
POST /account/llm-keys Save a BYOK LLM API key #
DELETE /account/llm-keys/{provider} Delete a BYOK LLM API key #

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/whoisgeni-us:whoisgeni-us-byok-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

whoisgeni-us-byok-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WhoisGenius Byok API
  description: 'Domain intelligence platform with AI-powered operator attribution Responses are JSON by default; request the compact, token-efficient TOON format with the `Accept: application/toon` header.'
  version: 0.1.0
tags:
- name: byok
paths:
  /account/llm-keys:
    get:
      tags:
      - byok
      summary: List BYOK LLM API keys
      description: 'List all active BYOK LLM API keys for the authenticated user.


        Never includes raw or encrypted key values in the response.'
      operationId: list_byok_keys_account_llm_keys_get
      responses:
        '200':
          description: Active keys for the authenticated user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_BYOKKeyListResponse_'
        '403':
          description: Tier insufficient — Team or higher required
        '401':
          description: Unauthorized — missing or invalid API key/JWT.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: 'null'
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: UNAUTHORIZED
                      message:
                        type: string
                  meta:
                    type: 'null'
      security:
      - HTTPBearer: []
    post:
      tags:
      - byok
      summary: Save a BYOK LLM API key
      description: 'Save (create or update) an encrypted BYOK LLM API key.


        Validates the key via a test inference call before persisting.

        One key per provider per user -- saving for an existing provider

        replaces the previous key.'
      operationId: save_byok_key_account_llm_keys_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveBYOKKeyRequest'
        required: true
      responses:
        '200':
          description: Saved key details (never includes raw key)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_BYOKKeyResponse_'
        '400':
          description: Unsupported provider
        '403':
          description: Tier insufficient — Team or higher required
        '422':
          description: Key validation failed (invalid/expired key)
        '401':
          description: Unauthorized — missing or invalid API key/JWT.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: 'null'
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: UNAUTHORIZED
                      message:
                        type: string
                  meta:
                    type: 'null'
      security:
      - HTTPBearer: []
  /account/llm-keys/{provider}:
    delete:
      tags:
      - byok
      summary: Delete a BYOK LLM API key
      description: 'Soft-delete a BYOK LLM API key by provider name.


        Returns 204 on success, 404 if no active key exists for the given provider.'
      operationId: delete_byok_key_account_llm_keys__provider__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          type: string
          title: Provider
      responses:
        '204':
          description: Deletion confirmation
        '403':
          description: Tier insufficient — Team or higher required
        '404':
          description: No active key found for this provider
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '401':
          description: Unauthorized — missing or invalid API key/JWT.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: 'null'
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        example: UNAUTHORIZED
                      message:
                        type: string
                  meta:
                    type: 'null'
components:
  schemas:
    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
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        details:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Details
      type: object
      required:
      - code
      - message
      title: ErrorDetail
      description: "Structured error information for API error responses.\n\nAttributes:\n    code: Machine-readable error code (e.g. \"JOB_NOT_FOUND\").\n    message: Human-readable error description.\n    details: Optional additional context for debugging."
      example:
        code: JOB_NOT_FOUND
        message: No job found with the given ID.
    BYOKKeyListResponse:
      properties:
        keys:
          items:
            $ref: '#/components/schemas/BYOKKeyResponse'
          type: array
          title: Keys
      type: object
      required:
      - keys
      title: BYOKKeyListResponse
      description: Response body listing all BYOK keys for a user.
    BYOKKeyResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        provider:
          type: string
          title: Provider
        key_prefix:
          type: string
          title: Key Prefix
        is_active:
          type: boolean
          title: Is Active
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        last_validated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Validated At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - provider
      - key_prefix
      - is_active
      - created_at
      - updated_at
      title: BYOKKeyResponse
      description: Response body for a single BYOK key. Never includes the raw or encrypted key.
    SaveBYOKKeyRequest:
      properties:
        provider:
          type: string
          title: Provider
          description: 'LLM provider name: "openai", "anthropic", "google", "mistral", "groq"'
        api_key:
          type: string
          minLength: 1
          title: Api Key
          description: Raw API key (will be encrypted server-side, never stored in plaintext)
      type: object
      required:
      - provider
      - api_key
      title: SaveBYOKKeyRequest
      description: Request body for saving (creating or updating) a BYOK LLM API key.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApiResponse_BYOKKeyListResponse_:
      properties:
        data:
          anyOf:
          - $ref: '#/components/schemas/BYOKKeyListResponse'
          - type: 'null'
        error:
          anyOf:
          - $ref: '#/components/schemas/ErrorDetail'
          - type: 'null'
        meta:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Meta
      type: object
      title: ApiResponse[BYOKKeyListResponse]
    ApiResponse_BYOKKeyResponse_:
      properties:
        data:
          anyOf:
          - $ref: '#/components/schemas/BYOKKeyResponse'
          - type: 'null'
        error:
          anyOf:
          - $ref: '#/components/schemas/ErrorDetail'
          - type: 'null'
        meta:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Meta
      type: object
      title: ApiResponse[BYOKKeyResponse]
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer