> ## 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.

# Ingest an OTLP export for a signal



## OpenAPI

````yaml https://api.interfere.com/openapi.json post /drain/v1/{signal}
openapi: 3.0.0
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
  description: >-
    Interfere empowers engineers, product managers and designers with real-time
    understanding of previously unseen bugs and issues.
  version: 3.0.0
servers:
  - url: https://api.interfere.com
    description: This environment
security: []
tags:
  - name: Drain
    description: Drain API
  - name: Releases
    description: Build-time release API
  - name: Replay
    description: Session replay chunk ingest API
  - name: Sessions
    description: Session and end-user identity API
  - name: Updates
    description: Desktop app update API
  - name: Traces
    description: Trace waterfall read API
externalDocs:
  url: https://interfere.com/docs
  description: Interfere Documentation
paths:
  /drain/v1/{signal}:
    post:
      tags:
        - Drain
      summary: Ingest an OTLP export for a signal
      operationId: drainOtlpExport
      parameters:
        - schema:
            type: string
            enum:
              - traces
              - logs
              - metrics
            description: OTLP signal
            example: traces
          required: true
          description: OTLP signal
          name: signal
          in: path
      requestBody:
        required: true
        description: OTLP export in protobuf or JSON, optionally gzip content-encoded
        content:
          application/x-protobuf:
            schema:
              type: string
              format: binary
              description: OTLP protobuf payload
          application/json:
            schema:
              type: object
              description: OTLP JSON payload
      responses:
        '200':
          description: >-
            OTLP export response in the request's content type; an empty message
            signals full success
          content:
            application/x-protobuf:
              schema:
                nullable: true
                description: OTLP protobuf response
            application/json:
              schema:
                nullable: true
                description: OTLP JSON response
        '400':
          description: Payload is not decodable OTLP or every resource failed admission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
            application/x-protobuf:
              schema:
                nullable: true
                description: google.rpc.Status protobuf message
        '401':
          description: Missing or invalid public key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthProblem'
        '403':
          description: The surface filters this deployment environment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
            application/x-protobuf:
              schema:
                nullable: true
                description: google.rpc.Status protobuf message
        '413':
          description: Payload exceeds the ingest size limit; split the batch and retry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
            application/x-protobuf:
              schema:
                nullable: true
                description: google.rpc.Status protobuf message
        '415':
          description: Unsupported content type or content encoding
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcStatus'
            application/x-protobuf:
              schema:
                nullable: true
                description: google.rpc.Status protobuf message
        '503':
          description: >-
            A dependency failed while accepting the request; retry with backoff
            after the Retry-After delay
          headers:
            Retry-After:
              schema:
                type: string
                description: Seconds to wait before retrying
              required: true
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestUnavailableProblem'
      security:
        - publicKeyHeader: []
        - publicKey: []
components:
  schemas:
    RpcStatus:
      type: object
      properties:
        code:
          type: integer
          description: google.rpc.Code value mirroring the HTTP status
        message:
          type: string
      required:
        - code
        - message
      description: RpcStatus
    AuthProblem:
      type: object
      properties:
        code:
          type: string
          enum:
            - AUTH_MISSING
            - AUTH_PK_INVALID
        message:
          type: string
        service:
          type: string
          enum:
            - collector
            - gateway
            - operation
            - intelligence
      required:
        - code
    IngestUnavailableProblem:
      type: object
      properties:
        code:
          type: string
          enum:
            - INGEST_INFRA_UNAVAILABLE
        message:
          type: string
        service:
          type: string
          enum:
            - collector
            - gateway
            - operation
            - intelligence
      required:
        - code
  securitySchemes:
    publicKeyHeader:
      type: apiKey
      in: header
      name: x-interfere-public-key
      description: >-
        Public key of the receiving surface; preferred for OTel Collector
        exporters, whose endpoint config cannot carry query strings
    publicKey:
      type: apiKey
      in: query
      name: public_key
      description: Public key of the receiving surface

````