Skip to content

Commit 3564187

Browse files
committed
docs: update fetching user details endpoint to include details for ecosystem
1 parent a94f981 commit 3564187

File tree

1 file changed

+17
-3
lines changed
  • apps/portal/src/app/connect/in-app-wallet/guides/get-user-details

1 file changed

+17
-3
lines changed

apps/portal/src/app/connect/in-app-wallet/guides/get-user-details/page.mdx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,17 @@ https://embedded-wallet.thirdweb.com/api/2023-11-30/embedded-wallet/user-details
7272

7373
You can query user details using one of the following parameters:
7474

75-
- `walletAddress`: The user's wallet address
75+
- `walletAddress`: The user's wallet address that thirdweb has generated for them
7676
- `email`: The user's email address
7777
- `phone`: The user's phone number
78+
- `extenalWalletAddress`: The user's wallet address that used to login via SIWE
7879
- `id`: The user's ID
7980

8081
### Authentication
8182

82-
You need to include your ThirdWeb Client Secret in the Authorization header.
83+
You need to include your ThirdWeb Client Secret in the Authorization header.
84+
85+
If you are an ecosystem owner, you have to include the `x-ecosystem-id` header and optionally the `x-ecosystem-partner-id` header if the ecosystem is set to partners only.
8386

8487
### Example curl Command
8588

@@ -90,7 +93,18 @@ curl -X GET 'https://embedded-wallet.thirdweb.com/api/2023-11-30/embedded-wallet
9093
-H 'Authorization: Bearer YOUR_THIRD_WEB_CLIENT_SECRET'
9194
```
9295

93-
Replace `YOUR_THIRD_WEB_CLIENT_SECRET` with your actual ThirdWeb Client Secret.
96+
Here's an example curl command to fetch the user details for an ecosystem owner:
97+
98+
```bash
99+
curl -X GET 'https://embedded-wallet.thirdweb.com/api/2023-11-30/embedded-wallet/user-details?queryBy=walletAddress&walletAddress=0x123456789abcdef' \
100+
-H 'Authorization: Bearer YOUR_THIRD_WEB_CLIENT_SECRET' \
101+
-H 'x-ecosystem-id: ecosystem.YOUR_ECOSYSTEM_ID' \
102+
-H 'x-ecosystem-partner-id: YOUR_PARTNER_ID'
103+
```
104+
105+
In both examples, replace `YOUR_THIRD_WEB_CLIENT_SECRET` with your actual ThirdWeb Client Secret.
106+
107+
Replace `YOUR_ECOSYSTEM_ID` and `YOUR_PARTNER_ID` with your actual ecosystem ID and partner ID respectively. The partner ID can be one you set up for yourself as the ecosystem owner.
94108

95109
### Response Format
96110

0 commit comments

Comments
 (0)