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

# Record a device heartbeat for a session



## OpenAPI

````yaml https://api.interfere.com/openapi.json post /v3/session
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:
  /v3/session:
    post:
      tags:
        - Sessions
      summary: Record a device heartbeat for a session
      operationId: createSession
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSessionRequest'
      responses:
        '200':
          description: Device recorded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionResponse'
        '401':
          description: Missing or invalid public key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthProblem'
        '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/SessionUnavailableProblem'
      security:
        - publicKeyHeader: []
        - publicKey: []
components:
  schemas:
    CreateSessionRequest:
      type: object
      properties:
        sessionId:
          type: string
          minLength: 1
        deviceId:
          type: string
          nullable: true
          format: uuid
        fpHash:
          type: string
          nullable: true
        visitorId:
          type: string
          nullable: true
          format: uuid
      required:
        - sessionId
      description: Request body for creating a session.
    SessionResponse:
      type: object
      properties:
        ok:
          type: boolean
      required:
        - ok
      description: SessionResponse
    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
    SessionUnavailableProblem:
      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

````