Timbrix API Keys API

API Keys management and validation

GitHub OpenAPI

Operations 7

GET /organizations/{organizationId}/api-keys List organization API keys #
POST /organizations/{organizationId}/api-keys Create API key #
GET /organizations/{organizationId}/api-keys/stats Get API key statistics #
GET /organizations/{organizationId}/api-keys/{id} Get API key by ID #
PUT /organizations/{organizationId}/api-keys/{id} Update API key #
DELETE /organizations/{organizationId}/api-keys/{id} Delete API key #
POST /api-keys/validate Validate 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/timbrix-mx:timbrix-mx-api-keys-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

timbrix-mx-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Timbrix API Keys API
  description: 'API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2 para gestionar organizaciones, miembros y webhooks. Compatible con agentes de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and webhooks.'
  version: '1.0'
  contact: {}
servers: []
tags:
- name: API Keys
  description: API Keys management and validation
paths:
  /organizations/{organizationId}/api-keys:
    get:
      description: List the API keys of an organization (requires authentication). Owners and admins see every key; members only see the keys they created.
      operationId: ApiKeysController_listByOrganization
      parameters:
      - name: organizationId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: API keys retrieved successfully
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. User is not a member of this organization.
      security:
      - bearer: []
      summary: List organization API keys
      tags:
      - API Keys
    post:
      description: 'Create a new API key for an organization. Plain key is returned only once! Owners and admins can create sandbox or production keys (default production). Members can only create sandbox keys with a limited set of scopes and must send environment: ''sandbox''.'
      operationId: ApiKeysController_create
      parameters:
      - name: organizationId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKeyDto'
      responses:
        '201':
          description: API key created successfully. Save the plain key securely!
        '400':
          description: Invalid input data. Check the validation errors in the response.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: 'Access denied. The organization is closed, or a member asked for a production key, did not send environment: ''sandbox'', or asked for a scope outside the member list.'
      security:
      - bearer: []
      summary: Create API key
      tags:
      - API Keys
  /organizations/{organizationId}/api-keys/stats:
    get:
      description: Get usage statistics for the API keys of an organization. Members only get the statistics of the keys they created.
      operationId: ApiKeysController_getStats
      parameters:
      - name: organizationId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Statistics retrieved successfully
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. User is not a member of this organization.
      security:
      - bearer: []
      summary: Get API key statistics
      tags:
      - API Keys
  /organizations/{organizationId}/api-keys/{id}:
    get:
      description: Retrieve details of a specific API key
      operationId: ApiKeysController_getById
      parameters:
      - name: organizationId
        required: true
        in: path
        schema:
          type: string
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: API key retrieved successfully
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. User is not a member of this organization.
        '404':
          description: API key not found
      security:
      - bearer: []
      summary: Get API key by ID
      tags:
      - API Keys
    put:
      description: Update API key settings (name, scopes, rate limits, etc.)
      operationId: ApiKeysController_update
      parameters:
      - name: organizationId
        required: true
        in: path
        schema:
          type: string
      - name: id
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateApiKeyDto'
      responses:
        '200':
          description: API key updated successfully
        '400':
          description: Invalid input data. Check the validation errors in the response.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. Only owners and admins can update API keys.
        '404':
          description: API key not found
      security:
      - bearer: []
      summary: Update API key
      tags:
      - API Keys
    delete:
      description: Permanently delete an API key
      operationId: ApiKeysController_delete
      parameters:
      - name: organizationId
        required: true
        in: path
        schema:
          type: string
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '204':
          description: API key deleted successfully
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. The organization is closed, or a member tried to delete a production key. Members can only delete the sandbox keys they created; any other key is reported as not found.
        '404':
          description: API key not found
      security:
      - bearer: []
      summary: Delete API key
      tags:
      - API Keys
  /api-keys/validate:
    post:
      description: Test endpoint to validate API key authentication and scopes. Use X-API-Key header.
      operationId: ApiKeysController_validate
      parameters: []
      responses:
        '200':
          description: API key is valid and active
        '401':
          description: Invalid or expired API key
        '403':
          description: API key does not have required scopes
      security:
      - apiKey: []
      summary: Validate API key
      tags:
      - API Keys
components:
  schemas:
    CreateApiKeyDto:
      type: object
      properties:
        name:
          type: string
          description: API key name
          example: Production API Key
          minLength: 3
          maxLength: 50
        description:
          type: string
          description: API key description
          example: Used for production server
          maxLength: 200
        environment:
          type: string
          description: 'Environment of the key. Owners and admins default to ''production''. Members can only create ''sandbox'' keys with a limited set of scopes, and must send environment: ''sandbox'' explicitly.'
          enum:
          - sandbox
          - production
          default: production
          example: sandbox
        scopes:
          type: array
          description: API key scopes (permissions). Defaults to ['read:user'] if not provided
          example:
          - read:user
          - write:webhooks
          items:
            type: string
            enum:
            - read:user
            - write:user
            - read:organization
            - write:organization
            - read:members
            - write:members
            - read:webhooks
            - write:webhooks
            - read:api-keys
            - write:api-keys
            - read:invoices
            - write:invoices
            - read:customers
            - write:customers
            - read:products
            - write:products
            - read:request-logs
            - read:audit-logs
        rateLimitPerMinute:
          type: number
          description: 'Requests per minute for this key. Optional: omitted means the plan limit. Can only lower the plan limit.'
          example: 30
          minimum: 1
          maximum: 10000
        rateLimitPerHour:
          type: number
          description: 'Requests per hour for this key. Optional: omitted means no hourly limit (only the plan limit applies).'
          example: 1000
          minimum: 1
          maximum: 100000
        allowedIps:
          description: Allowed IP addresses (CIDR notation supported)
          example:
          - 192.168.1.1
          - 10.0.0.0/24
          type: array
          items:
            type: string
        expiresAt:
          type: string
          description: Expiration date
          example: '2025-12-31T23:59:59Z'
      required:
      - name
    UpdateApiKeyDto:
      type: object
      properties:
        name:
          type: string
          description: API key name
          example: Production API Key
          minLength: 3
          maxLength: 50
        description:
          type: string
          description: API key description
          example: Used for production server
          maxLength: 200
        scopes:
          type: array
          description: API key scopes (permissions). Defaults to ['read:user'] if not provided
          example:
          - read:user
          - write:webhooks
          items:
            type: string
            enum:
            - read:user
            - write:user
            - read:organization
            - write:organization
            - read:members
            - write:members
            - read:webhooks
            - write:webhooks
            - read:api-keys
            - write:api-keys
            - read:invoices
            - write:invoices
            - read:customers
            - write:customers
            - read:products
            - write:products
            - read:request-logs
            - read:audit-logs
        allowedIps:
          description: Allowed IP addresses (CIDR notation supported)
          example:
          - 192.168.1.1
          - 10.0.0.0/24
          type: array
          items:
            type: string
        expiresAt:
          type: string
          description: Expiration date
          example: '2025-12-31T23:59:59Z'
        rateLimitPerMinute:
          type:
          - number
          - 'null'
          description: Requests per minute for this key. Can only lower the plan limit. Send null to remove it and use the plan limit.
          example: 30
          minimum: 1
          maximum: 10000
        rateLimitPerHour:
          type:
          - number
          - 'null'
          description: Requests per hour for this key. Send null to remove it and use the plan limit.
          example: 1000
          minimum: 1
          maximum: 100000
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key for authentication (sk_test_... for sandbox, sk_live_... for production)
x-ai-agent-friendly: true