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

# Get apiv1services 1

> Get service details



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/v1/services/{serviceName}
openapi: 3.0.0
info:
  title: QYL Observability API
  version: '2026-01-26'
servers:
  - url: https://api.staging.qyl.dev
    description: QYL Staging API
    variables: {}
  - url: https://api.qyl.dev
    description: QYL Production API
    variables: {}
security: []
tags:
  - name: Streaming
  - name: Traces
  - name: Logs
  - name: Metrics
  - name: Sessions
  - name: Errors
  - name: Deployments
  - name: Services
  - name: Health
  - name: Workspaces
  - name: Onboarding
  - name: Configurator
  - name: Issues
  - name: Workflows
  - name: Search
  - name: Alerts
paths:
  /api/v1/services/{serviceName}:
    get:
      tags:
        - Services
      description: Get service details
      operationId: ServicesApi_get
      parameters:
        - name: serviceName
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceDetails'
        '404':
          description: Resource not found (404)
          headers:
            X-Trace-Id:
              required: false
              description: Trace ID for correlation
              schema:
                type: string
            X-Request-Id:
              required: false
              description: Request ID for support
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Qyl.Common.Errors.NotFoundError'
        '500':
          description: Internal server error (500)
          headers:
            X-Trace-Id:
              required: false
              description: Trace ID for correlation
              schema:
                type: string
            X-Request-Id:
              required: false
              description: Request ID for support
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Qyl.Common.Errors.InternalServerError'
components:
  schemas:
    ServiceDetails:
      type: object
      required:
        - name
        - instance_count
        - last_seen
        - resource_attributes
        - instrumentation_libraries
        - request_rate
        - error_rate
        - avg_latency_ms
        - p99_latency_ms
      properties:
        name:
          type: string
          description: Service name
        namespace_name:
          type: string
          description: Service namespace
        version:
          allOf:
            - $ref: '#/components/schemas/Qyl.Common.SemVer'
          description: Service version
        instance_count:
          type: integer
          format: int32
          description: Instance count
        last_seen:
          type: string
          format: date-time
          description: Last seen
        resource_attributes:
          type: array
          items:
            $ref: '#/components/schemas/Qyl.Common.Attribute'
          description: Resource attributes
        instrumentation_libraries:
          type: array
          items:
            $ref: '#/components/schemas/Qyl.Common.InstrumentationScope'
          description: Instrumentation libraries
        request_rate:
          type: number
          format: double
          description: Request rate (per second)
        error_rate:
          allOf:
            - $ref: '#/components/schemas/Qyl.Common.Ratio'
          description: Error rate
        avg_latency_ms:
          type: number
          format: double
          description: Average latency in milliseconds
        p99_latency_ms:
          type: number
          format: double
          description: P99 latency in milliseconds
      description: Service details
    Qyl.Common.Errors.NotFoundError:
      type: object
      required:
        - title
      properties:
        title:
          type: string
          enum:
            - Not Found
        resource_type:
          type: string
          description: The type of resource that was not found
        resource_id:
          type: string
          description: The identifier that was not found
      allOf:
        - $ref: '#/components/schemas/Qyl.Common.Errors.ProblemDetails'
      description: Resource not found (404)
    Qyl.Common.Errors.InternalServerError:
      type: object
      required:
        - title
      properties:
        title:
          type: string
          enum:
            - Internal Server Error
        error_code:
          type: string
          description: Error code for support reference
      allOf:
        - $ref: '#/components/schemas/Qyl.Common.Errors.ProblemDetails'
      description: Internal server error (500)
    Qyl.Common.SemVer:
      type: string
      pattern: >-
        ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
      description: Semantic version string (e.g., 1.2.3)
      example: 2.1.0
    Qyl.Common.Attribute:
      type: object
      required:
        - key
        - value
      properties:
        key:
          type: string
          minLength: 1
          maxLength: 256
          description: Attribute key (dot-separated namespace)
        value:
          allOf:
            - $ref: '#/components/schemas/Qyl.Common.AttributeValue'
          description: Attribute value
      description: Key-value attribute pair following OTel conventions
    Qyl.Common.InstrumentationScope:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          description: Name of the instrumentation scope (library name)
        version:
          allOf:
            - $ref: '#/components/schemas/Qyl.Common.SemVer'
          description: Version of the instrumentation scope
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/Qyl.Common.Attribute'
          description: Additional attributes for the scope
        dropped_attributes_count:
          allOf:
            - $ref: '#/components/schemas/Qyl.Common.Count'
          description: Dropped attributes count
      description: >-
        Instrumentation scope identifying the library/component emitting
        telemetry
    Qyl.Common.Ratio:
      type: number
      format: double
      minimum: 0
      maximum: 1
      description: Ratio value (0.0 to 1.0)
      x-csharp-type: double
      x-duckdb-type: DOUBLE
    Qyl.Common.Errors.ProblemDetails:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
          description: A URI reference identifying the problem type
          default: about:blank
        title:
          type: string
          description: A short, human-readable summary of the problem type
        status:
          type: integer
          format: int32
          description: >-
            The HTTP status code (informational only, actual code set by
            subtype)
        detail:
          type: string
          description: A human-readable explanation specific to this occurrence
        instance:
          type: string
          format: uri
          description: A URI reference identifying the specific occurrence
        timestamp:
          type: string
          format: date-time
          description: Timestamp of the error
      description: RFC 7807 Problem Details for HTTP APIs
    Qyl.Common.AttributeValue:
      anyOf:
        - type: string
        - type: boolean
        - type: integer
          format: int64
        - type: number
          format: double
        - type: array
          items:
            type: string
        - type: array
          items:
            type: boolean
        - type: array
          items:
            type: integer
            format: int64
        - type: array
          items:
            type: number
            format: double
        - type: string
          format: byte
      description: Primitive attribute value types supported by OpenTelemetry
    Qyl.Common.Count:
      type: integer
      format: int64
      minimum: 0
      description: Generic non-negative counter
      x-csharp-type: long
      x-duckdb-type: BIGINT

````