Appearance
Partner / Integrator Guide
This guide is for external partners, affiliate systems, and third-party integrators who need programmatic access to CBS data — for example, to read bookings, query availability, submit rental requests, or receive webhook-style updates.
API base URL
| Environment | Base URL (Mobility Network SaaS) | Base URL (Tenant Domain) |
|---|---|---|
| Production | https://cbs.mobilitynet.work | https://cbs.minute.rentals |
| Staging | https://staging.cbs.mobilitynet.work | https://staging.cbs.minute.rentals |
All API routes are under /api/ — e.g. https://cbs.mobilitynet.work/api/get-bookings.
Interactive API reference
The full OpenAPI spec and interactive Swagger UI are available at:
- Swagger UI (try it live):
https://cbs.mobilitynet.work/docs - OpenAPI JSON spec:
https://cbs.mobilitynet.work/openapi.json - Developer docs & guide:
https://cbs.mobilitynet.work/docs
The spec documents every endpoint, request/response schema, and required auth headers. Use it to explore available routes and test requests before writing code.
Authentication
CBS supports three authentication methods. Partners and integrators should use JWT Bearer tokens or OAuth2 depending on the integration type.
Method 1 — JWT Bearer token (recommended for server-to-server)
Step 1: Get a token
http
POST https://cbs.minute.rentals/api/token
Content-Type: application/json
{
"email": "partner@minute.rentals",
"password": "your-password"
}Response:
json
{
"data": {
"token": "eyJhbGci..."
}
}Tokens expire after 24 hours. The token is also set as an HttpOnly cookie (mcr_login_token) if the request comes from a browser.
Two-factor login (when enabled). If two-factor login is switched on for the environment, POST /api/token does not return a token. It sends a 6-digit code to the account's WhatsApp number and answers 202:
json
{
"success": true,
"status": "otp_required",
"method": "whatsapp",
"nonce": "b3f1c2d4-…",
"phone_hint": "••1234",
"expires_in": 600,
"resend_after": 60
}Finish the login with the code to receive the token (same response and cookie as above):
http
POST https://cbs.minute.rentals/api/token/verify/
Content-Type: application/json
{ "nonce": "b3f1c2d4-…", "code": "123456" }The code is valid for 10 minutes and allows 5 attempts. POST /api/token/resend-otp/ with { "nonce" } sends a new code (after 60 seconds, at most 3 times). Error responses carry a machine-readable status: invalid_code (with attempts_remaining), otp_expired, otp_exhausted, otp_already_used, invalid_nonce, otp_no_phone, otp_send_failed, otp_rate_limited, resend_too_soon (with retry_after) and resend_limit. Unattended integrations cannot complete this step; contact the CBS team before two-factor login is enabled.
Step 2: Use the token
Include it in every API request as a Bearer header:
http
GET https://cbs.minute.rentals/api/get-bookings
Authorization: Bearer eyJhbGci...The JWT payload includes:
data.user— the authenticated user objectdata.tokens— role permission tokens (used for access control)iat— issued-at timestampexp— expiry timestamp
Method 2 — OAuth2 (recommended for user-facing integrations)
CBS implements an OAuth2 implicit flow for third-party apps that act on behalf of a user:
- Authorization URL:
https://cbs.minute.rentals/oauth/authorize - Scopes:
read:bookings— read booking datawrite:bookings— create/modify bookings
Use this flow when your application needs a user to grant access to their CBS data (similar to "Sign in with Google" style flows).
Method 3 — Basic auth
HTTP Basic auth is supported for simple integrations:
http
GET https://cbs.minute.rentals/api/get-bookings
Authorization: Basic base64(email:password)WARNING
Basic auth sends credentials on every request. Only use over HTTPS and prefer JWT tokens for any production integration.
Rate limits
All endpoints are rate-limited to 100 requests per minute per IP address. Responses beyond this limit return 429 Too Many Requests. Implement exponential back-off on retries.
Public endpoints (no auth required)
These endpoints are open — no token needed. They are designed for customer-facing widgets, booking portals, and affiliate landing pages:
| Endpoint | Description |
|---|---|
GET /api/public/bookings/ | Look up a booking by reference (for customer self-service) |
GET /api/public/rental-classes/ | Browse available vehicle rental classes and pricing |
GET /api/public/rentals/insurance-plans/ | Browse available insurance plans |
GET /api/public/rentals/verify/ | Verify a rental/booking reference |
POST /api/public/rentals/request/ | Submit a rental enquiry or booking request |
GET /api/public/booking/:BOOKING_ID/extensions/ | View extension options for an existing booking |
POST /api/public/booking/:BOOKING_ID/extension-request/ | Request an extension on an existing booking |
GET /api/public/booking/:BOOKING_ID/contract/ | View a booking contract (for signing) |
PATCH /api/public/booking/:BOOKING_ID/contract/ | Submit a contract signature |
PATCH /api/public/booking/:BOOKING_ID/profile/ | Update booking profile details |
GET /api/public/settings/ | Public settings (brand info, contact) |
GET /api/public/data/offices/ | Office locations |
GET /api/public/data/locations/ | Pickup/drop-off locations |
GET /api/public/data/addons/ | Available booking addons |
Authenticated data endpoints
These require a valid JWT Bearer token. They use the same shared query shape:
GET /api/get-bookings?search=abc&filters[status]=confirmed&page=1&per_page=20| Parameter | Description |
|---|---|
search | Full-text search string |
filters | Field filters — dot-notation supported (e.g. filters[customer.email]=x) |
joins | Related collections to include |
order_by | Sort field and direction |
group_by | Grouping field |
fields | Field projection (include/exclude) |
page | Page number (1-indexed) |
per_page | Results per page |
Key authenticated endpoints for partners:
| Endpoint | Description |
|---|---|
GET /api/get-bookings | Query bookings |
GET /api/get-customers | Query customers |
GET /api/get-claims | Query claims |
GET /api/get-expenses | Query expenses |
GET /api/get-transactions | Query ledger transactions |
GET /api/get-settings | Read settings (admin-scoped) |
POST /api/post-booking | Create a booking |
PATCH /api/patch-booking | Update a booking |
Error handling
All responses follow standard HTTP status codes:
| Code | Meaning |
|---|---|
200 | Success |
400 | Bad request — check your request body / params |
401 | Unauthorized — missing or invalid token |
403 | Forbidden — valid token but insufficient permissions |
404 | Not found |
429 | Rate limit exceeded |
5xx | Server error — contact support |
Error responses include a JSON body:
json
{
"success": false,
"error": "Unauthorized",
"message": "Invalid email or password. Please try again."
}Token decoded payload
When you decode the JWT (using any JWT library), the payload shape is:
json
{
"data": {
"user": {
"user_id": "...",
"email": "partner@minute.rentals",
"first_name": "...",
"last_name": "...",
"role": { ... },
"office": { "id": "...", "name": "..." }
},
"tokens": {}
},
"enable_environment_access_protocol": false,
"environment": "production",
"iat": 1700000000,
"exp": 1700086400
}Use exp to check token expiry before making requests — re-authenticate before it lapses.
Example: fetch available rental classes
No auth needed — use the public endpoint:
js
const res = await fetch('https://cbs.minute.rentals/api/public/rental-classes/');
const { data } = await res.json();
// data = array of rental class objects with id, name, pricing, etc.Example: query bookings with auth
js
const token = 'eyJhbGci...'; // from POST /api/token
const res = await fetch(
'https://cbs.minute.rentals/api/get-bookings?filters[trip.status]=confirmed&page=1&per_page=10',
{ headers: { Authorization: `Bearer ${token}` } }
);
const { data } = await res.json();Example: submit a rental request
js
const res = await fetch('https://cbs.minute.rentals/api/public/rentals/request/', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
customer_name: 'Jane Smith',
customer_email: 'jane@example.com',
customer_phone: '18765551234',
pickup_date: '2025-08-01T10:00:00',
dropoff_date: '2025-08-07T10:00:00',
rental_class: 'economy',
pickup_location_id: '1'
})
});Getting access
To get partner API credentials:
- Contact
gcp-dev@cognitivtraits.uswith your integration use case. - An admin account will be provisioned with an appropriate role scoped to the data you need.
- You will receive credentials for
POST /api/token. - For OAuth2 integrations, the authorization URL and your client details will be provided separately.
Quick links
- Interactive API docs:
https://cbs.mobilitynet.work/docs - OpenAPI spec JSON:
https://cbs.mobilitynet.work/openapi.json - Developer docs:
https://mobilitynet.work/developer/docs - Getting Started — role guides overview
- Knowledge Base — operational procedures