> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# GetParticipantId

Ledger API

›

[Protobuf](https://docs.canton.network/reference/protobuf/overview.md)

›

[com.daml.ledger.api.v2.admin](https://docs.canton.network/reference/protobuf/packages/com-daml-ledger-api-v2-admin.md)

›

GetParticipantId

com.daml.ledger.api.v2.admin

# GetParticipantId

gRPC

RPC

`/com.daml.ledger.api.v2.admin.PartyManagementService/GetParticipantId`

## Protocol Details

Protocol
gRPC

Service
PartyManagementService

RPC
GetParticipantId

Client stream
No

Server stream
No

## Inputs

### GetParticipantIdRequest

Message
com.daml.ledger.api.v2.admin.GetParticipantIdRequest

Client stream
No

## Outputs

### GetParticipantIdResponse

Message
com.daml.ledger.api.v2.admin.GetParticipantIdResponse

Server stream
No

`participant_id`
string

## Related Schemas

> [accordion] com.daml.ledger.api.v2.admin.GetParticipantIdRequest

> [accordion] com.daml.ledger.api.v2.admin.GetParticipantIdResponse
>
> `participant_id`
> string

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.admin.PartyManagementService/GetParticipantId <<'EOF'
{}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "participantId": "string"
}
```
