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.
Endpoints
Muestra una lista paginada de compañías.
Corresponde al endpoint GET /api/companies
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies"
);
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "Compañía Test",
"logoUrl": null,
"description": "Esta es una compañía de prueba creada desde Postman",
"phone": "3001234567",
"catalogUrl": null,
"schedule": null,
"address": null,
"city": "Bogotá",
"location": null,
"gameRoomUrl": null
}
],
"links": {
"first": "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies?page=1",
"last": "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies",
"per_page": 15,
"to": 1,
"total": 1
}
}
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.
Muestra los detalles de una compañía específica.
Corresponde al endpoint GET /api/companies/{id}
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies/1"
);
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
access-control-allow-origin: *
{
"data": {
"id": 1,
"name": "Compañía Test",
"logoUrl": null,
"description": "Esta es una compañía de prueba creada desde Postman",
"phone": "3001234567",
"catalogUrl": null,
"schedule": null,
"address": null,
"city": "Bogotá",
"location": null,
"gameRoomUrl": null,
"branches": []
}
}
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.
Muestra la lista maestra de todos los minijuegos disponibles.
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/minigames" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/minigames"
);
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"name": "Pesca",
"description": "Un minijuego de pesca donde debes evitar las anguilas eléctricas.",
"gamePath": "pesca",
"costInCoins": 10,
"costInTickets": 10
}
]
}
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.
Muestra una lista pública de todos los eventos activos.
Corresponde al endpoint: GET /api/events
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events"
);
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
access-control-allow-origin: *
{
"data": [
{
"id": 1,
"description": "Evento de prueba desde Postman",
"city": "Bogotá",
"isActive": true,
"duration": "3h",
"createdAt": "2025-09-16T19:15:22+00:00",
"company": {
"id": 1,
"name": "Compañía Test",
"logoUrl": null,
"description": "Esta es una compañía de prueba creada desde Postman",
"phone": "3001234567",
"catalogUrl": null,
"schedule": null,
"address": null,
"city": "Bogotá",
"location": null,
"gameRoomUrl": null
}
}
],
"links": {
"first": "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events?page=1",
"last": "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events",
"per_page": 15,
"to": 1,
"total": 1
}
}
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.
Muestra los detalles completos de un evento específico.
Corresponde al endpoint: GET /api/events/{event}
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events/1"
);
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 55
access-control-allow-origin: *
{
"data": {
"id": 1,
"description": "Evento de prueba desde Postman",
"city": "Bogotá",
"isActive": true,
"duration": "3h",
"createdAt": "2025-09-16T19:15:22+00:00",
"company": {
"id": 1,
"name": "Compañía Test",
"logoUrl": null,
"description": "Esta es una compañía de prueba creada desde Postman",
"phone": "3001234567",
"catalogUrl": null,
"schedule": null,
"address": null,
"city": "Bogotá",
"location": null,
"gameRoomUrl": null
},
"minigames": [
{
"id": 1,
"name": "Pesca",
"description": "Un minijuego de pesca donde debes evitar las anguilas eléctricas.",
"gamePath": "pesca",
"costInCoins": 10,
"costInTickets": 10
}
]
}
}
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.
Maneja la solicitud de inicio de sesión del usuario.
Corresponde al endpoint POST /api/login
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"qkunze@example.com\",
\"password\": \"consequatur\",
\"device_name\": \"consequatur\"
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "qkunze@example.com",
"password": "consequatur",
"device_name": "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.
Registra un nuevo usuario y devuelve un token de Sanctum.
Corresponde al endpoint: POST /api/register
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"vmqeopfuudtdsufvyvddq\",
\"last_name\": \"amniihfqcoynlazghdtqt\",
\"username\": \"qxbajwbpilpmufinllwlo\",
\"email\": \"schmitt.beulah@example.org\",
\"password\": \"consequatur\",
\"phone\": \"mqeopfuudtdsufvyv\"
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "vmqeopfuudtdsufvyvddq",
"last_name": "amniihfqcoynlazghdtqt",
"username": "qxbajwbpilpmufinllwlo",
"email": "schmitt.beulah@example.org",
"password": "consequatur",
"phone": "mqeopfuudtdsufvyv"
};
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.
Maneja la solicitud de cierre de sesión del usuario.
Corresponde al endpoint POST /api/logout
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/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.
GET api/v1/user
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/user" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/user"
);
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: *
{
"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.
Actualiza la información del perfil del usuario autenticado.
Corresponde al endpoint: POST /api/user/profile
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/user/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"vmqeopfuudtdsufvyvddq\",
\"last_name\": \"amniihfqcoynlazghdtqt\",
\"username\": \"qxbajwbpilpmufinllwlo\",
\"email\": \"schmitt.beulah@example.org\",
\"birthdate\": \"2025-09-27T03:01:54\",
\"gender\": \"smsjuryvojcybzvrb\",
\"phone\": \"yickznkygloigmkwx\",
\"current_city\": \"phlvazjrcnfbaqywuxhgj\"
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/user/profile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "vmqeopfuudtdsufvyvddq",
"last_name": "amniihfqcoynlazghdtqt",
"username": "qxbajwbpilpmufinllwlo",
"email": "schmitt.beulah@example.org",
"birthdate": "2025-09-27T03:01:54",
"gender": "smsjuryvojcybzvrb",
"phone": "yickznkygloigmkwx",
"current_city": "phlvazjrcnfbaqywuxhgj"
};
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.
Devuelve los saldos actuales del usuario autenticado.
Corresponde al endpoint GET /api/user/balances
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/user/balances" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/user/balances"
);
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: *
{
"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.
Devuelve un historial paginado de las transacciones del usuario.
Corresponde al endpoint GET /api/user/transactions
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/user/transactions" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/user/transactions"
);
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: *
{
"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.
Inicia una partida para el usuario autenticado.
Corresponde al endpoint: POST /api/minigames/{minigame}/play
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/minigames/1/play" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"payment_method\": \"consequatur\",
\"event_id\": \"consequatur\"
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/minigames/1/play"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"payment_method": "consequatur",
"event_id": "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.
Guarda la puntuación del usuario al finalizar una partida.
Corresponde al endpoint: POST /api/scores
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/scores" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"minigame_id\": \"consequatur\",
\"event_id\": \"consequatur\",
\"score\": 45
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/scores"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"minigame_id": "consequatur",
"event_id": "consequatur",
"score": 45
};
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.
Crea una nueva compañía y asigna al usuario actual como su administrador.
Corresponde al endpoint: POST /api/companies
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"city\": \"dtdsufvyvddqamniihfqc\",
\"phone\": \"oynlazghdtqtqxbaj\"
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/companies"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"city": "dtdsufvyvddqamniihfqc",
"phone": "oynlazghdtqtqxbaj"
};
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.
Crea un nuevo evento para la compañía del administrador.
Corresponde al endpoint: POST /api/events
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"city\": \"dtdsufvyvddqamniihfqc\",
\"is_active\": false,
\"duration\": \"consequatur\",
\"minigame_ids\": [
17
]
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"city": "dtdsufvyvddqamniihfqc",
"is_active": false,
"duration": "consequatur",
"minigame_ids": [
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.
Actualiza un evento existente.
Corresponde al endpoint: PUT /api/events/{event}
Example request:
curl --request PUT \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events/1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"city\": \"dtdsufvyvddqamniihfqc\",
\"is_active\": false,
\"duration\": \"consequatur\",
\"minigame_ids\": [
17
]
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/events/1"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"city": "dtdsufvyvddqamniihfqc",
"is_active": false,
"duration": "consequatur",
"minigame_ids": [
17
]
};
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.
Muestra la lista de eventos (activos e inactivos) de la compañía del usuario administrador autenticado.
Corresponde al endpoint: GET /api/my-company/events
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/my-company/events" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/my-company/events"
);
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: *
{
"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.
Muestra una lista de todos los usuarios.
Este método corresponde al endpoint GET /api/users.
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/v1/admin/users" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/admin/users"
);
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: *
{
"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.
Almacena un nuevo usuario en la base de datos.
Este método corresponde al endpoint POST /api/users.
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/admin/users" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"vmqeopfuudtdsufvyvddq\",
\"last_name\": \"amniihfqcoynlazghdtqt\",
\"username\": \"qxbajwbpilpmufinllwlo\",
\"email\": \"schmitt.beulah@example.org\",
\"password\": \"consequatur\",
\"special\": \"consequatur\",
\"role\": \"consequatur\",
\"birthdate\": \"2025-09-27T03:01:54\",
\"gender\": \"mqeopfuudtdsufvyv\",
\"phone\": \"ddqamniihfqcoynla\"
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/admin/users"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "vmqeopfuudtdsufvyvddq",
"last_name": "amniihfqcoynlazghdtqt",
"username": "qxbajwbpilpmufinllwlo",
"email": "schmitt.beulah@example.org",
"password": "consequatur",
"special": "consequatur",
"role": "consequatur",
"birthdate": "2025-09-27T03:01:54",
"gender": "mqeopfuudtdsufvyv",
"phone": "ddqamniihfqcoynla"
};
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.
Crea un nuevo minijuego en la lista maestra.
Corresponde al endpoint: POST /api/admin/minigames
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/admin/minigames" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vmqeopfuudtdsufvyvddq\",
\"description\": \"Dolores dolorum amet iste laborum eius est dolor.\",
\"game_path\": \"consequatur\",
\"cost_in_coins\": 45,
\"cost_in_tickets\": 56
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/admin/minigames"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vmqeopfuudtdsufvyvddq",
"description": "Dolores dolorum amet iste laborum eius est dolor.",
"game_path": "consequatur",
"cost_in_coins": 45,
"cost_in_tickets": 56
};
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.
Handle incoming data from an external service.
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/receive-data" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"order_id\": \"consequatur\",
\"customer\": {
\"name\": \"consequatur\",
\"email\": \"carolyne.luettgen@example.org\"
},
\"products\": [
{
\"id\": 17,
\"quantity\": 45
}
]
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/v1/receive-data"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"order_id": "consequatur",
"customer": {
"name": "consequatur",
"email": "carolyne.luettgen@example.org"
},
"products": [
{
"id": 17,
"quantity": 45
}
]
};
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.
POST api/login
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/login"
);
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.
POST api/register
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"vmqeopfuudtdsufvyvddq\",
\"last_name\": \"amniihfqcoynlazghdtqt\",
\"username\": \"qxbajwbpilpmufinllwlo\",
\"email\": \"schmitt.beulah@example.org\",
\"password\": \"LcDi`wmUB)z&~na%\",
\"phone\": \"yickznkygloigmkwx\"
}"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "vmqeopfuudtdsufvyvddq",
"last_name": "amniihfqcoynlazghdtqt",
"username": "qxbajwbpilpmufinllwlo",
"email": "schmitt.beulah@example.org",
"password": "LcDi`wmUB)z&~na%",
"phone": "yickznkygloigmkwx"
};
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.
POST api/logout
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/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.
POST api/refresh
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/refresh" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/refresh"
);
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.
POST api/token
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/token" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/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.
GET api/{datatype}
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur"
);
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: *
{
"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 api/{datatype}/{id}
Example request:
curl --request GET \
--get "https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur/consequatur"
);
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: *
{
"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.
PUT api/{datatype}/{id}
Example request:
curl --request PUT \
"https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur/consequatur"
);
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.
POST api/{datatype}
Example request:
curl --request POST \
"https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur"
);
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 api/{datatype}/{id}
Example request:
curl --request DELETE \
"https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur/consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://hotpink-hedgehog-420087.hostingersite.com/api/consequatur/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.