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

# Reserve the BI file upload

> A short-lived address to upload your BI's CSV, for those bytes only.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/measure/reconcile/uploads
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/measure/reconcile/uploads:
    post:
      tags:
        - signals
      summary: Reserve the BI file upload
      description: >-
        Where to upload the company's BI file for a reconciliation: a
        short-lived link for those bytes only.


        **Authentication.** Console person token with the `analysis` role (or
        admin), or a source key with the `admin` scope. It answers only in a
        space with the `measurement` feature on (the `features` document); in a
        space without it, 404.
      operationId: reconcile_upload_v1_measure_reconcile_uploads_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BiUploadRequest'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BiUpload'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    BiUploadRequest:
      additionalProperties: false
      description: >-
        Reserves the upload of the company's BI file: its size and SHA-256,
        which the storage checks.
      properties:
        sha256:
          pattern: ^[0-9a-f]{64}$
          title: Sha256
          type: string
        size_bytes:
          maximum: 52428800
          minimum: 1
          title: Size Bytes
          type: integer
      required:
        - size_bytes
        - sha256
      title: BiUploadRequest
      type: object
    BiUpload:
      additionalProperties: false
      properties:
        expires_at:
          format: date-time
          title: Expires At
          type: string
        upload_headers:
          additionalProperties:
            type: string
          description: Send exactly these headers; the storage refuses other bytes.
          title: Upload Headers
          type: object
        upload_id:
          format: uuid
          title: Upload Id
          type: string
        upload_url:
          title: Upload Url
          type: string
      required:
        - upload_id
        - upload_url
        - expires_at
      title: BiUpload
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````