> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-docsby-1791319236-3be7a15.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get issue (Beta)

> **Beta:** This endpoint is in active development and may change without notice.

Returns one issue for the authenticated tenant.



## OpenAPI

````yaml /langsmith/langsmith-platform-openapi.json get /api/v1/platform/issues/{id}
openapi: 3.1.0
info:
  title: LangSmith
  description: >+
    The LangSmith API is used to programmatically create and manage LangSmith
    resources.


    ## Host

    https://api.smith.langchain.com


    ## Authentication

    To authenticate with the LangSmith API, set the `X-Api-Key` header

    to a valid [LangSmith API
    key](https://docs.langchain.com/langsmith/create-account-api-key#create-an-api-key).

  version: 0.1.0
servers:
  - url: /
security: []
tags:
  - name: run
    x-group: Tracing
  - name: runs
    x-group: Tracing
  - name: sessions
    x-group: Tracing
  - name: tracer-sessions
    x-group: Tracing
  - name: threads
    x-group: Threads
  - name: datasets
    x-group: Datasets
  - name: examples
    x-group: Datasets
  - name: evaluators
    x-group: Evaluation
  - name: experiment-view-overrides
    x-group: Evaluation
  - name: experiments
    x-group: Evaluation
  - name: annotation-queues
    x-group: Feedback & Annotation
  - name: annotation_queues
    x-group: Feedback & Annotation
  - name: feedback
    x-group: Feedback & Annotation
  - name: feedback-configs
    x-group: Feedback & Annotation
  - name: alert_rules
    x-group: Monitoring
  - name: bulk-exports
    x-group: Monitoring
  - name: charts
    x-group: Monitoring
  - name: commits
    x-group: Prompts & Playground
  - name: directories
    x-group: Prompts & Playground
  - name: hub_environments
    x-group: Prompts & Playground
  - name: playground-settings
    x-group: Prompts & Playground
  - name: prompt-webhooks
    x-group: Prompts & Playground
  - name: prompts
    x-group: Prompts & Playground
  - name: tag-transitions
    x-group: Prompts & Playground
  - name: comments
    x-group: Prompt Hub
  - name: likes
    x-group: Prompt Hub
  - name: optimization-jobs
    x-group: Prompt Hub
  - name: ownerships
    x-group: Prompt Hub
  - name: repos
    x-group: Prompt Hub
  - name: settings
    x-group: Prompt Hub
  - name: tags
    x-group: Prompt Hub
  - name: integrations
    x-group: Integrations & Tools
  - name: mcp
    x-group: Integrations & Tools
  - name: mcp_vendors
    x-group: Integrations & Tools
  - name: oauth
    x-group: Integrations & Tools
  - name: tools
    x-group: Integrations & Tools
  - name: gateway-policies
    x-group: LLM Gateway
  - name: sandboxes
    x-group: Sandboxes
  - name: issues
    x-group: Issues
  - name: issues-agent
    x-group: Issues
  - name: Organizations
    x-group: Administration
  - name: SCIM Tokens
    x-group: Administration
  - name: TTL Settings
    x-group: Administration
  - name: access_policies
    x-group: Administration
  - name: api-key
    x-group: Administration
  - name: audit-logs
    x-group: Administration
  - name: auth
    x-group: Administration
  - name: aws_marketplace
    x-group: Administration
  - name: data_planes
    x-group: Administration
  - name: me
    x-group: Administration
  - name: orgs
    x-group: Administration
  - name: service-accounts
    x-group: Administration
  - name: tenant
    x-group: Administration
  - name: ttl-settings
    x-group: Administration
  - name: usage-limits
    x-group: Administration
  - name: workspaces
    x-group: Administration
  - name: ace
    x-group: System
  - name: backfills
    x-group: System
  - name: features
    x-group: System
  - name: info
    x-group: System
  - name: model-price-map
    x-group: System
  - name: public
    x-group: System
  - name: fleet orgs
  - name: fleet secrets
  - name: fleet tenants
  - name: fleet threads
    x-hidden: true
  - name: fleet users
  - name: productfeedback
    x-hidden: true
paths:
  /api/v1/platform/issues/{id}:
    get:
      tags:
        - issues
      summary: Get issue (Beta)
      description: >-
        **Beta:** This endpoint is in active development and may change without
        notice.


        Returns one issue for the authenticated tenant.
      parameters:
        - description: Issue ID (UUID)
          name: id
          in: path
          required: true
          schema:
            type: string
        - description: >-
            Include current Linear workflow state and validated linked GitHub
            pull request URLs
          name: include_linear_context
          in: query
          schema:
            type: boolean
            title: Include Linear Context
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/issues.Issue'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/issues.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/issues.ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/issues.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/issues.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/issues.ErrorResponse'
      security:
        - API Key: []
        - Tenant ID: []
        - Bearer Auth: []
components:
  schemas:
    issues.Issue:
      type: object
      properties:
        actions:
          type: object
        auto_resolution_evidence:
          type: object
        auto_resolution_state:
          description: >-
            Nil unless eligible: "auto_close" or "prompt". Evidence carries the
            deciding gate.
          type: string
        created_at:
          type: string
        description:
          type: string
        evidence:
          description: Nil for the trace-list issues that are the norm.
          anyOf:
            - allOf:
                - $ref: '#/components/schemas/issues.Evidence'
            - type: 'null'
        first_seen_at:
          type: string
        fix_branch:
          description: >-
            Legacy: branch of the oldest fix in the board's oldest connected
            repository.
          type: string
        fix_dispatched_at:
          type: string
        fix_handoff_bot_user_id:
          description: >-
            Non-nil once the issue is handed off to a coding agent; Engine skips
            its

            own fix run while it is set.
          anyOf:
            - type: string
            - type: 'null'
        fix_pr_number:
          type: integer
        fix_prompt:
          description: >-
            Issue-level: the problem every fix shares, and the last time a fix
            run

            was dispatched for this issue — one run works several fixes.
          type: string
        fix_verification:
          $ref: '#/components/schemas/issues.IssueFixVerification'
        fixes:
          description: Newest first.
          type: array
          items:
            $ref: '#/components/schemas/issues.Fix'
        id:
          type: string
        last_seen_at:
          type: string
        linear_context:
          $ref: '#/components/schemas/issues.LinearContext'
        linear_sync:
          $ref: '#/components/schemas/issues.LinearSync'
        name:
          type: string
        proposed_context_fixes:
          type: array
          items:
            type: object
        proposed_examples:
          type: array
          items:
            type: object
        proposed_fix:
          type: string
        proposed_prompt_fixes:
          type: array
          items:
            type: object
        recurrences_since_watching:
          description: >-
            RecurrencesSinceWatching counts linked traces whose run start_time
            is after

            watching_since — i.e. recurrences observed during the current watch
            period.
          type: integer
        session_id:
          type: string
        severity:
          $ref: '#/components/schemas/issues.Severity'
        status:
          $ref: '#/components/schemas/issues.Status'
        tags:
          items:
            type: string
          type: array
        tenant_id:
          type: string
        traces:
          type: object
        updated_at:
          type: string
        validation_result:
          $ref: '#/components/schemas/issues.IssueValidationResult'
        watching_since:
          type: string
    issues.ErrorResponse:
      type: object
      properties:
        error:
          type: string
    issues.Evidence:
      type: object
      required:
        - type
      properties:
        series:
          $ref: '#/components/schemas/issues.SeriesEvidence'
        type:
          $ref: '#/components/schemas/issues.EvidenceType'
    issues.IssueFixVerification:
      type: object
      properties:
        attempt:
          type: integer
        baseline_experiment_id:
          type: string
          format: uuid
        dataset_id:
          type: string
          format: uuid
        parent_deployment_id:
          type: string
          format: uuid
        preview_deployment_id:
          type: string
          format: uuid
        preview_experiment_id:
          type: string
          format: uuid
        reason:
          type: string
        root_trace_ids:
          items:
            type: string
          type: array
        status:
          type: string
          enum:
            - awaiting_preview
            - verifying
            - passed
            - failed
            - inconclusive
            - timeout
            - error
        updated_at:
          type: string
          format: date-time
    issues.Fix:
      type: object
      required:
        - branch
        - created_at
        - id
        - pr_number
        - repo_url
        - updated_at
      properties:
        branch:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          type: string
          format: date-time
        id:
          type: string
        pr_number:
          anyOf:
            - type: integer
            - type: 'null'
        repo_url:
          type: string
        updated_at:
          type: string
          format: date-time
    issues.LinearContext:
      type: object
      properties:
        github_pr_urls:
          items:
            type: string
          type: array
        workflow_state:
          type: string
    issues.LinearSync:
      type: object
      properties:
        identifier:
          type: string
        issue_id:
          type: string
        last_attempted_at:
          type: string
          format: date-time
        last_error:
          type: string
        last_synced_at:
          type: string
          format: date-time
        linear_issue_id:
          type: string
        state:
          type: string
          enum:
            - pending
            - synced
            - failed
            - auth_required
            - paused
        url:
          type: string
    issues.Severity:
      type: integer
      enum:
        - 0
        - 1
        - 2
        - 3
      x-enum-varnames:
        - SeverityUrgent
        - SeverityHigh
        - SeverityMed
        - SeverityLow
    issues.Status:
      type: string
      enum:
        - open
        - fixing
        - watching
        - completed
        - ignored
      x-enum-varnames:
        - StatusOpen
        - StatusFixing
        - StatusWatching
        - StatusCompleted
        - StatusIgnored
    issues.IssueValidationResult:
      type: object
      properties:
        active_revision_id:
          type: string
          format: uuid
        baseline_experiment_id:
          type: string
          format: uuid
        completed_at:
          type: string
          format: date-time
        dataset_id:
          type: string
          format: uuid
        deployment_id:
          type: string
          format: uuid
        outcome:
          type: string
          enum:
            - reproduced
            - not_reproduced
            - inconclusive
            - error
        reason:
          type: string
        root_trace_ids:
          items:
            type: string
          type: array
    issues.SeriesEvidence:
      type: object
      required:
        - metric_definition
      properties:
        metric_definition:
          $ref: '#/components/schemas/runsanalytics.MetricDefinition'
        run_filter:
          description: Narrows what is measured; the renderer ANDs its root scope over it.
          type: string
        window_end:
          type: string
          format: date-time
        window_start:
          description: >-
            The view the chart opens at, not a clamp. Start alone renders start
            -> now.
          type: string
          format: date-time
    issues.EvidenceType:
      type: string
      enum:
        - series
      x-enum-varnames:
        - EvidenceTypeSeries
    runsanalytics.MetricDefinition:
      type: object
      required:
        - type
      properties:
        denominator:
          $ref: '#/components/schemas/runsanalytics.ScalarMetricDefinition'
        entity:
          description: >-
            Entity selects what a type=count metric counts. Only valid when
            type=count;

            defaults to MetricEntityRun. entity=feedback requires
            params.feedback_key

            and counts individual feedback records rather than runs.
          allOf:
            - $ref: '#/components/schemas/runsanalytics.MetricEntity'
        field:
          $ref: '#/components/schemas/runsanalytics.MetricField'
        numerator:
          description: Numerator and Denominator are required when type=ratio.
          allOf:
            - $ref: '#/components/schemas/runsanalytics.ScalarMetricDefinition'
        params:
          description: percentile p or histogram bucket_count
          allOf:
            - $ref: '#/components/schemas/runsanalytics.MetricParams'
        type:
          description: >-
            histogram is reserved and rejected; the tag publishes what is
            accepted.
          enum:
            - count
            - sum
            - avg
            - min
            - max
            - percentile
            - ratio
          allOf:
            - $ref: '#/components/schemas/runsanalytics.MetricType'
    runsanalytics.ScalarMetricDefinition:
      type: object
      required:
        - type
      properties:
        entity:
          description: >-
            Entity selects what a type=count metric counts. Only valid when
            type=count;

            defaults to MetricEntityRun. entity=feedback requires
            params.feedback_key

            and counts individual feedback records rather than runs.
          allOf:
            - $ref: '#/components/schemas/runsanalytics.MetricEntity'
        field:
          $ref: '#/components/schemas/runsanalytics.MetricField'
        filter:
          type: string
        params:
          description: required when type=percentile
          allOf:
            - $ref: '#/components/schemas/runsanalytics.MetricParams'
        type:
          description: An operand is non-composite, so ratio is rejected here too.
          enum:
            - count
            - sum
            - avg
            - min
            - max
            - percentile
          allOf:
            - $ref: '#/components/schemas/runsanalytics.MetricType'
    runsanalytics.MetricEntity:
      type: string
      enum:
        - run
        - feedback
      x-enum-varnames:
        - MetricEntityRun
        - MetricEntityFeedback
    runsanalytics.MetricField:
      type: string
      enum:
        - latency_seconds
        - first_token_seconds
        - total_tokens
        - prompt_tokens
        - completion_tokens
        - total_cost
        - prompt_cost
        - completion_cost
        - feedback_score
      x-enum-varnames:
        - MetricFieldLatencySeconds
        - MetricFieldFirstTokenSeconds
        - MetricFieldTotalTokens
        - MetricFieldPromptTokens
        - MetricFieldCompletionTokens
        - MetricFieldTotalCost
        - MetricFieldPromptCost
        - MetricFieldCompletionCost
        - MetricFieldFeedbackScore
    runsanalytics.MetricParams:
      type: object
      properties:
        bucket_count:
          type: integer
        feedback_key:
          type: string
        p:
          type: number
    runsanalytics.MetricType:
      type: string
      enum:
        - count
        - sum
        - avg
        - min
        - max
        - percentile
        - ratio
        - histogram
      x-enum-varnames:
        - MetricTypeCount
        - MetricTypeSum
        - MetricTypeAvg
        - MetricTypeMin
        - MetricTypeMax
        - MetricTypePercentile
        - MetricTypeRatio
        - MetricTypeHistogram
  securitySchemes:
    API Key:
      type: apiKey
      in: header
      name: X-API-Key
    Tenant ID:
      type: apiKey
      in: header
      name: X-Tenant-Id
    Bearer Auth:
      type: http
      description: >-
        Bearer tokens are used to authenticate from the UI. Must also specify
        x-tenant-id or x-organization-id (for org scoped apis).
      scheme: bearer

````