diff --git a/mintlify/docs/api-reference/auth/login.mdx b/mintlify/docs/api-reference/auth/login.mdx index 9c7c4e796..2de50a3c2 100644 --- a/mintlify/docs/api-reference/auth/login.mdx +++ b/mintlify/docs/api-reference/auth/login.mdx @@ -63,7 +63,7 @@ The refresh token is issued alongside the access token and delivered differently ```javascript fetch -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/login', { +const res = await fetch('https://api.urbackend.in/api/userAuth/login', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -80,7 +80,7 @@ const { accessToken, expiresIn, user } = await res.json(); ``` ```bash curl -curl -X POST "https://api.ub.bitbros.in/api/userAuth/login" \ +curl -X POST "https://api.urbackend.in/api/userAuth/login" \ -H "Content-Type: application/json" \ -H "x-api-key: pk_live_YOUR_KEY" \ -c cookies.txt \ diff --git a/mintlify/docs/api-reference/auth/logout.mdx b/mintlify/docs/api-reference/auth/logout.mdx index b41f1d2f5..67c778fe1 100644 --- a/mintlify/docs/api-reference/auth/logout.mdx +++ b/mintlify/docs/api-reference/auth/logout.mdx @@ -29,7 +29,7 @@ Like the refresh endpoint, logout needs to read the current refresh token to kno ```javascript Web (cookie) -await fetch('https://api.ub.bitbros.in/api/userAuth/logout', { +await fetch('https://api.urbackend.in/api/userAuth/logout', { method: 'POST', headers: { 'x-api-key': 'pk_live_YOUR_KEY' @@ -39,7 +39,7 @@ await fetch('https://api.ub.bitbros.in/api/userAuth/logout', { ``` ```javascript Mobile (header) -await fetch('https://api.ub.bitbros.in/api/userAuth/logout', { +await fetch('https://api.urbackend.in/api/userAuth/logout', { method: 'POST', headers: { 'x-api-key': 'pk_live_YOUR_KEY', @@ -49,7 +49,7 @@ await fetch('https://api.ub.bitbros.in/api/userAuth/logout', { ``` ```bash curl -curl -X POST "https://api.ub.bitbros.in/api/userAuth/logout" \ +curl -X POST "https://api.urbackend.in/api/userAuth/logout" \ -H "x-api-key: pk_live_YOUR_KEY" \ -b cookies.txt ``` diff --git a/mintlify/docs/api-reference/auth/me.mdx b/mintlify/docs/api-reference/auth/me.mdx index 2ced9732c..ca927485a 100644 --- a/mintlify/docs/api-reference/auth/me.mdx +++ b/mintlify/docs/api-reference/auth/me.mdx @@ -34,7 +34,7 @@ Returns the full profile of the currently signed-in user. The response never inc ```javascript fetch -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/me', { +const res = await fetch('https://api.urbackend.in/api/userAuth/me', { headers: { 'x-api-key': 'pk_live_YOUR_KEY', 'Authorization': `Bearer ${accessToken}` @@ -45,7 +45,7 @@ const user = await res.json(); ``` ```bash curl -curl "https://api.ub.bitbros.in/api/userAuth/me" \ +curl "https://api.urbackend.in/api/userAuth/me" \ -H "x-api-key: pk_live_YOUR_KEY" \ -H "Authorization: Bearer ACCESS_TOKEN" ``` @@ -93,7 +93,7 @@ Returns a public-safe view of a user's profile. No authentication is required. ### Code Example ```javascript -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/public/alice_dev', { +const res = await fetch('https://api.urbackend.in/api/userAuth/public/alice_dev', { headers: { 'x-api-key': 'pk_live_YOUR_KEY' } diff --git a/mintlify/docs/api-reference/auth/refresh-token.mdx b/mintlify/docs/api-reference/auth/refresh-token.mdx index f233342de..d61c55c2c 100644 --- a/mintlify/docs/api-reference/auth/refresh-token.mdx +++ b/mintlify/docs/api-reference/auth/refresh-token.mdx @@ -45,7 +45,7 @@ Include the refresh token in the `x-refresh-token` header, and set `x-refresh-to ```javascript Web (cookie) // Browser: credentials: 'include' sends the HTTP-only cookie automatically -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/refresh-token', { +const res = await fetch('https://api.urbackend.in/api/userAuth/refresh-token', { method: 'POST', headers: { 'x-api-key': 'pk_live_YOUR_KEY' @@ -58,7 +58,7 @@ const { accessToken: newAccessToken } = await res.json(); ```javascript Mobile (header) // Mobile / non-browser: pass the refresh token explicitly in a header -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/refresh-token', { +const res = await fetch('https://api.urbackend.in/api/userAuth/refresh-token', { method: 'POST', headers: { 'x-api-key': 'pk_live_YOUR_KEY', diff --git a/mintlify/docs/api-reference/auth/signup.mdx b/mintlify/docs/api-reference/auth/signup.mdx index 6a6d2214a..a652c79f2 100644 --- a/mintlify/docs/api-reference/auth/signup.mdx +++ b/mintlify/docs/api-reference/auth/signup.mdx @@ -63,7 +63,7 @@ Creates a new user account and returns an access token. Any extra fields defined ```javascript fetch -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/signup', { +const res = await fetch('https://api.urbackend.in/api/userAuth/signup', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -82,7 +82,7 @@ const { user, accessToken } = await res.json(); ``` ```bash curl -curl -X POST "https://api.ub.bitbros.in/api/userAuth/signup" \ +curl -X POST "https://api.urbackend.in/api/userAuth/signup" \ -H "Content-Type: application/json" \ -H "x-api-key: pk_live_YOUR_KEY" \ -d '{ diff --git a/mintlify/docs/api-reference/auth/social.mdx b/mintlify/docs/api-reference/auth/social.mdx index 2ceeaa097..d6b3f2c92 100644 --- a/mintlify/docs/api-reference/auth/social.mdx +++ b/mintlify/docs/api-reference/auth/social.mdx @@ -11,7 +11,7 @@ Before using these endpoints you need to configure the OAuth provider in your pr 1. Go to **Project Settings** and add your frontend URL as the **Site URL** (e.g., `https://myapp.com`). 2. Go to **Auth → Social Auth** and select GitHub or Google. -3. Copy the read-only **Callback URL** shown by urBackend (e.g., `https://api.ub.bitbros.in/api/userAuth/social/github/callback`). +3. Copy the read-only **Callback URL** shown by urBackend (e.g., `https://api.urbackend.in/api/userAuth/social/github/callback`). 4. Register that callback URL in the provider's OAuth app settings (GitHub: **Developer Settings → OAuth Apps**; Google: **Cloud Console → Credentials**). 5. Paste the provider's **Client ID** and **Client Secret** into urBackend and enable the provider. @@ -36,11 +36,11 @@ Redirects the user's browser to the provider login page. Because this is a brows ```javascript // Redirect the user to start the OAuth flow window.location.href = - 'https://api.ub.bitbros.in/api/userAuth/social/github/start?x-api-key=pk_live_YOUR_KEY'; + 'https://api.urbackend.in/api/userAuth/social/github/start?x-api-key=pk_live_YOUR_KEY'; // Or for Google: window.location.href = - 'https://api.ub.bitbros.in/api/userAuth/social/google/start?x-api-key=pk_live_YOUR_KEY'; + 'https://api.urbackend.in/api/userAuth/social/google/start?x-api-key=pk_live_YOUR_KEY'; ``` After the user authenticates with the provider, urBackend redirects them to: @@ -146,7 +146,7 @@ function AuthCallback() { } // Exchange rtCode for refresh token - const res = await fetch('https://api.ub.bitbros.in/api/userAuth/social/exchange', { + const res = await fetch('https://api.urbackend.in/api/userAuth/social/exchange', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/mintlify/docs/api-reference/data/aggregate.mdx b/mintlify/docs/api-reference/data/aggregate.mdx index 0073d4b7e..505532704 100644 --- a/mintlify/docs/api-reference/data/aggregate.mdx +++ b/mintlify/docs/api-reference/data/aggregate.mdx @@ -57,7 +57,7 @@ If Row-Level Security (RLS) is enabled, your backend automatically injects a `$m ```javascript fetch const res = await fetch( - 'https://api.ub.bitbros.in/api/data/orders/aggregate', + 'https://api.urbackend.in/api/data/orders/aggregate', { method: 'POST', headers: { @@ -78,7 +78,7 @@ const { success, data } = await res.json(); ``` ```bash curl -curl -X POST "https://api.ub.bitbros.in/api/data/orders/aggregate?include_deleted=false" \ +curl -X POST "https://api.urbackend.in/api/data/orders/aggregate?include_deleted=false" \ -H "Content-Type: application/json" \ -H "x-api-key: pk_live_YOUR_KEY" \ -d '{ diff --git a/mintlify/docs/api-reference/data/delete.mdx b/mintlify/docs/api-reference/data/delete.mdx index e7d970eb2..96063f042 100644 --- a/mintlify/docs/api-reference/data/delete.mdx +++ b/mintlify/docs/api-reference/data/delete.mdx @@ -55,7 +55,7 @@ When using `pk_live` with RLS enabled, urBackend compares the existing document' const docId = '64fd1234abcd5678ef901234'; const res = await fetch( - `https://api.ub.bitbros.in/api/data/posts/${docId}`, + `https://api.urbackend.in/api/data/posts/${docId}`, { method: 'DELETE', headers: { @@ -71,7 +71,7 @@ const { success, data, message } = await res.json(); const docId = '64fd1234abcd5678ef901234'; const res = await fetch( - `https://api.ub.bitbros.in/api/data/posts/${docId}`, + `https://api.urbackend.in/api/data/posts/${docId}`, { method: 'DELETE', headers: { @@ -83,12 +83,12 @@ const res = await fetch( ``` ```bash curl -curl -X DELETE "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234" \ +curl -X DELETE "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" ``` ```bash curl (permanent) -curl -X DELETE "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234?permanent=true" \ +curl -X DELETE "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234?permanent=true" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" ``` diff --git a/mintlify/docs/api-reference/data/get-all.mdx b/mintlify/docs/api-reference/data/get-all.mdx index 936a19d62..08a1dcd33 100644 --- a/mintlify/docs/api-reference/data/get-all.mdx +++ b/mintlify/docs/api-reference/data/get-all.mdx @@ -99,7 +99,7 @@ const params = new URLSearchParams({ }); const res = await fetch( - `https://api.ub.bitbros.in/api/data/posts?${params}`, + `https://api.urbackend.in/api/data/posts?${params}`, { headers: { 'x-api-key': 'pk_live_YOUR_KEY' @@ -113,12 +113,12 @@ const { data } = await res.json(); ``` ```bash curl -curl "https://api.ub.bitbros.in/api/data/posts?page=1&limit=10&sort=-createdAt&status=published&include_deleted=true" \ +curl "https://api.urbackend.in/api/data/posts?page=1&limit=10&sort=-createdAt&status=published&include_deleted=true" \ -H "x-api-key: pk_live_YOUR_KEY" ``` ```javascript Private collection (RLS) -const res = await fetch('https://api.ub.bitbros.in/api/data/notes', { +const res = await fetch('https://api.urbackend.in/api/data/notes', { headers: { 'x-api-key': 'pk_live_YOUR_KEY', 'Authorization': `Bearer ${accessToken}` // Required for private-mode collections diff --git a/mintlify/docs/api-reference/data/get-one.mdx b/mintlify/docs/api-reference/data/get-one.mdx index 8644e8be9..68ce2c3d3 100644 --- a/mintlify/docs/api-reference/data/get-one.mdx +++ b/mintlify/docs/api-reference/data/get-one.mdx @@ -63,7 +63,7 @@ The endpoint returns the document object directly. const docId = '64fd1234abcd5678ef901234'; const res = await fetch( - `https://api.ub.bitbros.in/api/data/posts/${docId}?include_deleted=true`, + `https://api.urbackend.in/api/data/posts/${docId}?include_deleted=true`, { headers: { 'x-api-key': 'pk_live_YOUR_KEY' @@ -76,7 +76,7 @@ const doc = await res.json(); ``` ```bash curl -curl "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234?include_deleted=true" \ +curl "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234?include_deleted=true" \ -H "x-api-key: pk_live_YOUR_KEY" ``` diff --git a/mintlify/docs/api-reference/data/insert.mdx b/mintlify/docs/api-reference/data/insert.mdx index a362a258d..fc44bf3b5 100644 --- a/mintlify/docs/api-reference/data/insert.mdx +++ b/mintlify/docs/api-reference/data/insert.mdx @@ -61,7 +61,7 @@ The endpoint returns the created document object directly. ```javascript sk_live (server-side) // Use sk_live from your server — never expose it in frontend code -const res = await fetch('https://api.ub.bitbros.in/api/data/posts', { +const res = await fetch('https://api.urbackend.in/api/data/posts', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -83,7 +83,7 @@ const doc = await res.json(); ```javascript pk_live + RLS (client-side) // Use pk_live + user JWT when collection has RLS enabled // userId is auto-injected from the JWT — no need to include it -const res = await fetch('https://api.ub.bitbros.in/api/data/posts', { +const res = await fetch('https://api.urbackend.in/api/data/posts', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -101,7 +101,7 @@ const doc = await res.json(); ``` ```bash curl (sk_live) -curl -X POST "https://api.ub.bitbros.in/api/data/posts" \ +curl -X POST "https://api.urbackend.in/api/data/posts" \ -H "Content-Type: application/json" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" \ -d '{ diff --git a/mintlify/docs/api-reference/data/update.mdx b/mintlify/docs/api-reference/data/update.mdx index 47204f177..bb5a99315 100644 --- a/mintlify/docs/api-reference/data/update.mdx +++ b/mintlify/docs/api-reference/data/update.mdx @@ -65,7 +65,7 @@ When using `pk_live` with RLS enabled, urBackend fetches the existing document a const postId = '64fd1234abcd5678ef901234'; const res = await fetch( - `https://api.ub.bitbros.in/api/data/posts/${postId}`, + `https://api.urbackend.in/api/data/posts/${postId}`, { method: 'PUT', headers: { @@ -87,7 +87,7 @@ console.log('Updated document:', data); const postId = '64fd1234abcd5678ef901234'; const res = await fetch( - `https://api.ub.bitbros.in/api/data/posts/${postId}`, + `https://api.urbackend.in/api/data/posts/${postId}`, { method: 'PATCH', headers: { @@ -108,7 +108,7 @@ console.log('Updated document:', data); const postId = '64fd1234abcd5678ef901234'; const res = await fetch( - `https://api.ub.bitbros.in/api/data/posts/${postId}`, + `https://api.urbackend.in/api/data/posts/${postId}`, { method: 'PATCH', headers: { @@ -128,7 +128,7 @@ console.log('Updated document:', data); ``` ```bash curl -curl -X PUT "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234" \ +curl -X PUT "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234" \ -H "Content-Type: application/json" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" \ -d '{"title": "Updated title", "meta.views": 105}' diff --git a/mintlify/docs/api-reference/mail/send.mdx b/mintlify/docs/api-reference/mail/send.mdx index 01bdd3133..28b346f1c 100644 --- a/mintlify/docs/api-reference/mail/send.mdx +++ b/mintlify/docs/api-reference/mail/send.mdx @@ -85,7 +85,7 @@ For URL values, prefer escaped placeholders like `{{appUrl}}`. URL-like variable - Log in to the [urBackend Dashboard](https://urbackend.bitbros.in/dashboard), create a new project, and copy your **Secret Key** (`sk_live_...`) or you can get it from rotating it from project overview page. + Log in to the [urBackend Dashboard](https://app.urbackend.in), create a new project, and copy your **Secret Key** (`sk_live_...`) or you can get it from rotating it from project overview page. Copy your preferred language snippet from below. Use **Direct Mode** if you just want to send a quick HTML/Text email without setting up templates or use welcome template for fast test. @@ -102,7 +102,7 @@ For URL values, prefer escaped placeholders like `{{appUrl}}`. URL-like variable ```javascript fetch (template mode) -const res = await fetch('https://api.ub.bitbros.in/api/mail/send', { +const res = await fetch('https://api.urbackend.in/api/mail/send', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -121,7 +121,7 @@ const res = await fetch('https://api.ub.bitbros.in/api/mail/send', { ``` ```javascript fetch (direct mode) -const res = await fetch('https://api.ub.bitbros.in/api/mail/send', { +const res = await fetch('https://api.urbackend.in/api/mail/send', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -157,7 +157,7 @@ public class Main { """; HttpRequest request = HttpRequest.newBuilder() - .uri(URI.create("https://api.ub.bitbros.in/api/mail/send")) + .uri(URI.create("https://api.urbackend.in/api/mail/send")) .header("Content-Type", "application/json") .header("x-api-key", "sk_live_YOUR_SECRET_KEY") .POST(HttpRequest.BodyPublishers.ofString(jsonBody)) @@ -187,7 +187,7 @@ public class Main { """; HttpRequest request = HttpRequest.newBuilder() - .uri(URI.create("https://api.ub.bitbros.in/api/mail/send")) + .uri(URI.create("https://api.urbackend.in/api/mail/send")) .header("Content-Type", "application/json") .header("x-api-key", "sk_live_YOUR_SECRET_KEY") .POST(HttpRequest.BodyPublishers.ofString(jsonBody)) diff --git a/mintlify/docs/api-reference/overview.mdx b/mintlify/docs/api-reference/overview.mdx index 6610fed95..8fa6531dd 100644 --- a/mintlify/docs/api-reference/overview.mdx +++ b/mintlify/docs/api-reference/overview.mdx @@ -8,9 +8,24 @@ description: "Base URL, authentication, response format, and a full quick-refere All API requests are made to: ``` -https://api.ub.bitbros.in +https://api.urbackend.in ``` + + urBackend moved to new domains. The previous `bitbros.in` hosts stay live until 30 October 2026. After that date they are deprecated. Update your apps to use the new hosts before then. + + | Service | New host | Previous host | + | :--- | :--- | :--- | + | Public API (SDK and user auth) | `https://api.urbackend.in` | `https://api.ub.bitbros.in` | + | Dashboard | `https://app.urbackend.in` | `https://urbackend.bitbros.in` | + | Dashboard API | `https://platform-api.urbackend.in` | `https://dashboard-api.ub.bitbros.in` | + | Landing site | `https://urbackend.in` | — | + + + + The official SDKs may still default to the previous API host. To target the new host, pass `baseUrl: 'https://api.urbackend.in'` when you create the client. + + ## Authentication Every request must include an `x-api-key` header. urBackend issues two keys per project with different trust levels: diff --git a/mintlify/docs/api-reference/storage/delete.mdx b/mintlify/docs/api-reference/storage/delete.mdx index 77801c047..a1b4795ca 100644 --- a/mintlify/docs/api-reference/storage/delete.mdx +++ b/mintlify/docs/api-reference/storage/delete.mdx @@ -36,7 +36,7 @@ Permanently removes a file from storage. You must provide the `path` value that ```javascript fetch -const res = await fetch('https://api.ub.bitbros.in/api/storage/file', { +const res = await fetch('https://api.urbackend.in/api/storage/file', { method: 'DELETE', headers: { 'Content-Type': 'application/json', @@ -51,7 +51,7 @@ const { success, message } = await res.json(); ``` ```bash curl -curl -X DELETE "https://api.ub.bitbros.in/api/storage/file" \ +curl -X DELETE "https://api.urbackend.in/api/storage/file" \ -H "Content-Type: application/json" \ -H "x-api-key: pk_live_YOUR_KEY" \ -d '{"path": "PROJECT_ID/image.png"}' diff --git a/mintlify/docs/api-reference/storage/upload.mdx b/mintlify/docs/api-reference/storage/upload.mdx index 007f75992..e4fc54cf3 100644 --- a/mintlify/docs/api-reference/storage/upload.mdx +++ b/mintlify/docs/api-reference/storage/upload.mdx @@ -65,7 +65,7 @@ const formData = new FormData(); formData.append('file', fileInput.files[0]); // Do NOT set Content-Type — the browser handles it automatically with FormData -const res = await fetch('https://api.ub.bitbros.in/api/storage/upload', { +const res = await fetch('https://api.urbackend.in/api/storage/upload', { method: 'POST', headers: { 'x-api-key': 'pk_live_YOUR_KEY' @@ -89,7 +89,7 @@ import fetch from 'node-fetch'; const form = new FormData(); form.append('file', fs.createReadStream('./image.png')); -const res = await fetch('https://api.ub.bitbros.in/api/storage/upload', { +const res = await fetch('https://api.urbackend.in/api/storage/upload', { method: 'POST', headers: { 'x-api-key': 'sk_live_YOUR_SECRET_KEY', diff --git a/mintlify/docs/concepts/api-keys.mdx b/mintlify/docs/concepts/api-keys.mdx index 6e25e93ea..19e5a3bea 100644 --- a/mintlify/docs/concepts/api-keys.mdx +++ b/mintlify/docs/concepts/api-keys.mdx @@ -30,7 +30,7 @@ Use `pk_live` for all read operations from client-side code. It is safe to bundl ```javascript // Safe — pk_live is read-only by default -const response = await fetch('https://api.ub.bitbros.in/api/data/products', { +const response = await fetch('https://api.urbackend.in/api/data/products', { headers: { 'x-api-key': 'pk_live_...' } @@ -51,7 +51,7 @@ You can allow authenticated frontend users to write their own data by enabling * ```javascript // pk_live write with RLS enabled — user must be logged in -const response = await fetch('https://api.ub.bitbros.in/api/data/posts', { +const response = await fetch('https://api.urbackend.in/api/data/posts', { method: 'POST', headers: { 'x-api-key': 'pk_live_...', @@ -70,7 +70,7 @@ Use `sk_live` for all server-side operations: seeding data, admin scripts, serve ```javascript // Server-side only — never expose sk_live in client code -const response = await fetch('https://api.ub.bitbros.in/api/data/products', { +const response = await fetch('https://api.urbackend.in/api/data/products', { method: 'POST', headers: { 'x-api-key': 'sk_live_...', diff --git a/mintlify/docs/concepts/row-level-security.mdx b/mintlify/docs/concepts/row-level-security.mdx index 5683769a5..b3ee43b72 100644 --- a/mintlify/docs/concepts/row-level-security.mdx +++ b/mintlify/docs/concepts/row-level-security.mdx @@ -28,7 +28,7 @@ Choose `public-read` for content that should be publicly visible (for example, p ## Enabling RLS on a collection -1. Open your project in the [urBackend Dashboard](https://urbackend.bitbros.in). +1. Open your project in the [urBackend Dashboard](https://app.urbackend.in). 2. Navigate to the **Database** tab and select the collection. 3. Open the collection's **Settings**. 4. Toggle **Row-Level Security** on. @@ -88,7 +88,7 @@ This is the complete client-side flow for an authenticated user creating a docum ```javascript // Step 1 — log the user in to get their JWT -const loginResponse = await fetch('https://api.ub.bitbros.in/api/userAuth/login', { +const loginResponse = await fetch('https://api.urbackend.in/api/userAuth/login', { method: 'POST', headers: { 'x-api-key': 'pk_live_...', @@ -102,7 +102,7 @@ const { accessToken } = await loginResponse.json(); // Step 2 — create a post using pk_live + the user's JWT // The `userId` owner field is auto-injected — you do not need to include it -const postResponse = await fetch('https://api.ub.bitbros.in/api/data/posts', { +const postResponse = await fetch('https://api.urbackend.in/api/data/posts', { method: 'POST', headers: { 'x-api-key': 'pk_live_...', diff --git a/mintlify/docs/guides/ai-byok.mdx b/mintlify/docs/guides/ai-byok.mdx index e1f5878d4..c4e8c6ed9 100644 --- a/mintlify/docs/guides/ai-byok.mdx +++ b/mintlify/docs/guides/ai-byok.mdx @@ -89,13 +89,13 @@ Requires a logged-in dashboard session. ```bash # Save a key -curl -X PUT "https://api.ub.bitbros.in/api/user/me/byok" \ +curl -X PUT "https://platform-api.urbackend.in/api/user/me/byok" \ -H "Content-Type: application/json" \ -H "Cookie: " \ -d '{"groqKey": "gsk_..."}' # Clear the key -curl -X PUT "https://api.ub.bitbros.in/api/user/me/byok" \ +curl -X PUT "https://platform-api.urbackend.in/api/user/me/byok" \ -H "Content-Type: application/json" \ -H "Cookie: " \ -d '{"groqKey": null}' @@ -118,7 +118,7 @@ curl -X PUT "https://api.ub.bitbros.in/api/user/me/byok" \ Requires the project **admin** role. ```bash -curl -X PUT "https://api.ub.bitbros.in/api/projects/PROJECT_ID/byok" \ +curl -X PUT "https://platform-api.urbackend.in/api/projects/PROJECT_ID/byok" \ -H "Content-Type: application/json" \ -H "Cookie: " \ -d '{"groqKey": "gsk_..."}' diff --git a/mintlify/docs/guides/authentication.mdx b/mintlify/docs/guides/authentication.mdx index cae39b3f2..60cab8ff5 100644 --- a/mintlify/docs/guides/authentication.mdx +++ b/mintlify/docs/guides/authentication.mdx @@ -7,7 +7,7 @@ User accounts in urBackend are managed through `/api/userAuth/*` endpoints. Do * All auth endpoints require your publishable key (`pk_live_...`) in the `x-api-key` header. -**Base URL:** `https://api.ub.bitbros.in` +**Base URL:** `https://api.urbackend.in` ## Disabling Public Signups @@ -40,7 +40,7 @@ You can add any extra fields (e.g., `username`, `avatar`, `preferences`). urBack Send a `POST` request to create an account. You can include any extra fields defined in your `users` schema. ```javascript - const res = await fetch('https://api.ub.bitbros.in/api/userAuth/signup', { + const res = await fetch('https://api.urbackend.in/api/userAuth/signup', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -64,7 +64,7 @@ You can add any extra fields (e.g., `username`, `avatar`, `preferences`). urBack Authenticate with email and password to receive an access token. ```javascript - const res = await fetch('https://api.ub.bitbros.in/api/userAuth/login', { + const res = await fetch('https://api.urbackend.in/api/userAuth/login', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -88,7 +88,7 @@ You can add any extra fields (e.g., `username`, `avatar`, `preferences`). urBack Pass the access token in the `Authorization` header for any endpoint that requires authentication. ```javascript - const res = await fetch('https://api.ub.bitbros.in/api/userAuth/me', { + const res = await fetch('https://api.urbackend.in/api/userAuth/me', { headers: { 'x-api-key': 'pk_live_YOUR_KEY', 'Authorization': `Bearer ${accessToken}` @@ -106,7 +106,7 @@ You can add any extra fields (e.g., `username`, `avatar`, `preferences`). urBack **Web clients** — the refresh token cookie is sent automatically: ```javascript - const res = await fetch('https://api.ub.bitbros.in/api/userAuth/refresh-token', { + const res = await fetch('https://api.urbackend.in/api/userAuth/refresh-token', { method: 'POST', headers: { 'x-api-key': 'pk_live_YOUR_KEY' }, credentials: 'include' @@ -116,7 +116,7 @@ You can add any extra fields (e.g., `username`, `avatar`, `preferences`). urBack **Mobile or non-browser clients** — send the refresh token in a header: ```javascript - const res = await fetch('https://api.ub.bitbros.in/api/userAuth/refresh-token', { + const res = await fetch('https://api.urbackend.in/api/userAuth/refresh-token', { method: 'POST', headers: { 'x-api-key': 'pk_live_YOUR_KEY', @@ -135,7 +135,7 @@ You can add any extra fields (e.g., `username`, `avatar`, `preferences`). urBack Revoke the current refresh session. After this call the refresh token is invalidated. ```javascript - await fetch('https://api.ub.bitbros.in/api/userAuth/logout', { + await fetch('https://api.urbackend.in/api/userAuth/logout', { method: 'POST', headers: { 'x-api-key': 'pk_live_YOUR_KEY' }, credentials: 'include' @@ -153,7 +153,7 @@ Returns the profile of the currently authenticated user. **Endpoint:** `GET /api/userAuth/me` ```javascript -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/me', { +const res = await fetch('https://api.urbackend.in/api/userAuth/me', { headers: { 'x-api-key': 'pk_live_YOUR_KEY', 'Authorization': `Bearer ${accessToken}` @@ -168,7 +168,7 @@ Update editable profile fields for the authenticated user. **Endpoint:** `PUT /api/userAuth/update-profile` ```javascript -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/update-profile', { +const res = await fetch('https://api.urbackend.in/api/userAuth/update-profile', { method: 'PUT', headers: { 'Content-Type': 'application/json', @@ -187,7 +187,7 @@ const res = await fetch('https://api.ub.bitbros.in/api/userAuth/update-profile', **Endpoint:** `PUT /api/userAuth/change-password` ```javascript -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/change-password', { +const res = await fetch('https://api.urbackend.in/api/userAuth/change-password', { method: 'PUT', headers: { 'Content-Type': 'application/json', @@ -208,7 +208,7 @@ Fetch a safe, public view of any user's profile by username. No authentication i **Endpoint:** `GET /api/userAuth/public/:username` ```javascript -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/public/dev_pulse', { +const res = await fetch('https://api.urbackend.in/api/userAuth/public/dev_pulse', { headers: { 'x-api-key': 'pk_live_YOUR_KEY' } }); ``` @@ -222,7 +222,7 @@ const res = await fetch('https://api.ub.bitbros.in/api/userAuth/public/dev_pulse **Endpoint:** `POST /api/userAuth/request-password-reset` ```javascript - const res = await fetch('https://api.ub.bitbros.in/api/userAuth/request-password-reset', { + const res = await fetch('https://api.urbackend.in/api/userAuth/request-password-reset', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -239,7 +239,7 @@ const res = await fetch('https://api.ub.bitbros.in/api/userAuth/public/dev_pulse **Endpoint:** `POST /api/userAuth/reset-password` ```javascript - const res = await fetch('https://api.ub.bitbros.in/api/userAuth/reset-password', { + const res = await fetch('https://api.urbackend.in/api/userAuth/reset-password', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -261,7 +261,7 @@ After sign-up, you can prompt users to verify their email address. **Endpoint:** `POST /api/userAuth/verify-email` ```javascript -const res = await fetch('https://api.ub.bitbros.in/api/userAuth/verify-email', { +const res = await fetch('https://api.urbackend.in/api/userAuth/verify-email', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/mintlify/docs/guides/database.mdx b/mintlify/docs/guides/database.mdx index e4db9151e..205d054a2 100644 --- a/mintlify/docs/guides/database.mdx +++ b/mintlify/docs/guides/database.mdx @@ -5,8 +5,8 @@ description: "Create, read, update, and delete documents in your MongoDB collect urBackend gives you a REST interface for your MongoDB collections with no SQL or aggregation pipelines required. Define your collections in the dashboard, then read and write data immediately. -**Base URL:** `https://api.ub.bitbros.in` -**Pattern:** `https://api.ub.bitbros.in/api/data/:collectionName` +**Base URL:** `https://api.urbackend.in` +**Pattern:** `https://api.urbackend.in/api/data/:collectionName` Replace `:collectionName` with the name of your collection (e.g., `posts`, `products`, `orders`). @@ -33,7 +33,7 @@ Use `sk_live` for server-side writes. Use `pk_live` + RLS + a user JWT to let au By default, write operations require your secret key (`sk_live_...`). If you enable RLS on the collection, you can also write with a publishable key and a valid user JWT. ```javascript -const res = await fetch('https://api.ub.bitbros.in/api/data/posts', { +const res = await fetch('https://api.urbackend.in/api/data/posts', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -64,7 +64,7 @@ Read operations use your publishable key (`pk_live_...`) and never expose your s **Endpoint:** `GET /api/data/:collectionName` ```bash -curl "https://api.ub.bitbros.in/api/data/posts" \ +curl "https://api.urbackend.in/api/data/posts" \ -H "x-api-key: pk_live_YOUR_KEY" ``` @@ -85,7 +85,7 @@ curl "https://api.ub.bitbros.in/api/data/posts" \ **Endpoint:** `GET /api/data/:collectionName/:id` ```bash -curl "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234" \ +curl "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234" \ -H "x-api-key: pk_live_YOUR_KEY" ``` @@ -121,7 +121,7 @@ You can append suffixes to field names in the query string to apply MongoDB comp **Filtering example — published posts, newest first, price strictly greater than 10 and strictly less than 50 (exclusive bounds):** ```bash -curl "https://api.ub.bitbros.in/api/data/posts?status=published&price_gt=10&price_lt=50&sort=-createdAt" \ +curl "https://api.urbackend.in/api/data/posts?status=published&price_gt=10&price_lt=50&sort=-createdAt" \ -H "x-api-key: pk_live_YOUR_KEY" ``` @@ -134,7 +134,7 @@ curl "https://api.ub.bitbros.in/api/data/posts?status=published&price_gt=10&pric ```javascript const postId = '64fd1234abcd5678ef901234'; -const res = await fetch(`https://api.ub.bitbros.in/api/data/posts/${postId}`, { +const res = await fetch(`https://api.urbackend.in/api/data/posts/${postId}`, { method: 'PUT', headers: { 'Content-Type': 'application/json', @@ -153,7 +153,7 @@ const res = await fetch(`https://api.ub.bitbros.in/api/data/posts/${postId}`, { **Endpoint:** `PATCH /api/data/:collectionName/:id` ```javascript -const res = await fetch(`https://api.ub.bitbros.in/api/data/posts/${postId}`, { +const res = await fetch(`https://api.urbackend.in/api/data/posts/${postId}`, { method: 'PATCH', headers: { 'Content-Type': 'application/json', @@ -170,7 +170,7 @@ const res = await fetch(`https://api.ub.bitbros.in/api/data/posts/${postId}`, { When you delete a document using `DELETE /api/data/:collectionName/:id`, your backend moves it to the trash instead of removing it immediately. ```bash -curl -X DELETE "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234" \ +curl -X DELETE "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234" \ -H "x-api-key: sk_live_YOUR_KEY" ``` @@ -191,7 +191,7 @@ You can skip the grace period from the dashboard, the REST API, or the SDKs. Per ```bash curl -curl -X DELETE "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234?permanent=true" \ +curl -X DELETE "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234?permanent=true" \ -H "x-api-key: sk_live_YOUR_KEY" ``` diff --git a/mintlify/docs/guides/mail-platform.mdx b/mintlify/docs/guides/mail-platform.mdx index e09f50b37..e8141133a 100644 --- a/mintlify/docs/guides/mail-platform.mdx +++ b/mintlify/docs/guides/mail-platform.mdx @@ -127,7 +127,7 @@ Validation notes: ```bash curl -curl -X POST "https://api.ub.bitbros.in/api/mail/send" \ +curl -X POST "https://api.urbackend.in/api/mail/send" \ -H "Content-Type: application/json" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" \ -d '{ @@ -216,7 +216,7 @@ Validation is enforced by a strict Zod schema on every batch call: ```bash curl -curl -X POST "https://api.ub.bitbros.in/api/mail/send-batch" \ +curl -X POST "https://api.urbackend.in/api/mail/send-batch" \ -H "Content-Type: application/json" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" \ -d '[ @@ -265,7 +265,7 @@ Sorting/pagination behavior: ```bash curl -curl "https://api.ub.bitbros.in/api/mail/logs" \ +curl "https://api.urbackend.in/api/mail/logs" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" ``` @@ -279,7 +279,7 @@ console.log(logs); Dashboard API variant (bearer auth): ```bash -curl "https://dashboard-api.ub.bitbros.in/api/projects//mail/logs" \ +curl "https://platform-api.urbackend.in/api/projects//mail/logs" \ -H "Authorization: Bearer " ``` @@ -295,7 +295,7 @@ Use live status when you need real-time provider status. Use stored logs for ana ```bash curl -curl "https://api.ub.bitbros.in/api/mail/logs/re_123" \ +curl "https://api.urbackend.in/api/mail/logs/re_123" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" ``` @@ -309,7 +309,7 @@ console.log(status.dbLog, status.resendStatus); Dashboard API live check: ```bash -curl "https://dashboard-api.ub.bitbros.in/api/projects//mail/logs/re_123/live" \ +curl "https://platform-api.urbackend.in/api/projects//mail/logs/re_123/live" \ -H "Authorization: Bearer " ``` @@ -328,15 +328,15 @@ Error status/message semantics follow upstream Resend responses where applicable ```bash curl -curl "https://api.ub.bitbros.in/api/mail/audiences" \ +curl "https://api.urbackend.in/api/mail/audiences" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" -curl -X POST "https://api.ub.bitbros.in/api/mail/audiences" \ +curl -X POST "https://api.urbackend.in/api/mail/audiences" \ -H "Content-Type: application/json" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" \ -d '{"name":"VIP Customers"}' -curl -X DELETE "https://api.ub.bitbros.in/api/mail/audiences/aud_123" \ +curl -X DELETE "https://api.urbackend.in/api/mail/audiences/aud_123" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" ``` @@ -362,7 +362,7 @@ Contact payload fields: ```bash curl -curl -X POST "https://api.ub.bitbros.in/api/mail/audiences/aud_123/contacts" \ +curl -X POST "https://api.urbackend.in/api/mail/audiences/aud_123/contacts" \ -H "Content-Type: application/json" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" \ -d '{ @@ -392,15 +392,15 @@ For the remaining contact endpoints: ```bash curl -curl "https://api.ub.bitbros.in/api/mail/audiences/aud_123/contacts" \ +curl "https://api.urbackend.in/api/mail/audiences/aud_123/contacts" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" -curl -X PATCH "https://api.ub.bitbros.in/api/mail/audiences/aud_123/contacts/ct_123" \ +curl -X PATCH "https://api.urbackend.in/api/mail/audiences/aud_123/contacts/ct_123" \ -H "Content-Type: application/json" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" \ -d '{"firstName":"Ada","unsubscribed":true}' -curl -X DELETE "https://api.ub.bitbros.in/api/mail/audiences/aud_123/contacts/ct_123" \ +curl -X DELETE "https://api.urbackend.in/api/mail/audiences/aud_123/contacts/ct_123" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" ``` @@ -443,7 +443,7 @@ Broadcast create/send/list/detail/delete paths run behind mail usage gating midd ```bash curl # 1) Create -curl -X POST "https://api.ub.bitbros.in/api/mail/broadcasts" \ +curl -X POST "https://api.urbackend.in/api/mail/broadcasts" \ -H "Content-Type: application/json" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" \ -d '{ @@ -454,7 +454,7 @@ curl -X POST "https://api.ub.bitbros.in/api/mail/broadcasts" \ }' # 2) Send -curl -X POST "https://api.ub.bitbros.in/api/mail/broadcasts/brd_123/send" \ +curl -X POST "https://api.urbackend.in/api/mail/broadcasts/brd_123/send" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" ``` @@ -477,13 +477,13 @@ Other broadcast endpoints: ```bash curl -curl "https://api.ub.bitbros.in/api/mail/broadcasts" \ +curl "https://api.urbackend.in/api/mail/broadcasts" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" -curl "https://api.ub.bitbros.in/api/mail/broadcasts/brd_123" \ +curl "https://api.urbackend.in/api/mail/broadcasts/brd_123" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" -curl -X DELETE "https://api.ub.bitbros.in/api/mail/broadcasts/brd_123" \ +curl -X DELETE "https://api.urbackend.in/api/mail/broadcasts/brd_123" \ -H "x-api-key: sk_live_YOUR_SECRET_KEY" ``` @@ -528,7 +528,7 @@ Resend controls webhook retries for non-2xx/timeout outcomes. Keep endpoint idem ```bash curl -curl -X POST "https://api.ub.bitbros.in/api/mail/webhook" \ +curl -X POST "https://api.urbackend.in/api/mail/webhook" \ -H "Content-Type: application/json" \ -H "svix-id: " \ -H "svix-timestamp: " \ @@ -537,7 +537,7 @@ curl -X POST "https://api.ub.bitbros.in/api/mail/webhook" \ ``` ```ts JavaScript (server webhook simulator) -await fetch('https://api.ub.bitbros.in/api/mail/webhook', { +await fetch('https://api.urbackend.in/api/mail/webhook', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/mintlify/docs/guides/social-auth.mdx b/mintlify/docs/guides/social-auth.mdx index ef5de591d..813ecb947 100644 --- a/mintlify/docs/guides/social-auth.mdx +++ b/mintlify/docs/guides/social-auth.mdx @@ -5,7 +5,7 @@ description: "Let your users sign in with GitHub or Google using OAuth." urBackend supports OAuth sign-in via GitHub and Google. Once configured, your users can authenticate without creating a password — urBackend creates or links their account automatically. -**Base URL:** `https://api.ub.bitbros.in` +**Base URL:** `https://api.urbackend.in` ## How the flow works @@ -32,7 +32,7 @@ After a successful login, urBackend redirects the user to `/auth/call urBackend displays a read-only callback URL for the selected provider: ``` - https://api.ub.bitbros.in/api/userAuth/social/github/callback + https://api.urbackend.in/api/userAuth/social/github/callback ``` Copy this URL — you will register it with the provider in the next step. @@ -59,7 +59,7 @@ When a user clicks "Login with GitHub" or "Login with Google", redirect their br ```jsx // components/LoginButtons.jsx const API_KEY = 'pk_live_YOUR_KEY'; -const API_URL = 'https://api.ub.bitbros.in'; +const API_URL = 'https://api.urbackend.in'; function LoginButtons() { const handleGitHubLogin = () => { @@ -121,7 +121,7 @@ function AuthCallback() { } // Exchange rtCode for a refresh token - const response = await fetch('https://api.ub.bitbros.in/api/userAuth/social/exchange', { + const response = await fetch('https://api.urbackend.in/api/userAuth/social/exchange', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/mintlify/docs/guides/storage.mdx b/mintlify/docs/guides/storage.mdx index 9d1b5c6a3..a3df2855e 100644 --- a/mintlify/docs/guides/storage.mdx +++ b/mintlify/docs/guides/storage.mdx @@ -5,7 +5,7 @@ description: "Upload files and images to get public CDN URLs. No S3 buckets or c urBackend handles file and image uploads for you. Upload a file and receive a public CDN URL you can use directly in your application. -**Base URL:** `https://api.ub.bitbros.in` +**Base URL:** `https://api.urbackend.in` All storage endpoints require your **secret key** (`sk_live_...`) in the `x-api-key` header. These operations should only be performed server-side. @@ -118,7 +118,7 @@ if (!fileInput?.files?.length) { const file = fileInput.files[0]; -const requestRes = await fetch('https://api.ub.bitbros.in/api/storage/upload-request', { +const requestRes = await fetch('https://api.urbackend.in/api/storage/upload-request', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -152,7 +152,7 @@ if (!uploadRes.ok) { throw new Error(`Upload failed: ${uploadRes.status} ${uploadRes.statusText}`); } -const confirmRes = await fetch('https://api.ub.bitbros.in/api/storage/upload-confirm', { +const confirmRes = await fetch('https://api.urbackend.in/api/storage/upload-confirm', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -210,7 +210,7 @@ To delete a file, pass the `path` returned from the upload response. **Endpoint:** `DELETE /api/storage/file` ```javascript -await fetch('https://api.ub.bitbros.in/api/storage/file', { +await fetch('https://api.urbackend.in/api/storage/file', { method: 'DELETE', headers: { 'Content-Type': 'application/json', diff --git a/mintlify/docs/guides/webhooks.mdx b/mintlify/docs/guides/webhooks.mdx index 345248ee2..e90c71409 100644 --- a/mintlify/docs/guides/webhooks.mdx +++ b/mintlify/docs/guides/webhooks.mdx @@ -5,7 +5,7 @@ description: "Receive real-time HTTP notifications when data is created, updated Webhooks let urBackend notify your server the moment data changes in your collections. You can use them to trigger workflows, sync external systems, send notifications, or connect to services like AWS Lambda or Zapier. -**Base URL:** `https://api.ub.bitbros.in` +**Base URL:** `https://api.urbackend.in` ## Creating a webhook diff --git a/mintlify/docs/index.mdx b/mintlify/docs/index.mdx index 644afbcb1..4d8485f9f 100644 --- a/mintlify/docs/index.mdx +++ b/mintlify/docs/index.mdx @@ -28,7 +28,7 @@ urBackend is a Backend-as-a-Service (BaaS) that gives your frontend instant, sec - Sign up at the [urBackend Dashboard](https://urbackend.bitbros.in) and create a new project. You'll receive a publishable key (`pk_live_...`) and a secret key (`sk_live_...`). + Sign up at the [urBackend Dashboard](https://app.urbackend.in) and create a new project. You'll receive a publishable key (`pk_live_...`) and a secret key (`sk_live_...`). In the **Database** tab, create collections and optionally define schemas with field types and validation rules. diff --git a/mintlify/docs/introduction.mdx b/mintlify/docs/introduction.mdx index d3fa641ac..956b502a0 100644 --- a/mintlify/docs/introduction.mdx +++ b/mintlify/docs/introduction.mdx @@ -51,7 +51,7 @@ Your data stays in your database. urBackend provides the API layer, authenticati Once you have a project and a collection set up, reading data requires only your publishable key: ```javascript -const response = await fetch('https://api.ub.bitbros.in/api/data/products', { +const response = await fetch('https://api.urbackend.in/api/data/products', { headers: { 'x-api-key': 'pk_live_...' } diff --git a/mintlify/docs/quickstart.mdx b/mintlify/docs/quickstart.mdx index f8071e0e9..2f220ffe8 100644 --- a/mintlify/docs/quickstart.mdx +++ b/mintlify/docs/quickstart.mdx @@ -5,11 +5,11 @@ description: "Go from a blank project to live read/write API endpoints in under ## Prerequisites -You need a [urBackend account](https://urbackend.bitbros.in) and a MongoDB connection string (Atlas free tier works). The base URL for all API calls is `https://api.ub.bitbros.in`. +You need a [urBackend account](https://app.urbackend.in) and a MongoDB connection string (Atlas free tier works). The base URL for all API calls is `https://api.urbackend.in`. - Open the [urBackend Dashboard](https://urbackend.bitbros.in) and create a new project. During setup, you will provide your MongoDB connection string. + Open the [urBackend Dashboard](https://app.urbackend.in) and create a new project. During setup, you will provide your MongoDB connection string. Once the project is created, navigate to **Settings** to find your two API keys: @@ -42,14 +42,14 @@ You need a [urBackend account](https://urbackend.bitbros.in) and a MongoDB conne ```bash curl - curl -X POST "https://api.ub.bitbros.in/api/data/products" \ + curl -X POST "https://api.urbackend.in/api/data/products" \ -H "x-api-key: sk_live_..." \ -H "Content-Type: application/json" \ -d '{"name": "Widget", "price": 9.99, "inStock": true}' ``` ```javascript fetch - const response = await fetch('https://api.ub.bitbros.in/api/data/products', { + const response = await fetch('https://api.urbackend.in/api/data/products', { method: 'POST', headers: { 'x-api-key': 'sk_live_...', @@ -74,12 +74,12 @@ You need a [urBackend account](https://urbackend.bitbros.in) and a MongoDB conne ```bash curl - curl "https://api.ub.bitbros.in/api/data/products" \ + curl "https://api.urbackend.in/api/data/products" \ -H "x-api-key: pk_live_..." ``` ```javascript fetch - const response = await fetch('https://api.ub.bitbros.in/api/data/products', { + const response = await fetch('https://api.urbackend.in/api/data/products', { headers: { 'x-api-key': 'pk_live_...' } diff --git a/mintlify/docs/react-sdk/ur-provider.mdx b/mintlify/docs/react-sdk/ur-provider.mdx index 39aecea50..01abd070b 100644 --- a/mintlify/docs/react-sdk/ur-provider.mdx +++ b/mintlify/docs/react-sdk/ur-provider.mdx @@ -29,6 +29,10 @@ function App() { | `baseUrl` | `string` | No | Overrides the default urBackend API URL. Useful for self-hosted instances. | | `children` | `React.ReactNode` | Yes | The components to render inside the provider. | + + The public API now lives at `https://api.urbackend.in`. The previous host is deprecated after 30 October 2026. If your SDK version still defaults to the previous host, pass `baseUrl="https://api.urbackend.in"` to ``. + + ## How it works When `` mounts, it automatically: diff --git a/mintlify/docs/sdk/database.mdx b/mintlify/docs/sdk/database.mdx index f3709c49a..a8e4b90c0 100644 --- a/mintlify/docs/sdk/database.mdx +++ b/mintlify/docs/sdk/database.mdx @@ -4,7 +4,7 @@ description: "Read, insert, update, and delete documents in any collection using keywords: ["database", "collections", "crud", "sdk", "typescript", "rls", "query builder"] --- -Access database methods via `client.db`. Collections must be created in the [urBackend Dashboard](https://urbackend.bitbros.in) before you can interact with them. +Access database methods via `client.db`. Collections must be created in the [urBackend Dashboard](https://app.urbackend.in) before you can interact with them. Methods that return documents accept a generic type parameter `T` (extending `DocumentData`) so returned documents are fully typed. Methods like `delete()` return status objects and do not accept `T`. diff --git a/mintlify/docs/sdk/overview.mdx b/mintlify/docs/sdk/overview.mdx index 180ef4516..04998fd7f 100644 --- a/mintlify/docs/sdk/overview.mdx +++ b/mintlify/docs/sdk/overview.mdx @@ -30,6 +30,17 @@ The factory accepts a `UrBackendConfig` object: | `baseUrl` | `string` | No | Override the default API base URL. | | `headers` | `Record` | No | Additional headers sent with every request. | + + The public API now lives at `https://api.urbackend.in`. The previous host, `https://api.ub.bitbros.in`, is deprecated after 30 October 2026. If your SDK version still defaults to the previous host, set `baseUrl` explicitly: + + ```typescript + const client = urBackend({ + apiKey: process.env.URBACKEND_API_KEY, + baseUrl: 'https://api.urbackend.in' + }); + ``` + + ## Quick example ```typescript