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

# AllocateExternalParty

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)

›

AllocateExternalParty

com.daml.ledger.api.v2.admin

# AllocateExternalParty

gRPC

RPC

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

## Protocol Details

Protocol
gRPC

Service
PartyManagementService

RPC
AllocateExternalParty

Client stream
No

Server stream
No

## Inputs

### AllocateExternalPartyRequest

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

Client stream
No

`synchronizer`
string

`onboarding_transactions`
repeated SignedTransaction

`multi_hash_signatures`
repeated Signature

`identity_provider_id`
string

`wait_for_allocation`
bool

`user_id`
string

## Outputs

### AllocateExternalPartyResponse

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

Server stream
No

`party_id`
string

## Related Schemas

> [accordion] com.daml.ledger.api.v2.admin.AllocateExternalPartyRequest
>
> `synchronizer`
> string
>
> `onboarding_transactions`
> repeated SignedTransaction
>
> `multi_hash_signatures`
> repeated Signature
>
> `identity_provider_id`
> string
>
> `wait_for_allocation`
> bool
>
> `user_id`
> string

> [accordion] com.daml.ledger.api.v2.admin.AllocateExternalPartyRequest.SignedTransaction
>
> `transaction`
> bytes
>
> `signatures`
> repeated Signature

> [accordion] com.daml.ledger.api.v2.Signature
>
> `format`
> SignatureFormat
>
> `signature`
> bytes
>
> `signed_by`
> string
>
> `signing_algorithm_spec`
> SigningAlgorithmSpec

> [accordion] com.daml.ledger.api.v2.SignatureFormat
>
> <ul>
>   <li>`SIGNATURE_FORMAT_UNSPECIFIED`</li>
>
>   <li>`SIGNATURE_FORMAT_RAW`</li>
>
>   <li>`SIGNATURE_FORMAT_DER`</li>
>
>   <li>`SIGNATURE_FORMAT_CONCAT`</li>
>
>   <li>`SIGNATURE_FORMAT_SYMBOLIC`</li>
> </ul>

> [accordion] com.daml.ledger.api.v2.SigningAlgorithmSpec
>
> <ul>
>   <li>`SIGNING_ALGORITHM_SPEC_UNSPECIFIED`</li>
>
>   <li>`SIGNING_ALGORITHM_SPEC_ED25519`</li>
>
>   <li>`SIGNING_ALGORITHM_SPEC_EC_DSA_SHA_256`</li>
>
>   <li>`SIGNING_ALGORITHM_SPEC_EC_DSA_SHA_384`</li>
>
>   <li>`SIGNING_ALGORITHM_SPEC_ML_DSA_65`</li>
> </ul>

> [accordion] com.daml.ledger.api.v2.admin.AllocateExternalPartyResponse
>
> `party_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/AllocateExternalParty <<'EOF'
{
  "synchronizer": "string",
  "onboardingTransactions": [
    {
      "transaction": "BASE64_ENCODED_BYTES",
      "signatures": [
        {
          "format": "SIGNATURE_FORMAT_UNSPECIFIED",
          "signature": "BASE64_ENCODED_BYTES",
          "signedBy": "string",
          "signingAlgorithmSpec": "SIGNING_ALGORITHM_SPEC_UNSPECIFIED"
        }
      ]
    }
  ],
  "multiHashSignatures": [
    {
      "format": "SIGNATURE_FORMAT_UNSPECIFIED",
      "signature": "BASE64_ENCODED_BYTES",
      "signedBy": "string",
      "signingAlgorithmSpec": "SIGNING_ALGORITHM_SPEC_UNSPECIFIED"
    }
  ],
  "identityProviderId": "string",
  "waitForAllocation": true,
  "userId": "string"
}
EOF
```

OK

application/json

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