---
title: "Get Service by ID"
method: GET
path: "/api/v1/services/{id}"
tags: ["Services"]
---

# Get Service by ID

`GET /api/v1/services/{id}`

## Path parameters

- `id` string, uuid, required

## Response `200`

Service found

- ApiResponseService
  - `data` object
    - `bindings` Binding[], required
      - union
        - object — Association between a service and a port / interface that the service is listening on
          - `ip_address_id` string, uuid, required
          - `type` 'IPAddress', required
          - `network_id` string, uuid, required
          - `service_id` string, uuid, required
          - `created_at` string, date-time, required
          - `first_discovery_id` string, uuid, nullable
          - `id` string, uuid, required
          - `last_discovery_id` string, uuid, nullable
          - `last_seen_at` string, date-time
          - `lineage_id` string, uuid, nullable
          - `updated_at` string, date-time, required
          - `valid_from` string, date-time
          - `valid_to` string, date-time, nullable
        - object — Association between a service and a port / interface that the service is listening on
          - `ip_address_id` string, uuid, nullable, required — The IP address this port binding applies to. If `null`, the binding applies to all IP addresses on the host (and supersedes specific-IP-address bindings for this port).
          - `port_id` string, uuid, required
          - `type` 'Port', required
          - `network_id` string, uuid, required
          - `service_id` string, uuid, required
          - `created_at` string, date-time, required
          - `first_discovery_id` string, uuid, nullable
          - `id` string, uuid, required
          - `last_discovery_id` string, uuid, nullable
          - `last_seen_at` string, date-time
          - `lineage_id` string, uuid, nullable
          - `updated_at` string, date-time, required
          - `valid_from` string, date-time
          - `valid_to` string, date-time, nullable
    - `host_id` string, uuid, required
    - `name` string, required
    - `network_id` string, uuid, required
    - `position` integer, required — Position of this service in the host's service list (for ordering)
    - `service_definition` string, required
    - `source` union, required
      - object
        - `type` 'Manual', required
      - object
        - `type` 'System', required
      - object
        - `type` 'Discovery', required
      - object
        - `details` MatchDetails, required
          - `confidence` 'NotApplicable' | 'Low' | 'Medium' | 'High' | 'Certain', required
          - `reason` union, required — Match reason - either a simple reason string or a container with nested reasons
            - object
              - …
            - object
              - …
        - `type` 'DiscoveryWithMatch', required
      - object
        - `type` 'Unknown', required
    - `tags` string[], required
    - `virtualization` union
      - object
        - `details` DockerVirtualization, required
          - `compose_project` string, nullable
          - `container_id` string, nullable
          - `container_name` string, nullable
          - `service_id` string, uuid, required
        - `type` 'Docker', required
      - object
        - `details` PodmanVirtualization, required
          - `compose_project` string, nullable
          - `container_id` string, nullable
          - `container_name` string, nullable
          - `service_id` string, uuid, required
        - `type` 'Podman', required
    - `created_at` string, date-time, required
    - `first_discovery_id` string, uuid, nullable
    - `id` string, uuid, required
    - `last_discovery_id` string, uuid, nullable
    - `last_seen_at` string, date-time
    - `lineage_id` string, uuid, nullable
    - `updated_at` string, date-time, required
    - `valid_from` string, date-time
    - `valid_to` string, date-time, nullable
  - `error` string, nullable
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required

## Other responses

- `404` — Service not found

## Changes

- **2026-06-20** `cf0e0b2b8df7` — 1 breaking
  - added `subschema #2: Podman` to the `data/allOf[#/components/schemas/ServiceBase]/virtualization/oneOf[subschema #2: ServiceVirtualization]/` response property `oneOf` list for the response status `200`
- **2026-05-03** `d38c20597ec1` — 2 breaking, 12 info
  - removed the required property `data/allOf[#/components/schemas/ServiceBase]/source/oneOf[subschema #3: Discovery]/metadata` from the response with the `200` status
  - removed the required property `data/allOf[#/components/schemas/ServiceBase]/source/oneOf[subschema #4: DiscoveryWithMatch]/metadata` from the response with the `200` status
  - added the optional property `data/allOf[#/components/schemas/ServiceBase]/bindings/items/allOf[subschema #2]/first_discovery_id` to the response with the `200` status
  - added the optional property `data/allOf[#/components/schemas/ServiceBase]/bindings/items/allOf[subschema #2]/last_discovery_id` to the response with the `200` status
  - …10 more
- …earlier changes not shown

[Full history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/v1/services/:id/get.md)

---

[API](https://skmtc.dev/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.dev/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/49ea97c8bb7e/schema)
