---
title: "Retrieves a list of identities that have metadata matching the provided parameters."
method: GET
path: "/identity"
tags: ["policy"]
---

# Retrieves a list of identities that have metadata matching the provided parameters.

`GET /identity`

Retrieves a list of identities that have metadata matching the provided parameters, or all identities if no parameters are provided.

## Request body

- string[] — Set of labels

## Response `200`

Success

- Identity[]
  - `id` integer — Unique identifier
  - `labels` string[] — Set of labels
  - `labelsSHA256` string — SHA256 of labels

## Other responses

- `404` — Identities with provided parameters not found
- `520` — Identity storage unreachable. Likely a network problem.
- `521` — Invalid identity format in storage

---

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