---
title: "Paginated endpoint for listing active dependencies for a given service"
method: GET
path: "/services/{serviceId}/dependencies"
tags: ["services"]
---

# Paginated endpoint for listing active dependencies for a given service

`GET /services/{serviceId}/dependencies`

Requires the privilege [`SERVICES_READ`](https://www.gremlin.com/docs/user-management/access-control/#privileges)

## Path parameters

- `serviceId` string, required

## Query parameters

- `pageSize` integer
- `pageToken` string
- `teamId` string, required

## Response `default`

default response

- PagedResponseDependencyResponse
  - `pageNumber` integer
  - `pageSize` integer — The size of the page requested. If none was supplied this is a default value (depending on the endpoint). If the length of items is less than this number that means there are _no_ more pages to request. NOTE: if the length *is* equal there may or may not be additional pages to request, it is unknowable until they are requested
  - `pageToken` string — Supply this token on successive requests to retrieve the next page if there is one
  - `items` DependencyResponse[]
    - `serviceId` string
    - `guid` string
    - `name` string
    - `description` string
    - `ignored` boolean
    - `characteristics` object
    - `teamId` string
    - `discoveredPorts` integer[]
    - `spofAudit` SpofAudit
      - `markedAsSpofOn` string, date-time
      - `markedAsSpofBy` string
    - `createdBy` string
    - `updatedBy` string
    - `updatedAt` string, date-time
    - `createdAt` string, date-time
    - `lastSeenAt` string, date-time
    - `isSpof` boolean

## Other responses

- `401` — Authorization header missing or malformed. Please provide proper credentials in the authorization header.
- `403` — User requires privilege for target team: SERVICES_READ

---

[API](https://skmtc.net/gremlin/apis/gremlin-api.md) · [All operations](https://skmtc.net/gremlin/apis/gremlin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gremlin/gremlin-api/versions/70fe938a0b35/schema)
