---
title: "Identity queries the identity by the given id"
method: GET
path: "/iritamod/identity/identities/{id}"
tags: ["Query"]
---

# Identity queries the identity by the given id

`GET /iritamod/identity/identities/{id}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `id` string, required

## Response `200`

A successful response.

- object
  - `identity` object
    - `id` string
    - `pub_keys` object[]
      - `pub_key` string
      - `algorithm` 'UnknownPubKeyAlgorithm' | 'RSA' | 'DSA' | 'ECDSA' | 'ED25519' | 'SM2': - UnknownPubKeyAlgorithm: UnknownPubKeyAlgorithm defines an unknown algorithm name - RSA: RSA defines a RSA algorithm name - DSA: DSA defines a DSA algorithm name. - ECDSA: ECDSA defines an ECDSA algorithm name. - ED25519: ED25519 defines an ED25519 algorithm name. - SM2: SM2 defines an SM2 algorithm name.
    - `certificates` string[]
    - `credentials` string
    - `owner` string

## Other responses

- `default`: An unexpected error response.

## Changes

- **2020-12-11** `7a45cf376295`: 1 breaking, 5 warning, 1 info
  - added the new path request parameter `id`
  - deleted the `path` request parameter `client_id`
  - deleted the `query` request parameter `pagination.count_total`
  - deleted the `query` request parameter `pagination.key`
  - …3 more
- **2020-11-24** `e074680272ae`: 1 info
  - endpoint added
- **2020-04-20** `55279958f492`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/bianjieai/apis/irita-legacy-rest-and-grpc-gateway-docs/changes/iritamod/identity/identities/:id/get.md)

---

[API](https://skmtc.dev/bianjieai/apis/irita-legacy-rest-and-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/bianjieai/apis/irita-legacy-rest-and-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/bianjieai/apis/irita-legacy-rest-and-grpc-gateway-docs/revisions/dcc6f688c291?raw)
