Wallets

Assign wallet entity

Changed on

Assign a user or organization to a wallet.

post/v1/wallets/{wallet_id}/entity

Request

  • Base URL
    https://api.privy.io
  • URL
    https://api.privy.io/v1/wallets/{wallet_id}/entity
  • Auth
    HTTP basic

Path parameters

wallet_idstring required

ID of the wallet.

Headers

privy-app-idstring required

ID of your Privy app.

Request body

idstring required

A Privy entity ID.

type'user' | 'organization' required

The type of entity a wallet is attributed to.

Example request

{
  "id": "jorpjo4rfxj62nx1itt8y1zt",
  "type": "user"
}

Response

The wallet entity assignment.

idstring required

Unique wallet entity assignment identifier.

wallet_idstring required

ID of the assigned wallet.

created_atnumber required

Unix timestamp when the assignment was created.

updated_atnumber required

Unix timestamp when the assignment was last updated.

Example response

{
  "entity": {
    "id": "jorpjo4rfxj62nx1itt8y1zt",
    "type": "user"
  }
}

Changes