Create partner sub-account
Creates a new sub-account linked to the authenticated partner. Requires HMAC authentication with the account_creation scope.
Server wallet mode (createServerWallet: true): Creates a Privy server wallet and profile. The partner can then submit orders on behalf of this account using delegated signing.
EOA mode (default): Requires wallet ownership verification via x-account, x-signing-message, and x-signature headers. The end user signs their own orders.
Headers
EOA mode only. Checksummed Ethereum address of the sub-account wallet.
EOA mode only. Hex-encoded signing message.
EOA mode only. Hex-encoded signature from the sub-account wallet.
Request body
Example request
{
"displayName": "user-alice"
}Response
Sub-account created
Example response
{
"profileId": 789,
"account": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
}Changes
Changed in 3 of the 32 revisions of this API.12
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○