---
title: "QueryConsumerIdFromClientId returns the consumer id of the chain associated with the provided client id"
method: GET
path: "/interchain_security/ccv/provider/consumer_id/{client_id}"
tags: ["Query"]
---

# QueryConsumerIdFromClientId returns the consumer id of the chain associated with the provided client id

`GET /interchain_security/ccv/provider/consumer_id/{client_id}`

## Request

- Base URL: `https://api.mantrachain.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mantrachain.io/interchain_security/ccv/provider/consumer_id/{client_id}`
- Auth: none declared

## Path parameters

- `client_id` string, required

## Response `200`

A successful response.

- object
  - `consumer_id` string

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/mantrachain/apis/mantra-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/mantrachain/apis/mantra-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/mantrachain/apis/mantra-grpc-gateway-docs/revisions/641ce457f7fd?raw)
