Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
This API is not authenticated.
Authentication
Register
Example request:
curl --request POST \
"http://carento.test/api/v1/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"John\",
\"last_name\": \"Smith\",
\"name\": \"consequatur\",
\"email\": \"qkunze@example.com\",
\"password\": \"O[2UZ5ij-e\\/dl4m{o,\",
\"phone\": \"consequatur\",
\"password_confirmation\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "John",
"last_name": "Smith",
"name": "consequatur",
"email": "qkunze@example.com",
"password": "O[2UZ5ij-e\/dl4m{o,",
"phone": "consequatur",
"password_confirmation": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": null,
"message": "Registered successfully! We emailed you to verify your account!"
}
Example response (422):
{
"message": "The given data was invalid.",
"errors": {
"name": [
"The name field is required."
],
"email": [
"The email field is required."
],
"password": [
"The password field is required."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Login
Example request:
curl --request POST \
"http://carento.test/api/v1/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\",
\"password\": \"O[2UZ5ij-e\\/dl4m{o,\"
}"
const url = new URL(
"http://carento.test/api/v1/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com",
"password": "O[2UZ5ij-e\/dl4m{o,"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|aF5s7p3xxx1lVL8hkSrPN72m4wPVpTvTs..."
},
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Check email existing or not
Example request:
curl --request POST \
"http://carento.test/api/v1/email/check" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\"
}"
const url = new URL(
"http://carento.test/api/v1/email/check"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"exists": true
},
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Forgot password
Send a reset link to the given user.
Example request:
curl --request POST \
"http://carento.test/api/v1/password/forgot" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\"
}"
const url = new URL(
"http://carento.test/api/v1/password/forgot"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resend email verification
Resend the email verification notification.
Example request:
curl --request POST \
"http://carento.test/api/v1/resend-verify-account-email" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\"
}"
const url = new URL(
"http://carento.test/api/v1/resend-verify-account-email"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout
requires authentication
Example request:
curl --request GET \
--get "http://carento.test/api/v1/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Blog
Search post
Example request:
curl --request GET \
--get "http://carento.test/api/v1/search" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"q\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/search"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"q": "consequatur"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "No results found, please try with different keywords."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List posts
Example request:
curl --request GET \
--get "http://carento.test/api/v1/posts" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/posts"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "Top 5 New Cars to Look Out for in 2024",
"slug": "top-5-new-cars-to-look-out-for-in-2024",
"description": "Discover the most anticipated car models coming in 2024, featuring cutting-edge technology and stunning designs.",
"image": "http://carento.test/storage/news/1.jpg",
"categories": [
{
"id": 2,
"name": "Car Rentals",
"slug": "car-rentals",
"url": "http://carento.test/news/car-rentals",
"description": "Facere animi voluptates autem autem. Culpa velit nemo sit vel sunt consequuntur architecto. Dolorem sunt saepe quae et."
},
{
"id": 8,
"name": "Off-Road Vehicles",
"slug": "off-road-vehicles",
"url": "http://carento.test/news/off-road-vehicles",
"description": "Sed quia porro accusantium impedit. Et consequatur ut veritatis in ipsa facilis ratione. Vero suscipit eos labore quae odit. Atque atque est maxime ut iure delectus."
}
],
"tags": [
{
"id": 1,
"name": "2024 Cars",
"slug": "2024-cars",
"description": null
},
{
"id": 3,
"name": "Self-Driving Cars",
"slug": "self-driving-cars",
"description": null
},
{
"id": 9,
"name": "Holiday Rentals",
"slug": "holiday-rentals",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 2,
"name": "How to Choose the Best Car Rental Service for Your Trip",
"slug": "how-to-choose-the-best-car-rental-service-for-your-trip",
"description": "A comprehensive guide on selecting the right car rental service based on your travel needs and budget.",
"image": "http://carento.test/storage/news/2.jpg",
"categories": [
{
"id": 10,
"name": "Car Innovations",
"slug": "car-innovations",
"url": "http://carento.test/news/car-innovations",
"description": "Tempora nihil aliquid aut et unde. Voluptas officia quasi velit explicabo nam autem dolorem. Ut eaque sit iusto vel delectus."
},
{
"id": 3,
"name": "Electric Vehicles",
"slug": "electric-vehicles",
"url": "http://carento.test/news/electric-vehicles",
"description": "Provident dolorem qui perferendis aut neque in doloremque eveniet. Repudiandae id modi quidem laborum nihil. Ut optio eveniet aut nemo. Sint enim hic est quis et ratione voluptates."
}
],
"tags": [
{
"id": 1,
"name": "2024 Cars",
"slug": "2024-cars",
"description": null
},
{
"id": 2,
"name": "Car Leasing",
"slug": "car-leasing",
"description": null
},
{
"id": 10,
"name": "Cross-Country Trips",
"slug": "cross-country-trips",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 3,
"name": "The Evolution of Electric Vehicles: A New Era",
"slug": "the-evolution-of-electric-vehicles-a-new-era",
"description": "Explore how electric cars are transforming the auto industry and why they are the future of transportation.",
"image": "http://carento.test/storage/news/3.jpg",
"categories": [
{
"id": 4,
"name": "Car Maintenance",
"slug": "car-maintenance",
"url": "http://carento.test/news/car-maintenance",
"description": "Voluptatem tempore tempore ducimus illo recusandae enim sapiente. Provident sit nihil et expedita iure aperiam. Nihil animi cupiditate nostrum est veritatis."
},
{
"id": 9,
"name": "Hybrid Cars",
"slug": "hybrid-cars",
"url": "http://carento.test/news/hybrid-cars",
"description": "Quam quia quis consequatur amet amet inventore qui. Maxime modi maxime maxime possimus. Repellat excepturi quidem consequatur sed architecto laboriosam."
}
],
"tags": [
{
"id": 1,
"name": "2024 Cars",
"slug": "2024-cars",
"description": null
},
{
"id": 3,
"name": "Self-Driving Cars",
"slug": "self-driving-cars",
"description": null
},
{
"id": 8,
"name": "Car Detailing",
"slug": "car-detailing",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 4,
"name": "Leasing vs. Buying a Car: Which Is Right for You?",
"slug": "leasing-vs-buying-a-car-which-is-right-for-you",
"description": "An in-depth comparison of leasing and buying a car, helping you decide which option suits your lifestyle.",
"image": "http://carento.test/storage/news/4.jpg",
"categories": [
{
"id": 3,
"name": "Electric Vehicles",
"slug": "electric-vehicles",
"url": "http://carento.test/news/electric-vehicles",
"description": "Provident dolorem qui perferendis aut neque in doloremque eveniet. Repudiandae id modi quidem laborum nihil. Ut optio eveniet aut nemo. Sint enim hic est quis et ratione voluptates."
},
{
"id": 1,
"name": "New Cars",
"slug": "new-cars",
"url": "http://carento.test/news/new-cars",
"description": "Quae rem aut aut. Ipsum aliquam minus sit enim temporibus quisquam atque. Ab ipsum harum aut deserunt deleniti. Corrupti suscipit repudiandae distinctio nostrum enim."
}
],
"tags": [
{
"id": 2,
"name": "Car Leasing",
"slug": "car-leasing",
"description": null
},
{
"id": 4,
"name": "Eco-Friendly",
"slug": "eco-friendly",
"description": null
},
{
"id": 7,
"name": "Used Cars",
"slug": "used-cars",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 5,
"name": "The Ultimate Road Trip Checklist",
"slug": "the-ultimate-road-trip-checklist",
"description": "Everything you need to pack and check before embarking on an unforgettable road trip adventure.",
"image": "http://carento.test/storage/news/5.jpg",
"categories": [
{
"id": 9,
"name": "Hybrid Cars",
"slug": "hybrid-cars",
"url": "http://carento.test/news/hybrid-cars",
"description": "Quam quia quis consequatur amet amet inventore qui. Maxime modi maxime maxime possimus. Repellat excepturi quidem consequatur sed architecto laboriosam."
},
{
"id": 1,
"name": "New Cars",
"slug": "new-cars",
"url": "http://carento.test/news/new-cars",
"description": "Quae rem aut aut. Ipsum aliquam minus sit enim temporibus quisquam atque. Ab ipsum harum aut deserunt deleniti. Corrupti suscipit repudiandae distinctio nostrum enim."
}
],
"tags": [
{
"id": 1,
"name": "2024 Cars",
"slug": "2024-cars",
"description": null
},
{
"id": 4,
"name": "Eco-Friendly",
"slug": "eco-friendly",
"description": null
},
{
"id": 5,
"name": "Car Subscription",
"slug": "car-subscription",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 6,
"name": "The Benefits of Renting a Luxury Car for Special Occasions",
"slug": "the-benefits-of-renting-a-luxury-car-for-special-occasions",
"description": "Find out why renting a luxury vehicle can make your events even more memorable and stylish.",
"image": "http://carento.test/storage/news/6.jpg",
"categories": [
{
"id": 3,
"name": "Electric Vehicles",
"slug": "electric-vehicles",
"url": "http://carento.test/news/electric-vehicles",
"description": "Provident dolorem qui perferendis aut neque in doloremque eveniet. Repudiandae id modi quidem laborum nihil. Ut optio eveniet aut nemo. Sint enim hic est quis et ratione voluptates."
},
{
"id": 2,
"name": "Car Rentals",
"slug": "car-rentals",
"url": "http://carento.test/news/car-rentals",
"description": "Facere animi voluptates autem autem. Culpa velit nemo sit vel sunt consequuntur architecto. Dolorem sunt saepe quae et."
}
],
"tags": [
{
"id": 2,
"name": "Car Leasing",
"slug": "car-leasing",
"description": null
},
{
"id": 3,
"name": "Self-Driving Cars",
"slug": "self-driving-cars",
"description": null
},
{
"id": 6,
"name": "Car Insurance",
"slug": "car-insurance",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 7,
"name": "Tips for Maintaining Your Car to Extend Its Lifespan",
"slug": "tips-for-maintaining-your-car-to-extend-its-lifespan",
"description": "Essential tips on how to keep your car in top condition, ensuring it lasts longer and performs better.",
"image": "http://carento.test/storage/news/7.jpg",
"categories": [
{
"id": 1,
"name": "New Cars",
"slug": "new-cars",
"url": "http://carento.test/news/new-cars",
"description": "Quae rem aut aut. Ipsum aliquam minus sit enim temporibus quisquam atque. Ab ipsum harum aut deserunt deleniti. Corrupti suscipit repudiandae distinctio nostrum enim."
},
{
"id": 8,
"name": "Off-Road Vehicles",
"slug": "off-road-vehicles",
"url": "http://carento.test/news/off-road-vehicles",
"description": "Sed quia porro accusantium impedit. Et consequatur ut veritatis in ipsa facilis ratione. Vero suscipit eos labore quae odit. Atque atque est maxime ut iure delectus."
}
],
"tags": [
{
"id": 2,
"name": "Car Leasing",
"slug": "car-leasing",
"description": null
},
{
"id": 9,
"name": "Holiday Rentals",
"slug": "holiday-rentals",
"description": null
},
{
"id": 10,
"name": "Cross-Country Trips",
"slug": "cross-country-trips",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 8,
"name": "Top Safety Features to Look for in a Family Car",
"slug": "top-safety-features-to-look-for-in-a-family-car",
"description": "A guide to the latest safety innovations in family vehicles and how they protect your loved ones on the road.",
"image": "http://carento.test/storage/news/8.jpg",
"categories": [
{
"id": 1,
"name": "New Cars",
"slug": "new-cars",
"url": "http://carento.test/news/new-cars",
"description": "Quae rem aut aut. Ipsum aliquam minus sit enim temporibus quisquam atque. Ab ipsum harum aut deserunt deleniti. Corrupti suscipit repudiandae distinctio nostrum enim."
},
{
"id": 6,
"name": "Luxury Cars",
"slug": "luxury-cars",
"url": "http://carento.test/news/luxury-cars",
"description": "Maiores ea asperiores maxime voluptatem quis omnis explicabo sit. Modi fuga odio temporibus aliquam. Qui consectetur quia possimus et quia voluptate."
}
],
"tags": [
{
"id": 5,
"name": "Car Subscription",
"slug": "car-subscription",
"description": null
},
{
"id": 6,
"name": "Car Insurance",
"slug": "car-insurance",
"description": null
},
{
"id": 7,
"name": "Used Cars",
"slug": "used-cars",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 9,
"name": "How Self-Driving Cars Are Changing the Future of Transportation",
"slug": "how-self-driving-cars-are-changing-the-future-of-transportation",
"description": "An overview of autonomous vehicles and the potential they have to reshape the way we travel.",
"image": "http://carento.test/storage/news/9.jpg",
"categories": [
{
"id": 2,
"name": "Car Rentals",
"slug": "car-rentals",
"url": "http://carento.test/news/car-rentals",
"description": "Facere animi voluptates autem autem. Culpa velit nemo sit vel sunt consequuntur architecto. Dolorem sunt saepe quae et."
},
{
"id": 7,
"name": "Family Cars",
"slug": "family-cars",
"url": "http://carento.test/news/family-cars",
"description": "Nulla et repellendus dolorem tempore velit sunt. Est qui quod omnis."
}
],
"tags": [
{
"id": 2,
"name": "Car Leasing",
"slug": "car-leasing",
"description": null
},
{
"id": 8,
"name": "Car Detailing",
"slug": "car-detailing",
"description": null
},
{
"id": 10,
"name": "Cross-Country Trips",
"slug": "cross-country-trips",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
},
{
"id": 10,
"name": "The Best Cars for Off-Road Adventures",
"slug": "the-best-cars-for-off-road-adventures",
"description": "Discover the top vehicles that offer exceptional performance on rough terrains for your next outdoor adventure.",
"image": "http://carento.test/storage/news/10.jpg",
"categories": [
{
"id": 8,
"name": "Off-Road Vehicles",
"slug": "off-road-vehicles",
"url": "http://carento.test/news/off-road-vehicles",
"description": "Sed quia porro accusantium impedit. Et consequatur ut veritatis in ipsa facilis ratione. Vero suscipit eos labore quae odit. Atque atque est maxime ut iure delectus."
},
{
"id": 7,
"name": "Family Cars",
"slug": "family-cars",
"url": "http://carento.test/news/family-cars",
"description": "Nulla et repellendus dolorem tempore velit sunt. Est qui quod omnis."
}
],
"tags": [
{
"id": 5,
"name": "Car Subscription",
"slug": "car-subscription",
"description": null
},
{
"id": 8,
"name": "Car Detailing",
"slug": "car-detailing",
"description": null
},
{
"id": 10,
"name": "Cross-Country Trips",
"slug": "cross-country-trips",
"description": null
}
],
"created_at": "2025-07-06T08:32:49.000000Z",
"updated_at": "2025-07-06T08:32:49.000000Z"
}
],
"links": {
"first": "http://carento.test/api/v1/posts?page=1",
"last": "http://carento.test/api/v1/posts?page=2",
"prev": null,
"next": "http://carento.test/api/v1/posts?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://carento.test/api/v1/posts?page=1",
"label": "1",
"active": true
},
{
"url": "http://carento.test/api/v1/posts?page=2",
"label": "2",
"active": false
},
{
"url": "http://carento.test/api/v1/posts?page=2",
"label": "Next »",
"active": false
}
],
"path": "http://carento.test/api/v1/posts",
"per_page": 10,
"to": 10,
"total": 20
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List categories
Example request:
curl --request GET \
--get "http://carento.test/api/v1/categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "New Cars",
"slug": "new-cars",
"description": "Quae rem aut aut. Ipsum aliquam minus sit enim temporibus quisquam atque. Ab ipsum harum aut deserunt deleniti. Corrupti suscipit repudiandae distinctio nostrum enim.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 2,
"name": "Car Rentals",
"slug": "car-rentals",
"description": "Facere animi voluptates autem autem. Culpa velit nemo sit vel sunt consequuntur architecto. Dolorem sunt saepe quae et.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 3,
"name": "Electric Vehicles",
"slug": "electric-vehicles",
"description": "Provident dolorem qui perferendis aut neque in doloremque eveniet. Repudiandae id modi quidem laborum nihil. Ut optio eveniet aut nemo. Sint enim hic est quis et ratione voluptates.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 4,
"name": "Car Maintenance",
"slug": "car-maintenance",
"description": "Voluptatem tempore tempore ducimus illo recusandae enim sapiente. Provident sit nihil et expedita iure aperiam. Nihil animi cupiditate nostrum est veritatis.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 5,
"name": "Road Trips",
"slug": "road-trips",
"description": "Ullam dolorum cumque et odio assumenda. Natus rerum suscipit itaque. Rem sapiente et neque similique est assumenda non ipsam. Doloremque eveniet placeat ut error porro.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 6,
"name": "Luxury Cars",
"slug": "luxury-cars",
"description": "Maiores ea asperiores maxime voluptatem quis omnis explicabo sit. Modi fuga odio temporibus aliquam. Qui consectetur quia possimus et quia voluptate.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 7,
"name": "Family Cars",
"slug": "family-cars",
"description": "Nulla et repellendus dolorem tempore velit sunt. Est qui quod omnis.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 8,
"name": "Off-Road Vehicles",
"slug": "off-road-vehicles",
"description": "Sed quia porro accusantium impedit. Et consequatur ut veritatis in ipsa facilis ratione. Vero suscipit eos labore quae odit. Atque atque est maxime ut iure delectus.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 9,
"name": "Hybrid Cars",
"slug": "hybrid-cars",
"description": "Quam quia quis consequatur amet amet inventore qui. Maxime modi maxime maxime possimus. Repellat excepturi quidem consequatur sed architecto laboriosam.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
},
{
"id": 10,
"name": "Car Innovations",
"slug": "car-innovations",
"description": "Tempora nihil aliquid aut et unde. Voluptas officia quasi velit explicabo nam autem dolorem. Ut eaque sit iusto vel delectus.",
"children": [],
"parent": {
"id": null,
"name": null,
"slug": "",
"url": "http://carento.test",
"description": null
}
}
],
"links": {
"first": "http://carento.test/api/v1/categories?page=1",
"last": "http://carento.test/api/v1/categories?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://carento.test/api/v1/categories?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "http://carento.test/api/v1/categories",
"per_page": 10,
"to": 10,
"total": 10
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List tags
Filters posts
Example request:
curl --request GET \
--get "http://carento.test/api/v1/posts/filters?page=17&per_page=17&search=consequatur&after=consequatur&author=consequatur&author_exclude=consequatur&before=consequatur&exclude=consequatur&include=consequatur&order=consequatur&order_by=consequatur&categories=consequatur&categories_exclude=consequatur&tags=consequatur&tags_exclude=consequatur&featured=consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/posts/filters"
);
const params = {
"page": "17",
"per_page": "17",
"search": "consequatur",
"after": "consequatur",
"author": "consequatur",
"author_exclude": "consequatur",
"before": "consequatur",
"exclude": "consequatur",
"include": "consequatur",
"order": "consequatur",
"order_by": "consequatur",
"categories": "consequatur",
"categories_exclude": "consequatur",
"tags": "consequatur",
"tags_exclude": "consequatur",
"featured": "consequatur",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [],
"links": {
"first": "http://carento.test/api/v1/posts/filters?page=1",
"last": "http://carento.test/api/v1/posts/filters?page=1",
"prev": "http://carento.test/api/v1/posts/filters?page=16",
"next": null
},
"meta": {
"current_page": 17,
"from": null,
"last_page": 1,
"links": [
{
"url": "http://carento.test/api/v1/posts/filters?page=16",
"label": "« Previous",
"active": false
},
{
"url": "http://carento.test/api/v1/posts/filters?page=1",
"label": "1",
"active": false
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "http://carento.test/api/v1/posts/filters",
"per_page": 17,
"to": null,
"total": 0
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get post by slug
Example request:
curl --request GET \
--get "http://carento.test/api/v1/posts/consequatur?slug=consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/posts/consequatur"
);
const params = {
"slug": "consequatur",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Filters categories
Example request:
curl --request GET \
--get "http://carento.test/api/v1/categories/filters" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/categories/filters"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [
{
"id": 5,
"name": "Road Trips",
"slug": "road-trips",
"url": "http://carento.test/news/road-trips",
"description": "Ullam dolorum cumque et odio assumenda. Natus rerum suscipit itaque. Rem sapiente et neque similique est assumenda non ipsam. Doloremque eveniet placeat ut error porro."
},
{
"id": 8,
"name": "Off-Road Vehicles",
"slug": "off-road-vehicles",
"url": "http://carento.test/news/off-road-vehicles",
"description": "Sed quia porro accusantium impedit. Et consequatur ut veritatis in ipsa facilis ratione. Vero suscipit eos labore quae odit. Atque atque est maxime ut iure delectus."
},
{
"id": 1,
"name": "New Cars",
"slug": "new-cars",
"url": "http://carento.test/news/new-cars",
"description": "Quae rem aut aut. Ipsum aliquam minus sit enim temporibus quisquam atque. Ab ipsum harum aut deserunt deleniti. Corrupti suscipit repudiandae distinctio nostrum enim."
},
{
"id": 6,
"name": "Luxury Cars",
"slug": "luxury-cars",
"url": "http://carento.test/news/luxury-cars",
"description": "Maiores ea asperiores maxime voluptatem quis omnis explicabo sit. Modi fuga odio temporibus aliquam. Qui consectetur quia possimus et quia voluptate."
},
{
"id": 9,
"name": "Hybrid Cars",
"slug": "hybrid-cars",
"url": "http://carento.test/news/hybrid-cars",
"description": "Quam quia quis consequatur amet amet inventore qui. Maxime modi maxime maxime possimus. Repellat excepturi quidem consequatur sed architecto laboriosam."
},
{
"id": 7,
"name": "Family Cars",
"slug": "family-cars",
"url": "http://carento.test/news/family-cars",
"description": "Nulla et repellendus dolorem tempore velit sunt. Est qui quod omnis."
},
{
"id": 3,
"name": "Electric Vehicles",
"slug": "electric-vehicles",
"url": "http://carento.test/news/electric-vehicles",
"description": "Provident dolorem qui perferendis aut neque in doloremque eveniet. Repudiandae id modi quidem laborum nihil. Ut optio eveniet aut nemo. Sint enim hic est quis et ratione voluptates."
},
{
"id": 2,
"name": "Car Rentals",
"slug": "car-rentals",
"url": "http://carento.test/news/car-rentals",
"description": "Facere animi voluptates autem autem. Culpa velit nemo sit vel sunt consequuntur architecto. Dolorem sunt saepe quae et."
},
{
"id": 4,
"name": "Car Maintenance",
"slug": "car-maintenance",
"url": "http://carento.test/news/car-maintenance",
"description": "Voluptatem tempore tempore ducimus illo recusandae enim sapiente. Provident sit nihil et expedita iure aperiam. Nihil animi cupiditate nostrum est veritatis."
},
{
"id": 10,
"name": "Car Innovations",
"slug": "car-innovations",
"url": "http://carento.test/news/car-innovations",
"description": "Tempora nihil aliquid aut et unde. Voluptas officia quasi velit explicabo nam autem dolorem. Ut eaque sit iusto vel delectus."
}
],
"links": {
"first": "http://carento.test/api/v1/categories/filters?page=1",
"last": "http://carento.test/api/v1/categories/filters?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://carento.test/api/v1/categories/filters?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "http://carento.test/api/v1/categories/filters",
"per_page": 10,
"to": 10,
"total": 10
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get category by slug
Example request:
curl --request GET \
--get "http://carento.test/api/v1/categories/consequatur?slug=consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/categories/consequatur"
);
const params = {
"slug": "consequatur",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Car Rentals
List cars
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/cars"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Search cars
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/search" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"pickup_date\": \"2106-08-06\",
\"return_date\": \"2106-08-06\",
\"location\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/search"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pickup_date": "2106-08-06",
"return_date": "2106-08-06",
"location": "consequatur"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The return date must be a date after pickup date.",
"errors": {
"return_date": [
"The return date must be a date after pickup date."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get car filters
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/filters" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/filters"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": {
"makes": [
{
"id": 1,
"name": "Lexus"
},
{
"id": 2,
"name": "Mercedes"
},
{
"id": 3,
"name": "Bugatti"
},
{
"id": 4,
"name": "Jaguar"
},
{
"id": 5,
"name": "Honda"
},
{
"id": 6,
"name": "Chevrolet"
},
{
"id": 7,
"name": "Acura"
},
{
"id": 8,
"name": "BMW"
},
{
"id": 9,
"name": "Toyota"
},
{
"id": 10,
"name": "Ford"
},
{
"id": 11,
"name": "Nissan"
},
{
"id": 12,
"name": "Opel"
},
{
"id": 13,
"name": "BMW"
},
{
"id": 14,
"name": "Toyota"
}
],
"types": [
{
"id": 1,
"name": "SUV"
},
{
"id": 2,
"name": "Hatchback"
},
{
"id": 3,
"name": "Sedan"
},
{
"id": 4,
"name": "Crossover"
},
{
"id": 5,
"name": "Minivan"
},
{
"id": 6,
"name": "Coupe"
},
{
"id": 7,
"name": "Sport Cars"
},
{
"id": 8,
"name": "Pickup Truck"
}
],
"transmissions": [
{
"id": 1,
"name": "Automatic"
},
{
"id": 2,
"name": "Manual"
}
],
"fuels": [
{
"id": 1,
"name": "Gasoline"
},
{
"id": 2,
"name": "Diesel"
},
{
"id": 3,
"name": "Electric"
}
],
"amenities": [
{
"id": 1,
"name": "Leather upholstery"
},
{
"id": 2,
"name": "Heated seats"
},
{
"id": 3,
"name": "Sunroof/Moonroof"
},
{
"id": 4,
"name": "Heads-up display"
},
{
"id": 5,
"name": "Adaptive cruise control"
}
],
"categories": [
{
"id": 1,
"name": "Sport"
},
{
"id": 2,
"name": "Maserati"
},
{
"id": 3,
"name": "Ferrari"
},
{
"id": 4,
"name": "Classic"
},
{
"id": 5,
"name": "New"
}
],
"price_range": {
"min": 30,
"max": 99
},
"year_range": {
"min": 2010,
"max": 2024
}
},
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get featured cars
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/featured" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/featured"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get popular cars
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/popular" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/popular"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Find car by slug
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/consequatur"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get car details
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/id/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/id/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Car not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Check car availability
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/id/1562/availability" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"pickup_date\": \"2106-08-06\",
\"return_date\": \"2106-08-06\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/id/1562/availability"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pickup_date": "2106-08-06",
"return_date": "2106-08-06"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "The return date must be a date after pickup date.",
"errors": {
"return_date": [
"The return date must be a date after pickup date."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get similar cars
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/id/1562/similar" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/id/1562/similar"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Car not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List car makes
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/car-makes" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/car-makes"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": [
{
"id": 7,
"name": "Acura",
"logo": "icons/acura.png",
"website": null,
"cars_count": 6
},
{
"id": 8,
"name": "BMW",
"logo": "icons/bmw.png",
"website": null,
"cars_count": 7
},
{
"id": 13,
"name": "BMW",
"logo": "icons/bmw.png",
"website": null,
"cars_count": 1
},
{
"id": 3,
"name": "Bugatti",
"logo": "icons/bugatti.png",
"website": null,
"cars_count": 7
},
{
"id": 6,
"name": "Chevrolet",
"logo": "icons/chevrolet.png",
"website": null,
"cars_count": 7
},
{
"id": 10,
"name": "Ford",
"logo": "icons/ford-i.png",
"website": null,
"cars_count": 10
},
{
"id": 5,
"name": "Honda",
"logo": "icons/honda.png",
"website": null,
"cars_count": 6
},
{
"id": 4,
"name": "Jaguar",
"logo": "icons/jaguar.png",
"website": null,
"cars_count": 8
},
{
"id": 1,
"name": "Lexus",
"logo": "icons/lexus.png",
"website": null,
"cars_count": 4
},
{
"id": 2,
"name": "Mercedes",
"logo": "icons/mer.png",
"website": null,
"cars_count": 9
},
{
"id": 11,
"name": "Nissan",
"logo": "icons/nissan-i.png",
"website": null,
"cars_count": 7
},
{
"id": 12,
"name": "Opel",
"logo": "icons/opel-i.png",
"website": null,
"cars_count": 8
},
{
"id": 9,
"name": "Toyota",
"logo": "icons/toyota.png",
"website": null,
"cars_count": 10
},
{
"id": 14,
"name": "Toyota",
"logo": "icons/toyota.png",
"website": null,
"cars_count": 10
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List car types
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/car-types" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/car-types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": [
{
"id": 6,
"name": "Coupe",
"icon": null,
"cars_count": 9
},
{
"id": 4,
"name": "Crossover",
"icon": null,
"cars_count": 17
},
{
"id": 2,
"name": "Hatchback",
"icon": null,
"cars_count": 13
},
{
"id": 5,
"name": "Minivan",
"icon": null,
"cars_count": 17
},
{
"id": 8,
"name": "Pickup Truck",
"icon": null,
"cars_count": 11
},
{
"id": 3,
"name": "Sedan",
"icon": null,
"cars_count": 9
},
{
"id": 7,
"name": "Sport Cars",
"icon": null,
"cars_count": 15
},
{
"id": 1,
"name": "SUV",
"icon": null,
"cars_count": 9
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List car categories
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/car-categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/car-categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": [
{
"id": 4,
"name": "Classic",
"description": "Classic cars model",
"cars_count": 17
},
{
"id": 3,
"name": "Ferrari",
"description": "",
"cars_count": 20
},
{
"id": 2,
"name": "Maserati",
"description": "",
"cars_count": 21
},
{
"id": 5,
"name": "New",
"description": "New cars model",
"cars_count": 17
},
{
"id": 1,
"name": "Sport",
"description": "Sport cars model",
"cars_count": 25
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List car transmissions
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/car-transmissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/car-transmissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": [
{
"id": 1,
"name": "Automatic",
"cars_count": 30
},
{
"id": 2,
"name": "Manual",
"cars_count": 46
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List car fuel types
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/car-fuels" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/car-fuels"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": [
{
"id": 2,
"name": "Diesel",
"cars_count": 34
},
{
"id": 3,
"name": "Electric",
"cars_count": 31
},
{
"id": 1,
"name": "Gasoline",
"cars_count": 35
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List car amenities
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/car-amenities" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/car-amenities"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": [
{
"id": 5,
"name": "Adaptive cruise control",
"icon": null,
"cars_count": 0
},
{
"id": 4,
"name": "Heads-up display",
"icon": null,
"cars_count": 0
},
{
"id": 2,
"name": "Heated seats",
"icon": null,
"cars_count": 0
},
{
"id": 1,
"name": "Leather upholstery",
"icon": null,
"cars_count": 0
},
{
"id": 3,
"name": "Sunroof/Moonroof",
"icon": null,
"cars_count": 0
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List locations
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/locations" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/locations"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Search locations
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/locations/search" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"q\": \"vmqeopfuudtdsufvyvddqamniihfqcoynlazghdtqtqxbajwbpilpmufinllwloauydlsmsjur\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/locations/search"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"q": "vmqeopfuudtdsufvyvddqamniihfqcoynlazghdtqtqxbajwbpilpmufinllwloauydlsmsjur"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Server Error"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get car reviews
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/cars/1562/reviews" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/cars/1562/reviews"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Car not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validate coupon code (alias for check)
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/coupons/validate" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/coupons/validate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List customer bookings
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/bookings" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/bookings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new booking
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/bookings" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"car_id\": \"consequatur\",
\"pickup_date\": \"2106-08-06\",
\"return_date\": \"2106-08-06\",
\"pickup_time\": \"consequatur\",
\"return_time\": \"consequatur\",
\"coupon_code\": \"consequatur\",
\"note\": \"mqeopfuudtdsufvyvddqa\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/bookings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"car_id": "consequatur",
"pickup_date": "2106-08-06",
"return_date": "2106-08-06",
"pickup_time": "consequatur",
"return_time": "consequatur",
"coupon_code": "consequatur",
"note": "mqeopfuudtdsufvyvddqa"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get booking details
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/bookings/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/bookings/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update booking
Example request:
curl --request PUT \
"http://carento.test/api/v1/car-rentals/bookings/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"pickup_date\": \"2106-08-06\",
\"return_date\": \"2106-08-06\",
\"pickup_time\": \"consequatur\",
\"return_time\": \"consequatur\",
\"note\": \"mqeopfuudtdsufvyvddqa\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/bookings/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pickup_date": "2106-08-06",
"return_date": "2106-08-06",
"pickup_time": "consequatur",
"return_time": "consequatur",
"note": "mqeopfuudtdsufvyvddqa"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete booking
Example request:
curl --request DELETE \
"http://carento.test/api/v1/car-rentals/bookings/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/bookings/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancel booking
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/bookings/1562/cancel" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"vmqeopfuudtdsufvyvddq\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/bookings/1562/cancel"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "vmqeopfuudtdsufvyvddq"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get booking invoice
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/bookings/1562/invoice" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/bookings/1562/invoice"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a review
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/reviews" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"car_id\": \"consequatur\",
\"star\": 3,
\"comment\": \"qeopfuudtdsufvyvddqam\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/reviews"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"car_id": "consequatur",
"star": 3,
"comment": "qeopfuudtdsufvyvddqam"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a review
Example request:
curl --request PUT \
"http://carento.test/api/v1/car-rentals/reviews/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"star\": 5,
\"comment\": \"mqeopfuudtdsufvyvddqa\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/reviews/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"star": 5,
"comment": "mqeopfuudtdsufvyvddqa"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a review
Example request:
curl --request DELETE \
"http://carento.test/api/v1/car-rentals/reviews/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/reviews/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Apply coupon to current session
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/coupons/apply" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/coupons/apply"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove coupon from current session
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/coupons/remove" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/coupons/remove"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Car Rentals - Authentication
Register a new customer
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"email\": \"kunde.eloisa@example.com\",
\"password\": \"consequatur\",
\"phone\": \"mqeopfuudtdsufvyv\",
\"dob\": \"2025-07-08T05:30:27\",
\"is_vendor\": false
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"email": "kunde.eloisa@example.com",
"password": "consequatur",
"phone": "mqeopfuudtdsufvyv",
"dob": "2025-07-08T05:30:27",
"is_vendor": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Login customer
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\",
\"password\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com",
"password": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send password reset link
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/forgot-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/forgot-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reset password
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/reset-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"consequatur\",
\"email\": \"carolyne.luettgen@example.org\",
\"password\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/reset-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "consequatur",
"email": "carolyne.luettgen@example.org",
"password": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verify email
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/verify-email" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": 17,
\"hash\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/verify-email"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 17,
"hash": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resend email verification
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/resend-verification" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/resend-verification"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Social login
Refresh token
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/refresh-token" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/refresh-token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Logout customer
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Log out from all devices
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/auth/logout-all" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/auth/logout-all"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Car Rentals - Favorites
List user's favorite cars
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/favorites" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/favorites"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Add car to favorites
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/favorites/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/favorites/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove car from favorites
Example request:
curl --request DELETE \
"http://carento.test/api/v1/car-rentals/favorites/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/favorites/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Check if car is in favorites
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/favorites/check/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/favorites/check/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Car Rentals - Inquiries
Submit an inquiry
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/inquiries" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/inquiries"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get custom fields for inquiry form
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/inquiries/custom-fields" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/inquiries/custom-fields"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": {
"inquiry_types": [
{
"value": "general",
"label": "General Inquiry",
"description": "General questions about our services"
},
{
"value": "car_inquiry",
"label": "Car Specific Inquiry",
"description": "Questions about a specific car"
},
{
"value": "rental_question",
"label": "Rental Process",
"description": "Questions about the rental process"
},
{
"value": "support",
"label": "Technical Support",
"description": "Technical issues or support requests"
}
],
"form_fields": [
{
"name": "name",
"type": "text",
"label": "Full Name",
"required": true,
"placeholder": "Enter your full name"
},
{
"name": "email",
"type": "email",
"label": "Email Address",
"required": true,
"placeholder": "Enter your email address"
},
{
"name": "phone",
"type": "tel",
"label": "Phone Number",
"required": false,
"placeholder": "Enter your phone number (optional)"
},
{
"name": "inquiry_type",
"type": "select",
"label": "Inquiry Type",
"required": true,
"options": [
{
"value": "general",
"label": "General Inquiry",
"description": "General questions about our services"
},
{
"value": "car_inquiry",
"label": "Car Specific Inquiry",
"description": "Questions about a specific car"
},
{
"value": "rental_question",
"label": "Rental Process",
"description": "Questions about the rental process"
},
{
"value": "support",
"label": "Technical Support",
"description": "Technical issues or support requests"
}
]
},
{
"name": "subject",
"type": "text",
"label": "Subject",
"required": true,
"placeholder": "Brief subject of your inquiry"
},
{
"name": "message",
"type": "textarea",
"label": "Message",
"required": true,
"placeholder": "Please provide details about your inquiry",
"rows": 5
}
],
"contact_info": {
"support_email": "support@example.com",
"support_phone": "+1-234-567-8900",
"business_hours": "Mon-Fri 9AM-6PM"
}
},
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Car Rentals - Pricing
Calculate rental pricing
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/calculate-price" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/calculate-price"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Car Rentals - Profile
Get customer profile
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update customer profile
Example request:
curl --request PUT \
"http://carento.test/api/v1/car-rentals/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"phone\": \"amniihfqcoynlazgh\",
\"dob\": \"2025-07-08T05:30:27\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"phone": "amniihfqcoynlazgh",
"dob": "2025-07-08T05:30:27"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update customer avatar
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/profile/avatar" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "avatar=@/private/var/folders/pv/8ss1l0s14ylczgg_279blg680000gn/T/phpdOv6Uq" const url = new URL(
"http://carento.test/api/v1/car-rentals/profile/avatar"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete customer account
Example request:
curl --request DELETE \
"http://carento.test/api/v1/car-rentals/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "consequatur"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Change customer password
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/profile/change-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"current_password\": \"consequatur\",
\"password\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/profile/change-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"current_password": "consequatur",
"password": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get customer preferences
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/profile/preferences" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/profile/preferences"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update customer preferences
Example request:
curl --request PUT \
"http://carento.test/api/v1/car-rentals/profile/preferences" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"notifications\": {
\"email_booking_updates\": true,
\"email_promotional\": false,
\"email_newsletter\": true,
\"sms_booking_updates\": false,
\"push_notifications\": false
},
\"privacy\": {
\"profile_visibility\": \"friends\",
\"show_activity\": true,
\"allow_contact\": true
},
\"rental_preferences\": {
\"preferred_currency\": \"vmq\",
\"preferred_language\": \"eo\",
\"automatic_insurance\": false,
\"favorite_pickup_location\": \"pfuudtdsufvyvddqamnii\",
\"rental_reminders\": true
},
\"communication\": {
\"preferred_contact_method\": \"sms\",
\"booking_confirmation_method\": \"email\",
\"time_zone\": \"hfqcoynlazghdtqtqxbaj\"
}
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/profile/preferences"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"notifications": {
"email_booking_updates": true,
"email_promotional": false,
"email_newsletter": true,
"sms_booking_updates": false,
"push_notifications": false
},
"privacy": {
"profile_visibility": "friends",
"show_activity": true,
"allow_contact": true
},
"rental_preferences": {
"preferred_currency": "vmq",
"preferred_language": "eo",
"automatic_insurance": false,
"favorite_pickup_location": "pfuudtdsufvyvddqamnii",
"rental_reminders": true
},
"communication": {
"preferred_contact_method": "sms",
"booking_confirmation_method": "email",
"time_zone": "hfqcoynlazghdtqtqxbaj"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Car Rentals - Vendor
Get vendor profile
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update vendor profile
Example request:
curl --request PUT \
"http://carento.test/api/v1/car-rentals/vendor/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit vendor verification
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/vendor/profile/verification" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/profile/verification"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get vendor verification status
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/profile/verification-status" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/profile/verification-status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List vendor cars
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/cars" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/cars"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new car
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/vendor/cars" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=vmqeopfuudtdsufvyvddq"\
--form "description=Dolores dolorum amet iste laborum eius est dolor."\
--form "content=consequatur"\
--form "license_plate=mqeopfuudtdsufvyv"\
--form "make_id=consequatur"\
--form "vehicle_type_id=consequatur"\
--form "transmission_id=consequatur"\
--form "fuel_type_id=consequatur"\
--form "number_of_seats=13"\
--form "number_of_doors=7"\
--form "mileage=16"\
--form "horsepower=50"\
--form "rental_rate=55"\
--form "rental_type=per_day"\
--form "location=consequatur"\
--form "insurance_info=consequatur"\
--form "vin=mqeopfuudtdsuf"\
--form "images[]=@/private/var/folders/pv/8ss1l0s14ylczgg_279blg680000gn/T/phpQCmSqV" const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/cars"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'vmqeopfuudtdsufvyvddq');
body.append('description', 'Dolores dolorum amet iste laborum eius est dolor.');
body.append('content', 'consequatur');
body.append('license_plate', 'mqeopfuudtdsufvyv');
body.append('make_id', 'consequatur');
body.append('vehicle_type_id', 'consequatur');
body.append('transmission_id', 'consequatur');
body.append('fuel_type_id', 'consequatur');
body.append('number_of_seats', '13');
body.append('number_of_doors', '7');
body.append('mileage', '16');
body.append('horsepower', '50');
body.append('rental_rate', '55');
body.append('rental_type', 'per_day');
body.append('location', 'consequatur');
body.append('insurance_info', 'consequatur');
body.append('vin', 'mqeopfuudtdsuf');
body.append('images[]', document.querySelector('input[name="images[]"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get car details
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/cars/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/cars/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update car
Example request:
curl --request PUT \
"http://carento.test/api/v1/car-rentals/vendor/cars/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"content\": \"consequatur\",
\"make_id\": \"consequatur\",
\"vehicle_type_id\": \"consequatur\",
\"transmission_id\": \"consequatur\",
\"fuel_type_id\": \"consequatur\",
\"number_of_seats\": 13,
\"number_of_doors\": 7,
\"mileage\": 16,
\"horsepower\": 50,
\"rental_rate\": 55,
\"rental_type\": \"per_day\",
\"location\": \"consequatur\",
\"insurance_info\": \"consequatur\",
\"vin\": \"mqeopfuudtdsuf\",
\"status\": \"unavailable\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/cars/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"content": "consequatur",
"make_id": "consequatur",
"vehicle_type_id": "consequatur",
"transmission_id": "consequatur",
"fuel_type_id": "consequatur",
"number_of_seats": 13,
"number_of_doors": 7,
"mileage": 16,
"horsepower": 50,
"rental_rate": 55,
"rental_type": "per_day",
"location": "consequatur",
"insurance_info": "consequatur",
"vin": "mqeopfuudtdsuf",
"status": "unavailable"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete car
Example request:
curl --request DELETE \
"http://carento.test/api/v1/car-rentals/vendor/cars/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/cars/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload car images
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/vendor/cars/1562/images" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "images[]=@/private/var/folders/pv/8ss1l0s14ylczgg_279blg680000gn/T/phpCMKYS5" const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/cars/1562/images"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('images[]', document.querySelector('input[name="images[]"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete car image
Example request:
curl --request DELETE \
"http://carento.test/api/v1/car-rentals/vendor/cars/1562/images/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/cars/1562/images/consequatur"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List vendor bookings
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/bookings" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/bookings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get booking details
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/bookings/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/bookings/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update booking status
Example request:
curl --request PUT \
"http://carento.test/api/v1/car-rentals/vendor/bookings/1562/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"confirmed\",
\"note\": \"vmqeopfuudtdsufvyvddq\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/bookings/1562/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "confirmed",
"note": "vmqeopfuudtdsufvyvddq"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Complete booking
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/vendor/bookings/1562/complete" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "completion_miles=73"\
--form "completion_gas_level=mqeopfuudtdsufvyvddqa"\
--form "completion_notes=mniihfqcoynlazghdtqtq"\
--form "completion_damage_images[]=@/private/var/folders/pv/8ss1l0s14ylczgg_279blg680000gn/T/php7FZPXX" const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/bookings/1562/complete"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('completion_miles', '73');
body.append('completion_gas_level', 'mqeopfuudtdsufvyvddqa');
body.append('completion_notes', 'mniihfqcoynlazghdtqtq');
body.append('completion_damage_images[]', document.querySelector('input[name="completion_damage_images[]"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get vendor dashboard data
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/dashboard" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/dashboard"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List vendor reviews
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/reviews" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/reviews"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reply to a review
Example request:
curl --request POST \
"http://carento.test/api/v1/car-rentals/vendor/reviews/1562/reply" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reply\": \"vmqeopfuudtdsufvyvddq\"
}"
const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/reviews/1562/reply"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reply": "vmqeopfuudtdsufvyvddq"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get vendor earnings list
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/earnings" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/earnings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get earnings summary
Example request:
curl --request GET \
--get "http://carento.test/api/v1/car-rentals/vendor/earnings/summary" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/car-rentals/vendor/earnings/summary"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Device Tokens
Register or update device token
Register a new device token or update an existing one for push notifications.
Example request:
curl --request POST \
"http://carento.test/api/v1/device-tokens" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"consequatur\",
\"platform\": \"consequatur\",
\"app_version\": \"consequatur\",
\"device_id\": \"consequatur\",
\"user_type\": \"consequatur\",
\"user_id\": 17
}"
const url = new URL(
"http://carento.test/api/v1/device-tokens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "consequatur",
"platform": "consequatur",
"app_version": "consequatur",
"device_id": "consequatur",
"user_type": "consequatur",
"user_id": 17
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get user's device tokens
Retrieve all device tokens for the authenticated user.
Example request:
curl --request GET \
--get "http://carento.test/api/v1/device-tokens" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/device-tokens"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update device token
Update an existing device token.
Example request:
curl --request PUT \
"http://carento.test/api/v1/device-tokens/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"platform\": \"consequatur\",
\"app_version\": \"consequatur\",
\"device_id\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/device-tokens/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"platform": "consequatur",
"app_version": "consequatur",
"device_id": "consequatur"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete device token by token value
Delete a device token using the token value.
Example request:
curl --request DELETE \
"http://carento.test/api/v1/device-tokens/by-token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"token\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/device-tokens/by-token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "consequatur"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete device token
Delete a device token to stop receiving push notifications.
Example request:
curl --request DELETE \
"http://carento.test/api/v1/device-tokens/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/device-tokens/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Deactivate device token
Deactivate a device token without deleting it.
Example request:
curl --request POST \
"http://carento.test/api/v1/device-tokens/1562/deactivate" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/device-tokens/1562/deactivate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Languages
Get list of available languages
Example request:
curl --request GET \
--get "http://carento.test/api/v1/languages" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/languages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"error": false,
"data": [
{
"lang_id": 1,
"lang_name": "English",
"lang_locale": "en",
"lang_code": "en_US",
"lang_flag": "<svg ...>",
"lang_is_default": true,
"lang_is_rtl": false,
"lang_order": 0
},
{
"lang_id": 2,
"lang_name": "Vietnamese",
"lang_locale": "vi",
"lang_code": "vi",
"lang_flag": "<svg ...>",
"lang_is_default": false,
"lang_is_rtl": false,
"lang_order": 1
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get current language
Example request:
curl --request GET \
--get "http://carento.test/api/v1/languages/current" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/languages/current"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"lang_id": 1,
"lang_name": "English",
"lang_locale": "en",
"lang_code": "en_US",
"lang_flag": "us",
"lang_is_default": true,
"lang_is_rtl": false,
"lang_order": 0
},
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Notifications
Get user notifications
Retrieve notifications for the authenticated user.
Example request:
curl --request GET \
--get "http://carento.test/api/v1/notifications?page=1&per_page=20&unread_only=&type=general" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/notifications"
);
const params = {
"page": "1",
"per_page": "20",
"unread_only": "0",
"type": "general",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get notification statistics
Get notification statistics for the authenticated user.
Example request:
curl --request GET \
--get "http://carento.test/api/v1/notifications/stats" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/notifications/stats"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark all notifications as read
Mark all notifications as read for the authenticated user.
Example request:
curl --request POST \
"http://carento.test/api/v1/notifications/mark-all-read" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/notifications/mark-all-read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark notification as read
Mark a specific notification as read for the authenticated user.
Example request:
curl --request POST \
"http://carento.test/api/v1/notifications/1562/read" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/notifications/1562/read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mark notification as clicked
Mark a notification as clicked when user taps on it.
Example request:
curl --request POST \
"http://carento.test/api/v1/notifications/1562/clicked" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/notifications/1562/clicked"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete notification
Delete a notification from user's list.
Example request:
curl --request DELETE \
"http://carento.test/api/v1/notifications/1562" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/notifications/1562"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Page
List pages
Example request:
curl --request GET \
--get "http://carento.test/api/v1/pages" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/pages"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "Homepage",
"slug": "homepage",
"description": null,
"image": null,
"template": "homepage",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 2,
"name": "Blog",
"slug": "blog",
"description": null,
"image": null,
"template": "blog-with-sidebar",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 3,
"name": "Contact",
"slug": "contact",
"description": null,
"image": null,
"template": null,
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 4,
"name": "Services",
"slug": "services",
"description": null,
"image": null,
"template": "full-width",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 5,
"name": "Pricing",
"slug": "pricing",
"description": null,
"image": null,
"template": "full-width",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 6,
"name": "About Us",
"slug": "about-us",
"description": null,
"image": null,
"template": "full-width",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 7,
"name": "Car List 1",
"slug": "car-list-1",
"description": null,
"image": null,
"template": "homepage",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 8,
"name": "Car List 2",
"slug": "car-list-2",
"description": null,
"image": null,
"template": "homepage",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 9,
"name": "Car List 3",
"slug": "car-list-3",
"description": null,
"image": null,
"template": "homepage",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
},
{
"id": 10,
"name": "Car List 4",
"slug": "car-list-4",
"description": null,
"image": null,
"template": "homepage",
"status": {
"value": "published",
"label": "Published"
},
"created_at": "2025-07-06T08:32:42.000000Z",
"updated_at": "2025-07-06T08:32:42.000000Z"
}
],
"links": {
"first": "http://carento.test/api/v1/pages?page=1",
"last": "http://carento.test/api/v1/pages?page=4",
"prev": null,
"next": "http://carento.test/api/v1/pages?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 4,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://carento.test/api/v1/pages?page=1",
"label": "1",
"active": true
},
{
"url": "http://carento.test/api/v1/pages?page=2",
"label": "2",
"active": false
},
{
"url": "http://carento.test/api/v1/pages?page=3",
"label": "3",
"active": false
},
{
"url": "http://carento.test/api/v1/pages?page=4",
"label": "4",
"active": false
},
{
"url": "http://carento.test/api/v1/pages?page=2",
"label": "Next »",
"active": false
}
],
"path": "http://carento.test/api/v1/pages",
"per_page": 10,
"to": 10,
"total": 38
},
"error": false,
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get page by ID
Example request:
curl --request GET \
--get "http://carento.test/api/v1/pages/1562?id=17" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/pages/1562"
);
const params = {
"id": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Not found"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Profile
Get the user profile information.
requires authentication
Example request:
curl --request GET \
--get "http://carento.test/api/v1/me" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/me"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update profile
requires authentication
Example request:
curl --request PUT \
"http://carento.test/api/v1/me" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"vmqeopfuudtdsufvyvddqamniihfqcoynlazghdtqtqxbajwbpilpmufinllwloauydlsmsjur\",
\"last_name\": \"yvojcybzvrbyickznkygloigmkwxphlvazjrcnfbaqywuxhgjjmzuxjubqouzswiwxtrkimfca\",
\"name\": \"consequatur\",
\"phone\": \"consequatur\",
\"dob\": \"consequatur\",
\"gender\": \"consequatur\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"email\": \"qkunze@example.com\"
}"
const url = new URL(
"http://carento.test/api/v1/me"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "vmqeopfuudtdsufvyvddqamniihfqcoynlazghdtqtqxbajwbpilpmufinllwloauydlsmsjur",
"last_name": "yvojcybzvrbyickznkygloigmkwxphlvazjrcnfbaqywuxhgjjmzuxjubqouzswiwxtrkimfca",
"name": "consequatur",
"phone": "consequatur",
"dob": "consequatur",
"gender": "consequatur",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"email": "qkunze@example.com"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Avatar
requires authentication
Example request:
curl --request POST \
"http://carento.test/api/v1/update/avatar" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "avatar=@/private/var/folders/pv/8ss1l0s14ylczgg_279blg680000gn/T/php59hpsU" const url = new URL(
"http://carento.test/api/v1/update/avatar"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update password
requires authentication
Example request:
curl --request PUT \
"http://carento.test/api/v1/update/password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \"O[2UZ5ij-e\\/dl4m{o,\",
\"old_password\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/update/password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "O[2UZ5ij-e\/dl4m{o,",
"old_password": "consequatur"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get user settings
requires authentication
Example request:
curl --request GET \
--get "http://carento.test/api/v1/settings" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://carento.test/api/v1/settings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": true,
"data": null,
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update user settings
requires authentication
Example request:
curl --request PUT \
"http://carento.test/api/v1/settings" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"biometric_enabled\": false,
\"notification_enabled\": false,
\"language\": \"consequatur\",
\"currency\": \"consequatur\",
\"theme\": \"consequatur\",
\"timezone\": \"Europe\\/Malta\"
}"
const url = new URL(
"http://carento.test/api/v1/settings"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"biometric_enabled": false,
"notification_enabled": false,
"language": "consequatur",
"currency": "consequatur",
"theme": "consequatur",
"timezone": "Europe\/Malta"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Simple Slider
Get sliders
Example request:
curl --request GET \
--get "http://carento.test/api/v1/simple-sliders?keys[]=home-slider&keys[]=product-slider" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"keys\": [
\"home-slider\",
\"product-slider\"
]
}"
const url = new URL(
"http://carento.test/api/v1/simple-sliders"
);
const params = {
"keys[0]": "home-slider",
"keys[1]": "product-slider",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"keys": [
"home-slider",
"product-slider"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"error": false,
"data": [
{
"id": 1,
"name": "Home slider",
"key": "home-slider",
"description": "The main slider on homepage",
"items": [
{
"id": 1,
"title": "Find your next vehicle today",
"description": "Browse our diverse inventory and enjoy a seamless buying experience <br> with expert support every step of the way",
"image": "http://carento.test/storage/sliders/banner-1.jpg",
"link": "/",
"order": 0,
"label_top": "+3600 cars for you",
"keywords": [
{
"name": "Economy",
"link": "/"
},
{
"name": "Standard",
"link": "/"
},
{
"name": "Luxury",
"link": "/"
},
{
"name": "SUV",
"link": "/"
},
{
"name": "Convertible",
"link": "/"
}
]
},
{
"id": 2,
"title": "Discover your next ride today",
"description": "Explore our wide selection and enjoy a smooth purchasing journey, <br> with expert assistance at every turn",
"image": "http://carento.test/storage/sliders/banner-2.jpg",
"link": "/",
"order": 1,
"label_top": "Best car rental system",
"keywords": [
{
"name": "Economy",
"link": "/"
},
{
"name": "Standard",
"link": "/"
},
{
"name": "Luxury",
"link": "/"
},
{
"name": "SUV",
"link": "/"
},
{
"name": "Convertible",
"link": "/"
}
]
}
]
}
],
"message": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Social Login
Apple login
Example request:
curl --request POST \
"http://carento.test/api/v1/auth/apple" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"identityToken\": \"consequatur\",
\"guard\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/auth/apple"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"identityToken": "consequatur",
"guard": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|abc123def456...",
"user": {
"id": 1,
"name": "John Doe",
"email": "john@example.com"
}
},
"message": "Login successful"
}
Example response (400):
{
"error": true,
"message": "Invalid Apple token"
}
Example response (400):
{
"error": true,
"message": "Cannot login, no email or Apple ID provided!"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Google login
Example request:
curl --request POST \
"http://carento.test/api/v1/auth/google" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"identityToken\": \"consequatur\",
\"guard\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/auth/google"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"identityToken": "consequatur",
"guard": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|abc123def456...",
"user": {
"id": 1,
"name": "John Doe",
"email": "john@example.com"
}
},
"message": "Login successful"
}
Example response (400):
{
"error": true,
"message": "Invalid Google token"
}
Example response (400):
{
"error": true,
"message": "Google authentication is not properly configured"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Facebook login
Example request:
curl --request POST \
"http://carento.test/api/v1/auth/facebook" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"accessToken\": \"consequatur\",
\"guard\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/auth/facebook"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"accessToken": "consequatur",
"guard": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|abc123def456...",
"user": {
"id": 1,
"name": "John Doe",
"email": "john@example.com"
}
},
"message": "Login successful"
}
Example response (400):
{
"error": true,
"message": "Invalid Facebook token"
}
Example response (400):
{
"error": true,
"message": "Facebook authentication is not properly configured"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
X (Twitter) login
Example request:
curl --request POST \
"http://carento.test/api/v1/auth/x" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"accessToken\": \"consequatur\",
\"guard\": \"consequatur\"
}"
const url = new URL(
"http://carento.test/api/v1/auth/x"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"accessToken": "consequatur",
"guard": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"error": false,
"data": {
"token": "1|abc123def456...",
"user": {
"id": 1,
"name": "John Doe",
"email": "john@example.com"
}
},
"message": "Login successful"
}
Example response (400):
{
"error": true,
"message": "Invalid X (Twitter) token"
}
Example response (400):
{
"error": true,
"message": "X (Twitter) authentication is not properly configured"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.