---
title: "Get all services"
method: GET
path: "/api/v2/namespaces/{namespace}/services"
tags: ["services"]
---

# Get all services

`GET /api/v2/namespaces/{namespace}/services`

## Path parameters

- `namespace` string, required

## Response `200`

Services list returned

- object
  - `data` object[]
    - `id` string — a unique string that represent id of the service
    - `type` string — enum value ("workflow-service" or "namespace-service")
    - `namespace` string — the namespace of service belongs
    - `name` string — name of the service
    - `filePath` string — file path where this service is defined
    - `image` string — docker image of the service
    - `cmd` string — docker command
    - `size` string — can be 'large', 'medium' or 'small'
    - `scale` integer — number from 0 to 9
    - `error` string, nullable — error string when service failed to be scheduled, otherwise null
    - `envs` object[] — environment variables used to exec the service
      - `name` string — name of the variable
      - `value` string — value of the variable
    - `conditions` object[], nullable — list of checks indicating the health checks of the service, null value means the service is not scheduled yet
      - `type` string — name of the check
      - `status` string — can be 'True', 'False' or 'Unknown'
      - `message` string — human readable message about the reason of this condition - can be empty

---

[API](https://skmtc.net/direktiv/apis/direktiv-apiv2-reference.md) · [All operations](https://skmtc.net/direktiv/apis/direktiv-apiv2-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/direktiv/direktiv-apiv2-reference/revisions/ad935afb0f54/schema)
