Conversor IAE CNAE Cuenta API

Alta de clave, suscripción a planes de pago y consulta de uso.

GitHub OpenAPI

Operations 4

POST /signup Crear una API key gratuita #
POST /subscribe Suscribirse a un plan de pago #
GET /usage Consultar uso de la API key #
POST /keys Rotar o revocar tu propia 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/conversoriaecnae-es:conversoriaecnae-es-cuenta-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

conversoriaecnae-es-cuenta-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Conversoriaecnae Es Cuenta API
  version: 1.0.0
  contact:
    name: Conversor IAE CNAE
    email: brian@conversoriaecnae.es
    url: https://www.conversoriaecnae.es/precios
  license:
    name: CC-BY-4.0
    url: https://creativecommons.org/licenses/by/4.0/
  termsOfService: https://www.conversoriaecnae.es/terminos-condiciones
  description: 'Operations tagged Cuenta across 2 of this provider''s published API definitions: conversoriaecnae-es-openapi.json, conversoriaecnae-es-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.conversoriaecnae.es/api/v1
  description: Producción
security:
- ApiKeyAuth: []
tags:
- name: Cuenta
  description: Alta de clave, suscripción a planes de pago y consulta de uso.
paths:
  /signup:
    post:
      operationId: createApiKey
      summary: Crear una API key gratuita
      description: Crea una API key y la envía por email. La primera clave de cada email empieza con 14 días de prueba Profesional (2.000 peticiones/día, sin tarjeta); después pasa al plan Gratis (250 peticiones/día). Endpoint público con límite de 5 peticiones/hora por IP. La clave se envía únicamente por email a la dirección indicada; la respuesta nunca la incluye. Te enviaremos emails sobre tu clave y, si te corresponde, tu prueba de 14 días. Puedes darte de baja en cualquier momento desde cualquier email.
      tags:
      - Cuenta
      security: []
      parameters:
      - name: source
        in: query
        required: false
        description: Atribución de canal de alta (p. ej. `docs`, `homepage_cta`). Máx. 64 caracteres.
        schema:
          type: string
          maxLength: 64
          example: docs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignupRequest'
      responses:
        '200':
          description: API key creada y enviada por email
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignupResponse'
        '400':
          $ref: '#/components/responses/BadRequestPublic'
        '409':
          description: Este email ya tiene una API key activa.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '429':
          $ref: '#/components/responses/RateLimitedPublic'
        '500':
          $ref: '#/components/responses/ServerErrorPublic'
    servers:
    - url: https://www.conversoriaecnae.es/api/v1
      description: Producción
  /subscribe:
    post:
      operationId: createSubscription
      summary: Suscribirse a un plan de pago
      description: Crea una sesión de Stripe Checkout para un plan de pago (Profesional o Empresa) y devuelve la URL de pago. Endpoint público con límite por IP.
      tags:
      - Cuenta
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscribeRequest'
      responses:
        '200':
          description: Sesión de Checkout creada
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscribeResponse'
        '400':
          $ref: '#/components/responses/BadRequestPublic'
        '429':
          $ref: '#/components/responses/RateLimitedPublic'
        '500':
          $ref: '#/components/responses/ServerErrorPublic'
    servers:
    - url: https://www.conversoriaecnae.es/api/v1
      description: Producción
  /usage:
    get:
      operationId: getUsage
      summary: Consultar uso de la API key
      description: Devuelve el uso actual de la clave (consumo del día, límite, plan, endpoints más usados). No consume cuota diaria. Requiere la cabecera `X-API-Key`. Tiene límite por IP para evitar enumeración de claves.
      tags:
      - Cuenta
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Estado de uso de la clave
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedPublic'
        '403':
          description: API key desactivada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicError'
        '429':
          $ref: '#/components/responses/RateLimitedPublic'
        '500':
          $ref: '#/components/responses/ServerErrorPublic'
    servers:
    - url: https://www.conversoriaecnae.es/api/v1
      description: Producción
  /keys:
    post:
      operationId: rotateOrRevokeApiKey
      summary: Rotar o revocar tu propia API key
      description: 'Permite al titular de una clave rotarla (genera una clave nueva; la anterior deja de funcionar de inmediato) o revocarla (desactivación inmediata) sin pasar por soporte. Autenticación por posesión: se valida la cabecera `X-API-Key` con la clave ACTUAL — no se admite ninguna otra credencial ni sesión. Disponible para cualquier plan. La clave nueva devuelta en `rotate` solo se muestra una vez en la respuesta: no se reenvía por email ni se registra en logs. Límite de 30 peticiones/hora por IP.'
      tags:
      - Cuenta
      security:
      - ApiKeyAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KeysRequest'
      responses:
        '200':
          description: Acción aplicada correctamente
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeysResponse'
        '400':
          $ref: '#/components/responses/BadRequestPublic'
        '401':
          $ref: '#/components/responses/UnauthorizedPublic'
        '429':
          $ref: '#/components/responses/RateLimitedPublic'
        '500':
          $ref: '#/components/responses/ServerErrorPublic'
    servers:
    - url: https://www.conversoriaecnae.es/api/v1
      description: Producción
components:
  responses:
    RateLimitedPublic:
      description: Demasiadas peticiones desde tu IP. Reintenta más tarde.
      headers:
        Retry-After:
          description: Segundos sugeridos hasta el siguiente reintento (cuando aplica).
          schema:
            type: integer
            example: 3600
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PublicError'
    BadRequestPublic:
      description: Petición inválida (datos o cuerpo mal formado).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PublicError'
    ServerErrorPublic:
      description: Error interno del servidor.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PublicError'
    UnauthorizedPublic:
      description: Clave ausente, con formato inválido, o no encontrada.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PublicError'
  schemas:
    PublicError:
      type: object
      description: Cuerpo de error de endpoints públicos / de cuenta.
      required:
      - success
      - error
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Datos inválidos.
        fields:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Errores de validación por campo (cuando aplica).
    SignupResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Te hemos enviado tu API key por email. Revisa tu correo (y la carpeta de spam si no la ves en unos minutos). Te enviaremos emails sobre tu clave y, si te corresponde, tu prueba de 14 días. Puedes darte de baja en cualquier momento desde cualquier email.
          description: La API key se entrega únicamente por email; la respuesta nunca la incluye.
    SubscribeRequest:
      type: object
      required:
      - email
      - name
      - plan
      properties:
        email:
          type: string
          format: email
          maxLength: 254
          example: dev@ejemplo.es
        name:
          type: string
          minLength: 1
          maxLength: 100
          example: Ana García
        plan:
          type: string
          enum:
          - profesional
          - empresa
          example: profesional
        billing_cycle:
          type: string
          enum:
          - monthly
          - annual
          default: monthly
          example: monthly
        utm_source:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^[a-z0-9_-]+$
          example: landing_api
        email_lead_id:
          type: string
          format: uuid
    KeysRequest:
      type: object
      required:
      - action
      properties:
        action:
          type: string
          enum:
          - rotate
          - revoke
          example: rotate
          description: 'Acción a realizar: rotate (genera una clave nueva) o revoke (desactiva la clave actual).'
    UsageResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            plan:
              type: string
              example: free
            requests_used_today:
              type: integer
              example: 12
            rate_limit_per_day:
              type: integer
              example: 250
            remaining_today:
              type: integer
              example: 238
            is_active:
              type: boolean
              example: true
            created_at:
              type: string
              format: date-time
              example: '2026-05-01T10:00:00Z'
            last_used_at:
              type:
              - string
              - 'null'
              format: date-time
              example: '2026-06-02T09:15:00Z'
            top_endpoints:
              type: array
              items:
                type: object
                properties:
                  endpoint:
                    type: string
                    example: /api/v1/search
                  count:
                    type: integer
                    example: 8
    SignupRequest:
      type: object
      required:
      - email
      - name
      - terms_accepted
      properties:
        email:
          type: string
          format: email
          maxLength: 254
          example: dev@ejemplo.es
        name:
          type: string
          minLength: 1
          maxLength: 100
          example: Ana García
        terms_accepted:
          type: boolean
          enum:
          - true
          example: true
          description: Debe ser `true`; aceptación de los términos de uso.
    KeysResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        api_key:
          type: string
          example: cvr_z9y8x7w6v5u4t3s2r1q0p9o8n7m6l5k4
          description: Presente solo cuando action=rotate. Clave nueva completa, se devuelve una única vez.
        message:
          type: string
          example: 'Clave rotada. Guárdala: no se vuelve a mostrar.'
    SubscribeResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        url:
          type: string
          format: uri
          description: URL de Stripe Checkout.
          example: https://checkout.stripe.com/c/pay/cs_test_...
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Clave de API con prefijo `cvr_`. Obtén una gratis en POST /signup.
x-refined-from:
- conversoriaecnae-es-openapi.json
- conversoriaecnae-es-openapi.yml