Skip to content

Commit 2f50ad0

Browse files
docs: migrate URLs to urbackend.in domains and add deprecation notice
1 parent 64a6369 commit 2f50ad0

31 files changed

Lines changed: 145 additions & 115 deletions

‎mintlify/docs/api-reference/auth/login.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The refresh token is issued alongside the access token and delivered differently
6363
<CodeGroup>
6464

6565
```javascript fetch
66-
const res = await fetch('https://api.ub.bitbros.in/api/userAuth/login', {
66+
const res = await fetch('https://api.urbackend.in/api/userAuth/login', {
6767
method: 'POST',
6868
headers: {
6969
'Content-Type': 'application/json',
@@ -80,7 +80,7 @@ const { accessToken, expiresIn, user } = await res.json();
8080
```
8181

8282
```bash curl
83-
curl -X POST "https://api.ub.bitbros.in/api/userAuth/login" \
83+
curl -X POST "https://api.urbackend.in/api/userAuth/login" \
8484
-H "Content-Type: application/json" \
8585
-H "x-api-key: pk_live_YOUR_KEY" \
8686
-c cookies.txt \

‎mintlify/docs/api-reference/auth/logout.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Like the refresh endpoint, logout needs to read the current refresh token to kno
2929
<CodeGroup>
3030

3131
```javascript Web (cookie)
32-
await fetch('https://api.ub.bitbros.in/api/userAuth/logout', {
32+
await fetch('https://api.urbackend.in/api/userAuth/logout', {
3333
method: 'POST',
3434
headers: {
3535
'x-api-key': 'pk_live_YOUR_KEY'
@@ -39,7 +39,7 @@ await fetch('https://api.ub.bitbros.in/api/userAuth/logout', {
3939
```
4040

4141
```javascript Mobile (header)
42-
await fetch('https://api.ub.bitbros.in/api/userAuth/logout', {
42+
await fetch('https://api.urbackend.in/api/userAuth/logout', {
4343
method: 'POST',
4444
headers: {
4545
'x-api-key': 'pk_live_YOUR_KEY',
@@ -49,7 +49,7 @@ await fetch('https://api.ub.bitbros.in/api/userAuth/logout', {
4949
```
5050

5151
```bash curl
52-
curl -X POST "https://api.ub.bitbros.in/api/userAuth/logout" \
52+
curl -X POST "https://api.urbackend.in/api/userAuth/logout" \
5353
-H "x-api-key: pk_live_YOUR_KEY" \
5454
-b cookies.txt
5555
```

‎mintlify/docs/api-reference/auth/me.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Returns the full profile of the currently signed-in user. The response never inc
3434
<CodeGroup>
3535

3636
```javascript fetch
37-
const res = await fetch('https://api.ub.bitbros.in/api/userAuth/me', {
37+
const res = await fetch('https://api.urbackend.in/api/userAuth/me', {
3838
headers: {
3939
'x-api-key': 'pk_live_YOUR_KEY',
4040
'Authorization': `Bearer ${accessToken}`
@@ -45,7 +45,7 @@ const user = await res.json();
4545
```
4646

4747
```bash curl
48-
curl "https://api.ub.bitbros.in/api/userAuth/me" \
48+
curl "https://api.urbackend.in/api/userAuth/me" \
4949
-H "x-api-key: pk_live_YOUR_KEY" \
5050
-H "Authorization: Bearer ACCESS_TOKEN"
5151
```
@@ -93,7 +93,7 @@ Returns a public-safe view of a user's profile. No authentication is required.
9393
### Code Example
9494

9595
```javascript
96-
const res = await fetch('https://api.ub.bitbros.in/api/userAuth/public/alice_dev', {
96+
const res = await fetch('https://api.urbackend.in/api/userAuth/public/alice_dev', {
9797
headers: {
9898
'x-api-key': 'pk_live_YOUR_KEY'
9999
}

‎mintlify/docs/api-reference/auth/refresh-token.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Include the refresh token in the `x-refresh-token` header, and set `x-refresh-to
4545

4646
```javascript Web (cookie)
4747
// Browser: credentials: 'include' sends the HTTP-only cookie automatically
48-
const res = await fetch('https://api.ub.bitbros.in/api/userAuth/refresh-token', {
48+
const res = await fetch('https://api.urbackend.in/api/userAuth/refresh-token', {
4949
method: 'POST',
5050
headers: {
5151
'x-api-key': 'pk_live_YOUR_KEY'
@@ -58,7 +58,7 @@ const { accessToken: newAccessToken } = await res.json();
5858

5959
```javascript Mobile (header)
6060
// Mobile / non-browser: pass the refresh token explicitly in a header
61-
const res = await fetch('https://api.ub.bitbros.in/api/userAuth/refresh-token', {
61+
const res = await fetch('https://api.urbackend.in/api/userAuth/refresh-token', {
6262
method: 'POST',
6363
headers: {
6464
'x-api-key': 'pk_live_YOUR_KEY',

‎mintlify/docs/api-reference/auth/signup.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Creates a new user account and returns an access token. Any extra fields defined
6363
<CodeGroup>
6464

6565
```javascript fetch
66-
const res = await fetch('https://api.ub.bitbros.in/api/userAuth/signup', {
66+
const res = await fetch('https://api.urbackend.in/api/userAuth/signup', {
6767
method: 'POST',
6868
headers: {
6969
'Content-Type': 'application/json',
@@ -82,7 +82,7 @@ const { user, accessToken } = await res.json();
8282
```
8383

8484
```bash curl
85-
curl -X POST "https://api.ub.bitbros.in/api/userAuth/signup" \
85+
curl -X POST "https://api.urbackend.in/api/userAuth/signup" \
8686
-H "Content-Type: application/json" \
8787
-H "x-api-key: pk_live_YOUR_KEY" \
8888
-d '{

‎mintlify/docs/api-reference/auth/social.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Before using these endpoints you need to configure the OAuth provider in your pr
1111

1212
1. Go to **Project Settings** and add your frontend URL as the **Site URL** (e.g., `https://myapp.com`).
1313
2. Go to **Auth → Social Auth** and select GitHub or Google.
14-
3. Copy the read-only **Callback URL** shown by urBackend (e.g., `https://api.ub.bitbros.in/api/userAuth/social/github/callback`).
14+
3. Copy the read-only **Callback URL** shown by urBackend (e.g., `https://api.urbackend.in/api/userAuth/social/github/callback`).
1515
4. Register that callback URL in the provider's OAuth app settings (GitHub: **Developer Settings → OAuth Apps**; Google: **Cloud Console → Credentials**).
1616
5. Paste the provider's **Client ID** and **Client Secret** into urBackend and enable the provider.
1717

@@ -36,11 +36,11 @@ Redirects the user's browser to the provider login page. Because this is a brows
3636
```javascript
3737
// Redirect the user to start the OAuth flow
3838
window.location.href =
39-
'https://api.ub.bitbros.in/api/userAuth/social/github/start?x-api-key=pk_live_YOUR_KEY';
39+
'https://api.urbackend.in/api/userAuth/social/github/start?x-api-key=pk_live_YOUR_KEY';
4040

4141
// Or for Google:
4242
window.location.href =
43-
'https://api.ub.bitbros.in/api/userAuth/social/google/start?x-api-key=pk_live_YOUR_KEY';
43+
'https://api.urbackend.in/api/userAuth/social/google/start?x-api-key=pk_live_YOUR_KEY';
4444
```
4545

4646
After the user authenticates with the provider, urBackend redirects them to:
@@ -146,7 +146,7 @@ function AuthCallback() {
146146
}
147147

148148
// Exchange rtCode for refresh token
149-
const res = await fetch('https://api.ub.bitbros.in/api/userAuth/social/exchange', {
149+
const res = await fetch('https://api.urbackend.in/api/userAuth/social/exchange', {
150150
method: 'POST',
151151
headers: {
152152
'Content-Type': 'application/json',

‎mintlify/docs/api-reference/data/aggregate.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If Row-Level Security (RLS) is enabled, your backend automatically injects a `$m
5757

5858
```javascript fetch
5959
const res = await fetch(
60-
'https://api.ub.bitbros.in/api/data/orders/aggregate',
60+
'https://api.urbackend.in/api/data/orders/aggregate',
6161
{
6262
method: 'POST',
6363
headers: {
@@ -78,7 +78,7 @@ const { success, data } = await res.json();
7878
```
7979

8080
```bash curl
81-
curl -X POST "https://api.ub.bitbros.in/api/data/orders/aggregate?include_deleted=false" \
81+
curl -X POST "https://api.urbackend.in/api/data/orders/aggregate?include_deleted=false" \
8282
-H "Content-Type: application/json" \
8383
-H "x-api-key: pk_live_YOUR_KEY" \
8484
-d '{

‎mintlify/docs/api-reference/data/delete.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ When using `pk_live` with RLS enabled, urBackend compares the existing document'
5555
const docId = '64fd1234abcd5678ef901234';
5656

5757
const res = await fetch(
58-
`https://api.ub.bitbros.in/api/data/posts/${docId}`,
58+
`https://api.urbackend.in/api/data/posts/${docId}`,
5959
{
6060
method: 'DELETE',
6161
headers: {
@@ -71,7 +71,7 @@ const { success, data, message } = await res.json();
7171
const docId = '64fd1234abcd5678ef901234';
7272

7373
const res = await fetch(
74-
`https://api.ub.bitbros.in/api/data/posts/${docId}`,
74+
`https://api.urbackend.in/api/data/posts/${docId}`,
7575
{
7676
method: 'DELETE',
7777
headers: {
@@ -83,12 +83,12 @@ const res = await fetch(
8383
```
8484

8585
```bash curl
86-
curl -X DELETE "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234" \
86+
curl -X DELETE "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234" \
8787
-H "x-api-key: sk_live_YOUR_SECRET_KEY"
8888
```
8989

9090
```bash curl (permanent)
91-
curl -X DELETE "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234?permanent=true" \
91+
curl -X DELETE "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234?permanent=true" \
9292
-H "x-api-key: sk_live_YOUR_SECRET_KEY"
9393
```
9494

‎mintlify/docs/api-reference/data/get-all.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const params = new URLSearchParams({
9999
});
100100

101101
const res = await fetch(
102-
`https://api.ub.bitbros.in/api/data/posts?${params}`,
102+
`https://api.urbackend.in/api/data/posts?${params}`,
103103
{
104104
headers: {
105105
'x-api-key': 'pk_live_YOUR_KEY'
@@ -113,12 +113,12 @@ const { data } = await res.json();
113113
```
114114

115115
```bash curl
116-
curl "https://api.ub.bitbros.in/api/data/posts?page=1&limit=10&sort=-createdAt&status=published&include_deleted=true" \
116+
curl "https://api.urbackend.in/api/data/posts?page=1&limit=10&sort=-createdAt&status=published&include_deleted=true" \
117117
-H "x-api-key: pk_live_YOUR_KEY"
118118
```
119119

120120
```javascript Private collection (RLS)
121-
const res = await fetch('https://api.ub.bitbros.in/api/data/notes', {
121+
const res = await fetch('https://api.urbackend.in/api/data/notes', {
122122
headers: {
123123
'x-api-key': 'pk_live_YOUR_KEY',
124124
'Authorization': `Bearer ${accessToken}` // Required for private-mode collections

‎mintlify/docs/api-reference/data/get-one.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The endpoint returns the document object directly.
6363
const docId = '64fd1234abcd5678ef901234';
6464

6565
const res = await fetch(
66-
`https://api.ub.bitbros.in/api/data/posts/${docId}?include_deleted=true`,
66+
`https://api.urbackend.in/api/data/posts/${docId}?include_deleted=true`,
6767
{
6868
headers: {
6969
'x-api-key': 'pk_live_YOUR_KEY'
@@ -76,7 +76,7 @@ const doc = await res.json();
7676
```
7777

7878
```bash curl
79-
curl "https://api.ub.bitbros.in/api/data/posts/64fd1234abcd5678ef901234?include_deleted=true" \
79+
curl "https://api.urbackend.in/api/data/posts/64fd1234abcd5678ef901234?include_deleted=true" \
8080
-H "x-api-key: pk_live_YOUR_KEY"
8181
```
8282

0 commit comments

Comments
 (0)