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

# Subir una ficha técnica

> Pide una URL firmada para subir un PDF de hasta 10 MB. Subí el archivo con un `PUT` a `upload_url` y mandá el `file_url` que te devolvemos al crear la clasificación. La URL vence a los 10 minutos. Requiere una key con alcance `classify`.

El flujo completo, con el `PUT` del archivo, está en [fichas técnicas](/api/fichas-tecnicas).


## OpenAPI

````yaml POST /uploads
openapi: 3.1.0
info:
  title: Nomenclator API
  version: 1.0.0
  termsOfService: https://nomenclator.com.ar/terminos
  contact:
    name: Nomenclator
    email: hola@nomenclator.com.ar
  summary: Clasificación arancelaria NCM de 8 dígitos para el MERCOSUR.
  description: >-
    Clasificá productos en NCM de 8 dígitos y consultá dictámenes desde tus
    sistemas, con las mismas reglas que la app. Cada clasificación queda en el
    historial de tu organización.
servers:
  - url: https://api.nomenclator.com.ar/v1
security:
  - apiKey: []
tags:
  - name: classifications
    description: Crear, consultar y listar clasificaciones.
  - name: reference
    description: Aranceles, aperturas SIM y catálogo de países.
  - name: account
    description: Saldo del plan y medidor de la API.
paths:
  /uploads:
    post:
      tags:
        - classifications
      summary: Subir una ficha técnica
      description: >-
        Pide una URL firmada para subir un PDF de hasta 10 MB. Subí el archivo
        con un `PUT` a `upload_url` y mandá el `file_url` que te devolvemos al
        crear la clasificación. La URL vence a los 10 minutos. Requiere una key
        con alcance `classify`.
      operationId: createUpload
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadRequest'
      responses:
        '201':
          description: La URL de subida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadTicket'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '413':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/Problem'
      security:
        - apiKey:
            - classify
components:
  schemas:
    UploadRequest:
      title: UploadRequest
      type: object
      properties:
        content_type:
          type: string
          const: application/pdf
          description: Siempre `application/pdf`.
        byte_size:
          type: integer
          minimum: 1
          maximum: 9007199254740991
          description: Tamaño del archivo en bytes. Hasta 10 MB.
        filename:
          type: string
          minLength: 1
          maxLength: 200
          description: Nombre del archivo, hasta 200 caracteres.
      required:
        - content_type
        - byte_size
        - filename
      additionalProperties: false
    UploadTicket:
      title: UploadTicket
      type: object
      properties:
        upload_url:
          type: string
          format: uri
          description: URL firmada para subir el PDF con un `PUT`. Vence a los 10 minutos.
        file_url:
          type: string
          format: uri
          description: El valor que mandás como `file_url` al clasificar.
        expires_at:
          type: string
          format: date-time
          description: Cuándo vence `upload_url`.
      required:
        - upload_url
        - file_url
        - expires_at
      additionalProperties: false
    Problem:
      title: Problem
      type: object
      properties:
        type:
          type: string
          format: uri
          description: URI del tipo de error. Decidí por este campo.
        title:
          type: string
          description: Resumen fijo por tipo.
        status:
          type: integer
          minimum: 400
          maximum: 599
          description: Código HTTP.
        detail:
          type: string
          description: Qué pasó en este pedido. Se puede mostrar a una persona.
        instance:
          type: string
          description: Ruta del pedido.
        request_id:
          type: string
          pattern: ^req_[23456789ABCDEFGHJKMNPQRSTVWXYZ]{12}$
          description: Igual al header `X-Request-Id`.
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                description: Ruta del campo, como `items[2].ncm`.
              code:
                type: string
                description: Código de la falla.
              message:
                type: string
                description: Explicación que se puede mostrar.
            required:
              - field
              - code
              - message
            additionalProperties: false
          description: Campos inválidos. Solo en errores de validación.
      required:
        - type
        - title
        - status
        - detail
        - instance
        - request_id
      additionalProperties: {}
  responses:
    Problem:
      description: Error, en formato `application/problem+json` (RFC 9457).
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    RateLimited:
      description: Superaste un límite de pedidos (`rate-limited`).
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  headers:
    XRequestId:
      description: Id del pedido. Citalo si nos escribís por soporte.
      schema:
        type: string
        example: req_3NQ8VZ2K6MHT
    RetryAfter:
      description: Segundos que conviene esperar antes de reintentar.
      schema:
        type: integer
    RateLimitLimit:
      description: Pedidos permitidos en la ventana.
      schema:
        type: integer
    RateLimitRemaining:
      description: Pedidos que te quedan en la ventana.
      schema:
        type: integer
    RateLimitReset:
      description: Segundos hasta que la ventana se reinicia.
      schema:
        type: integer
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: nmc_live_... / nmc_test_...
      description: >-
        API key de tu organización, creada en la app en **Ajustes → API**. Se
        manda como `Authorization: Bearer nmc_live_…`, nunca en la query string.
        Alcances: `read` (solo leer) y `classify` (clasificar y leer).

````