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

# Finalize source maps

> Durably accepts all signed files and their verified manifest. R2 publication retries in the background.



## OpenAPI

````yaml https://api.interfere.com/openapi.json post /v3/releases/{releaseSlug}/source-maps/finalize
openapi: 3.0.4
info:
  title: Interfere API
  termsOfService: https://interfere.com/legal/terms-of-service
  contact:
    email: support@interfere.com
    name: Interfere Support
    url: https://interfere.com/~/*/settings/support
  license:
    name: All Rights Reserved
    url: https://interfere.com/legal/terms-of-service
  description: >-
    Register builds, ingest telemetry, and inspect application issues. Build
    operations authenticate with a secret surface key; SDK ingestion uses a
    publishable surface key. Dashboard operations require a Clerk session, and
    investigation endpoints require workload identity. Authentication
    alternatives are listed on each operation. Retry only when the operation
    contract permits it, preserving the original idempotency key.
  version: 3.0.0
servers:
  - url: https://api.interfere.com
    description: This environment
security: []
tags:
  - name: Releases
    description: Build registration and source-map uploads
  - name: Sessions
    description: Session identity, activity, and events
externalDocs:
  url: https://interfere.com/docs
  description: Interfere Documentation
paths:
  /v3/releases/{releaseSlug}/source-maps/finalize:
    post:
      tags:
        - Releases
      summary: Finalize source maps
      description: >-
        Durably accepts all signed files and their verified manifest. R2
        publication retries in the background.
      operationId: finalizeSourceMaps
      parameters:
        - schema:
            pattern: ^rel_.*$
            type: string
          required: true
          name: releaseSlug
          in: path
      requestBody:
        required: true
        content:
          application/json:
            examples:
              emptyBuild:
                summary: Finalize a build with no source maps
                value:
                  bundler: rollup
                  files: []
                  sourceFileCount: 0
            schema:
              $ref: '#/components/schemas/CompleteSourceMapsRequest'
      responses:
        '200':
          description: Source maps durably accepted for processing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompleteSourceMapsResponse'
        '401':
          description: Missing or invalid secret key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyAuthProblem'
        '403':
          description: Secret key lacks the required scope or its network is blocked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyScopeProblem'
        '409':
          description: Release already has different source maps
          content:
            application/json:
              schema:
                properties:
                  code:
                    enum:
                      - RELEASE_UPLOAD_CONFLICT
                    type: string
                  message:
                    type: string
                  service:
                    enum:
                      - collector
                      - gateway
                      - operation
                      - intelligence
                      - frontier-auth
                      - frontier-drain
                      - frontier-runtime
                      - frontier-buildtime
                      - api-tinybird
                      - api-findings
                      - api-updates
                    type: string
                required:
                  - code
                type: object
        '422':
          description: The release is unknown
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompleteSourceMapsProblem'
        '429':
          description: Upload capacity is unavailable
          headers:
            Retry-After:
              schema:
                description: Seconds to wait before retrying
                type: string
              required: true
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                properties:
                  code:
                    enum:
                      - INGEST_BACKPRESSURE
                    type: string
                  message:
                    type: string
                  service:
                    enum:
                      - collector
                      - gateway
                      - operation
                      - intelligence
                      - frontier-auth
                      - frontier-drain
                      - frontier-runtime
                      - frontier-buildtime
                      - api-tinybird
                      - api-findings
                      - api-updates
                    type: string
                required:
                  - code
                type: object
        '503':
          description: >-
            A dependency failed while recording the release; retry with backoff
            after the Retry-After delay
          headers:
            Retry-After:
              schema:
                description: Seconds to wait before retrying
                type: string
              required: true
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReleaseUnavailableProblem'
      security:
        - apiKey: []
        - apiKeyHeader: []
components:
  schemas:
    CompleteSourceMapsRequest:
      properties:
        bundler:
          $ref: '#/components/schemas/ManifestBundler'
        files:
          items:
            $ref: '#/components/schemas/CompleteSourceMapFile'
          type: array
        sourceFileCount:
          minimum: 0
          type: integer
      required:
        - bundler
        - files
      description: >-
        Finalizes an upload session after all file chunks are durably accepted.
        Verifies the complete file inventory and schedules publication of the
        source-map manifest. Safe to retry.
      type: object
    CompleteSourceMapsResponse:
      properties:
        fileCount:
          minimum: 0
          type: integer
        ok:
          type: boolean
      required:
        - fileCount
        - ok
      description: CompleteSourceMapsResponse
      type: object
    ApiKeyAuthProblem:
      properties:
        code:
          enum:
            - AUTH_MISSING
            - AUTH_AK_INVALID
          type: string
        message:
          type: string
        service:
          enum:
            - collector
            - gateway
            - operation
            - intelligence
            - frontier-auth
            - frontier-drain
            - frontier-runtime
            - frontier-buildtime
            - api-tinybird
            - api-findings
            - api-updates
          type: string
      required:
        - code
      type: object
    ApiKeyScopeProblem:
      anyOf:
        - properties:
            code:
              enum:
                - AUTH_AK_SCOPE_MISMATCH
              type: string
            message:
              type: string
            service:
              enum:
                - collector
                - gateway
                - operation
                - intelligence
                - frontier-auth
                - frontier-drain
                - frontier-runtime
                - frontier-buildtime
                - api-tinybird
                - api-findings
                - api-updates
              type: string
          required:
            - code
          type: object
        - properties:
            code:
              enum:
                - NETWORK_ACCESS_DENIED
              type: string
            message:
              type: string
            service:
              enum:
                - collector
                - gateway
                - operation
                - intelligence
                - frontier-auth
                - frontier-drain
                - frontier-runtime
                - frontier-buildtime
                - api-tinybird
                - api-findings
                - api-updates
              type: string
          required:
            - code
          type: object
    CompleteSourceMapsProblem:
      properties:
        code:
          enum:
            - RELEASE_NOT_FOUND
            - RELEASE_UPLOAD_INVALID
          type: string
        message:
          type: string
        service:
          enum:
            - collector
            - gateway
            - operation
            - intelligence
            - frontier-auth
            - frontier-drain
            - frontier-runtime
            - frontier-buildtime
            - api-tinybird
            - api-findings
            - api-updates
          type: string
      required:
        - code
      type: object
    ReleaseUnavailableProblem:
      anyOf:
        - properties:
            code:
              enum:
                - INGEST_INFRA_UNAVAILABLE
              type: string
            message:
              type: string
            service:
              enum:
                - collector
                - gateway
                - operation
                - intelligence
                - frontier-auth
                - frontier-drain
                - frontier-runtime
                - frontier-buildtime
                - api-tinybird
                - api-findings
                - api-updates
              type: string
          required:
            - code
          type: object
        - properties:
            code:
              enum:
                - NETWORK_ACCESS_UNAVAILABLE
              type: string
            message:
              type: string
            service:
              enum:
                - collector
                - gateway
                - operation
                - intelligence
                - frontier-auth
                - frontier-drain
                - frontier-runtime
                - frontier-buildtime
                - api-tinybird
                - api-findings
                - api-updates
              type: string
          required:
            - code
          type: object
    ManifestBundler:
      enum:
        - webpack
        - turbopack
        - rollup
        - tsc
      description: ManifestBundler
      type: string
    CompleteSourceMapFile:
      properties:
        chunkUrl:
          type: string
        debugId:
          type: string
        hash:
          type: string
        path:
          minLength: 1
          type: string
      required:
        - chunkUrl
        - debugId
        - hash
        - path
      description: CompleteSourceMapFile
      type: object
  securitySchemes:
    apiKey:
      description: >-
        Build-time secret key of the surface, as issued in the Interfere
        dashboard
      scheme: bearer
      type: http
    apiKeyHeader:
      description: >-
        Build-time secret key of the surface, unwrapped; for clients that cannot
        set an Authorization header
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.