> ## 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.

# GetParties

Ledger API

›

[gRPC API](https://docs.canton.network/reference/grpc-ledger-api-reference/overview.md)

›

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

›

GetParties

com.daml.ledger.api.v2.admin

# GetParties

gRPC

RPC

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

## Protocol Details

Protocol
gRPC

Service
PartyManagementService

RPC
GetParties

Client stream
No

Server stream
No

## Inputs

### GetPartiesRequest

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

Client stream
No

`parties`
repeated string

`identity_provider_id`
string

## Outputs

### GetPartiesResponse

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

Server stream
No

`party_details`
repeated PartyDetails

## Related Schemas

> [accordion] com.daml.ledger.api.v2.admin.GetPartiesRequest
>
> `parties`
> repeated string
>
> `identity_provider_id`
> string

> [accordion] com.daml.ledger.api.v2.admin.GetPartiesResponse
>
> `party_details`
> repeated PartyDetails

> [accordion] com.daml.ledger.api.v2.admin.PartyDetails
>
> `party`
> string
>
> `is_local`
> bool
>
> `local_metadata`
> ObjectMeta
>
> `identity_provider_id`
> string

> [accordion] com.daml.ledger.api.v2.admin.ObjectMeta
>
> `resource_version`
> string
>
> `annotations`
> repeated map

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/GetParties <<'EOF'
{
  "parties": [
    "string"
  ],
  "identityProviderId": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "partyDetails": [
    {
      "party": "string",
      "isLocal": true,
      "localMetadata": {
        "resourceVersion": "string",
        "annotations": [
          {
            "key": "string"
          }
        ]
      },
      "identityProviderId": "string"
    }
  ]
}
```
