Normatia Proyectos API

Los proyectos de la organización de la clave y su contexto.

GitHub OpenAPI

Operations 2

GET /api/v1/project/info Información de un proyecto #
GET /api/v1/projects Proyectos accesibles del usuario #

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/normatia-com:normatia-com-proyectos-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

normatia-com-proyectos-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Normatia Proyectos API
  version: 1.0.0
  description: 'API de normativa de edificación española: el catálogo normativo, la normativa que aplica a cada territorio, el contexto de tus proyectos y consultas en lenguaje natural con sus fuentes. La documentación completa está en https://docs.normatia.com.'
  contact:
    name: Normatia
    email: hola@normatia.com
    url: https://docs.normatia.com
servers:
- url: https://api.normatia.com
  description: Producción
security:
- claveApi: []
tags:
- name: Proyectos
  description: Los proyectos de la organización de la clave y su contexto.
paths:
  /api/v1/project/info:
    get:
      tags:
      - Proyectos
      summary: Información de un proyecto
      description: 'Devuelve el contexto completo de un proyecto: ubicación geográfica, datos técnicos del territorio (zona climática, viento, nieve, sísmica...), descripción del proyecto, normativas aplicables y archivos subidos. Sin `project_id` responde sobre el proyecto activo del usuario.'
      operationId: getProjectInfo
      parameters:
      - name: project_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Proyecto concreto sobre el que informar. Si se omite se usa el proyecto activo del usuario.
          title: Project Id
        description: Proyecto concreto sobre el que informar. Si se omite se usa el proyecto activo del usuario.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectInfoResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '401':
          description: Falta la clave, no es válida o está revocada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: La organización de la clave no tiene activada la API, o la clave no tiene el permiso de la ruta (insufficient_scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Límite por minuto superado (con Retry-After) o cupo del mes agotado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Error interno. Indica el X-Request-Id si escribes a soporte.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v1/projects:
    get:
      tags:
      - Proyectos
      summary: Proyectos accesibles del usuario
      description: Lista los proyectos a los que el usuario tiene acceso, con su ubicación y cuál está marcado como activo. Sirve para obtener el `project_id` que se pasa a `/api/v1/project/info` y a las consultas, y así trabajar sobre un proyecto concreto sin cambiar el activo en la web.
      operationId: listProjects
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectListResponse'
        '401':
          description: Falta la clave, no es válida o está revocada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: La organización de la clave no tiene activada la API, o la clave no tiene el permiso de la ruta (insufficient_scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Límite por minuto superado (con Retry-After) o cupo del mes agotado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Error interno. Indica el X-Request-Id si escribes a soporte.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      description: 'Error de las rutas /api/v1 y /api/v2: el código va en `detail.error`.'
      required:
      - detail
      properties:
        detail:
          type: object
          required:
          - error
          properties:
            error:
              type: string
              example: api_not_enabled
            message:
              type: string
            request_id:
              type: string
          additionalProperties: true
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ProjectInfoResponse:
      properties:
        project_id:
          type: string
          title: Project Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        is_active:
          type: boolean
          title: Is Active
          description: Si es el proyecto activo del usuario en la web
          default: false
        project_description:
          type: string
          title: Project Description
        geo_context:
          anyOf:
          - $ref: '#/components/schemas/ProjectInfoGeo'
          - type: 'null'
        collection_count:
          type: integer
          title: Collection Count
        file_count:
          type: integer
          title: File Count
        files:
          items:
            type: string
          type: array
          title: Files
          default: []
        collections:
          items:
            $ref: '#/components/schemas/ProjectInfoCollection'
          type: array
          title: Collections
          default: []
        unselected_collections:
          items:
            $ref: '#/components/schemas/ProjectInfoUnselectedCollection'
          type: array
          title: Unselected Collections
          default: []
        generated_documents:
          items:
            $ref: '#/components/schemas/ProjectInfoDocument'
          type: array
          title: Generated Documents
          default: []
        memory:
          items:
            $ref: '#/components/schemas/ProjectInfoMemoryFact'
          type: array
          title: Memory
          default: []
        calculations:
          items:
            $ref: '#/components/schemas/ProjectInfoCalculation'
          type: array
          title: Calculations
          default: []
        available_calculators:
          items:
            $ref: '#/components/schemas/ProjectInfoCalculator'
          type: array
          title: Available Calculators
          default: []
      type: object
      required:
      - project_id
      - project_description
      - collection_count
      - file_count
      title: ProjectInfoResponse
      description: Respuesta del endpoint de información de proyecto
    ProjectInfoCollection:
      properties:
        slug:
          type: string
          title: Slug
        title:
          type: string
          title: Title
        scope:
          type: string
          title: Scope
        scope_label:
          type: string
          title: Scope Label
        version:
          anyOf:
          - type: string
          - type: 'null'
          title: Version
          description: 'Versión vigente de la normativa. Es la única respuesta válida a qué edición se aplica: no debe deducirse de otra fuente.'
      type: object
      required:
      - slug
      - title
      - scope
      - scope_label
      title: ProjectInfoCollection
      description: Normativa aplicable al proyecto
    ProjectListItem:
      properties:
        project_id:
          type: string
          title: Project Id
        name:
          type: string
          title: Name
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        geo_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Geo Id
        location:
          anyOf:
          - type: string
          - type: 'null'
          title: Location
          description: Nombre del municipio/territorio del proyecto
        collection_count:
          type: integer
          title: Collection Count
          default: 0
        file_count:
          type: integer
          title: File Count
          default: 0
        is_active:
          type: boolean
          title: Is Active
          description: 'Proyecto activo del usuario: el que se usa si no se indica project_id'
          default: false
      type: object
      required:
      - project_id
      - name
      title: ProjectListItem
      description: Un proyecto en la lista de proyectos accesibles del usuario
    ProjectInfoCalculator:
      properties:
        calculator_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Calculator Id
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
      type: object
      title: ProjectInfoCalculator
      description: Calculadora disponible en Normatia (la rellena el usuario, no el agente)
    ProjectInfoGeo:
      properties:
        geo_id:
          type: string
          title: Geo Id
        name:
          type: string
          title: Name
        level:
          type: string
          title: Level
        ancestors:
          type: string
          title: Ancestors
          default: ''
        climate_zone:
          anyOf:
          - type: string
          - type: 'null'
          title: Climate Zone
        tech_data_summary:
          type: string
          title: Tech Data Summary
          default: ''
      type: object
      required:
      - geo_id
      - name
      - level
      title: ProjectInfoGeo
      description: Contexto geográfico resumido para get_project_info
    ProjectInfoDocument:
      properties:
        titulo:
          anyOf:
          - type: string
          - type: 'null'
          title: Titulo
        tipo:
          anyOf:
          - type: string
          - type: 'null'
          title: Tipo
        version:
          anyOf:
          - type: integer
          - type: 'null'
          title: Version
      type: object
      title: ProjectInfoDocument
      description: Documento generado por el asistente en el proyecto
    ProjectInfoMemoryFact:
      properties:
        key:
          anyOf:
          - type: string
          - type: 'null'
          title: Key
        label:
          anyOf:
          - type: string
          - type: 'null'
          title: Label
        value:
          anyOf:
          - type: string
          - type: 'null'
          title: Value
        unit:
          anyOf:
          - type: string
          - type: 'null'
          title: Unit
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
      type: object
      title: ProjectInfoMemoryFact
      description: Dato que el usuario aportó sobre su obra (memoria del proyecto)
    ProjectInfoUnselectedCollection:
      properties:
        slug:
          anyOf:
          - type: string
          - type: 'null'
          title: Slug
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        scope:
          anyOf:
          - type: string
          - type: 'null'
          title: Scope
      type: object
      title: ProjectInfoUnselectedCollection
      description: Normativa aplicable al territorio que el proyecto NO tiene seleccionada
    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
    ProjectInfoCalculation:
      properties:
        calculation_id:
          type: string
          title: Calculation Id
        calculator_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Calculator Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        summary:
          anyOf:
          - type: string
          - type: 'null'
          title: Summary
        compliant:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Compliant
      type: object
      required:
      - calculation_id
      title: ProjectInfoCalculation
      description: Cálculo que el usuario guardó con las calculadoras de Normatia
    ProjectListResponse:
      properties:
        projects:
          items:
            $ref: '#/components/schemas/ProjectListItem'
          type: array
          title: Projects
          default: []
        total:
          type: integer
          title: Total
          default: 0
      type: object
      title: ProjectListResponse
      description: Respuesta del endpoint de listado de proyectos
  securitySchemes:
    claveApi:
      type: http
      scheme: bearer
      description: 'La clave de API de tu organización: `Authorization: Bearer sk-normatia-...`. Se crea en normatia.com, Mi cuenta > Claves API.'