-
+
- For more details, see the full [API Reference](https://api.thirdweb.com/reference).
+ For more details, see the full [API Reference](/reference).
diff --git a/apps/portal/src/app/transactions/page.mdx b/apps/portal/src/app/transactions/page.mdx
index af589237c39..75a49c3a205 100644
--- a/apps/portal/src/app/transactions/page.mdx
+++ b/apps/portal/src/app/transactions/page.mdx
@@ -64,7 +64,7 @@ Send, monitor, and manage transactions. Send transactions from user or server wa
### Send raw transactions
- Send a raw transaction from a [user wallet](/wallets/users) from the frontend, or [server wallet](/wallets/server) from the backend using the [thirdweb API](https://api.thirdweb.com/reference#tag/transactions/post/v1/transactions).
+ Send a raw transaction from a [user wallet](/wallets/users) from the frontend, or [server wallet](/wallets/server) from the backend using the [thirdweb API](/reference#tag/transactions/post/v1/transactions).
- For server wallets, you can execute transactions with just your project secret key.
- For user wallets in React applications that use the SDK, you can obtain the user wallet auth token (JWT) with the [`useAuthToken()`](/references/typescript/v5/useAuthToken) hook.
diff --git a/apps/portal/src/app/transactions/sponsor/page.mdx b/apps/portal/src/app/transactions/sponsor/page.mdx
index 647753f9ecf..f718deb7abd 100644
--- a/apps/portal/src/app/transactions/sponsor/page.mdx
+++ b/apps/portal/src/app/transactions/sponsor/page.mdx
@@ -55,7 +55,7 @@ Sponsor gas fees using [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702), enab
- EIP-7702 is the default execution mode in the [thirdweb API](https://api.thirdweb.com/reference) for your user and server wallets.
+ EIP-7702 is the default execution mode in the [thirdweb API](/reference) for your user and server wallets.
Example sponsored contract write request:
diff --git a/apps/portal/src/app/wallets/server/page.mdx b/apps/portal/src/app/wallets/server/page.mdx
index c9b2438bf69..e46754f330c 100644
--- a/apps/portal/src/app/wallets/server/page.mdx
+++ b/apps/portal/src/app/wallets/server/page.mdx
@@ -31,7 +31,7 @@ Server wallets are wallets that are managed by your own application, like a trea
### Use an existing Server Wallet
-Once created, you can use your server wallet by passing it as the `from` field of the [thirdweb API](https://api.thirdweb.com/reference#tag/transactions/post/v1/transactions).
+Once created, you can use your server wallet by passing it as the `from` field of the [thirdweb API](/reference#tag/transactions/post/v1/transactions).
### Create a new Server Wallet
diff --git a/apps/portal/src/app/wallets/sidebar.tsx b/apps/portal/src/app/wallets/sidebar.tsx
index 65ae9bc1836..eb8ecf20938 100644
--- a/apps/portal/src/app/wallets/sidebar.tsx
+++ b/apps/portal/src/app/wallets/sidebar.tsx
@@ -73,7 +73,7 @@ export const sidebar: SideBar = {
isCollapsible: false,
links: [
{
- href: "https://api.thirdweb.com/reference#tag/wallets",
+ href: "/reference#tag/wallets",
icon: ,
name: "HTTP API",
},
diff --git a/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx b/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx
index 7a57f6dad94..1b6cdd5383d 100644
--- a/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx
+++ b/apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx
@@ -500,12 +500,10 @@ async function OpenApiEndpointInner({
}
}
-const BASE_API_URL = "https://api.thirdweb.com";
-
function generateReferenceUrl(
tag: string,
path: string,
method: string,
): string {
- return `${BASE_API_URL}/reference#tag/${tag.toLowerCase()}/${method.toLowerCase()}${path}`;
+ return `/reference#tag/${tag.toLowerCase()}/${method.toLowerCase()}${path}`;
}