> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notiq.online/llms.txt
> Use this file to discover all available pages before exploring further.

# Añadir un recurso (enlace)

> Requiere el scope `write`.



## OpenAPI

````yaml https://notiq.online/openapi.json post /api/v1/teams/{teamId}/resources
openapi: 3.1.0
info:
  title: Notiq API
  version: 1.0.0
  description: >-
    API para leer y escribir en Notiq desde scripts, agentes y editores con IA.
    Se autentica con una API key (Authorization: Bearer) o con un token OAuth.
    También existe un servidor MCP en /api/mcp.
servers:
  - url: https://notiq.online
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{teamId}/resources:
    post:
      tags:
        - Recursos
      summary: Añadir un recurso (enlace)
      description: Requiere el scope `write`.
      parameters:
        - in: path
          name: teamId
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  minLength: 1
                  maxLength: 300
                url:
                  type: string
                  format: uri
                type:
                  type: string
                  enum:
                    - PDF
                    - DOCUMENT
                    - PRESENTATION
                    - IMAGE
                    - VIDEO
                    - LINK
                    - DRIVE
                    - YOUTUBE
                    - NOTE
                activityId:
                  anyOf:
                    - type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    - type: 'null'
              required:
                - title
                - url
      responses:
        '201':
          description: El recurso creado
          content:
            application/json:
              schema:
                type: object
                properties: {}
                additionalProperties: {}
        '400':
          description: Cuerpo inválido
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - type
                      - code
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                required:
                  - error
                  - request_id
                additionalProperties: false
        '401':
          description: Falta una credencial válida
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - type
                      - code
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                required:
                  - error
                  - request_id
                additionalProperties: false
        '403':
          description: Scope o rol insuficiente
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - type
                      - code
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                required:
                  - error
                  - request_id
                additionalProperties: false
        '429':
          description: Límite de peticiones o cuota de IA agotada
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - type
                      - code
                      - message
                    additionalProperties: false
                  request_id:
                    type: string
                required:
                  - error
                  - request_id
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key de Notiq (ntq_sk_…)

````