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
POST api/v1/auth/login
Example request:
curl --request POST \
"http://ika-sma-6-admin-dashboard.test/api/v1/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\",
\"password\": \"|]|{+-\",
\"device_name\": \"architecto\"
}"
const url = new URL(
"http://ika-sma-6-admin-dashboard.test/api/v1/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net",
"password": "|]|{+-",
"device_name": "architecto"
};
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 api/v1/auth/me
Example request:
curl --request GET \
--get "http://ika-sma-6-admin-dashboard.test/api/v1/auth/me" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://ika-sma-6-admin-dashboard.test/api/v1/auth/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: *
{
"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.
POST api/v1/auth/logout
Example request:
curl --request POST \
"http://ika-sma-6-admin-dashboard.test/api/v1/auth/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://ika-sma-6-admin-dashboard.test/api/v1/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.
POST api/v1/auth/logout-all
Example request:
curl --request POST \
"http://ika-sma-6-admin-dashboard.test/api/v1/auth/logout-all" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://ika-sma-6-admin-dashboard.test/api/v1/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.
GET /api/v1/alumni Public list with filters & pagination
Example request:
curl --request GET \
--get "http://ika-sma-6-admin-dashboard.test/api/v1/alumni" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"graduation_year\": 16,
\"location\": \"non-makassar\",
\"per_page\": 22
}"
const url = new URL(
"http://ika-sma-6-admin-dashboard.test/api/v1/alumni"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"graduation_year": 16,
"location": "non-makassar",
"per_page": 22
};
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: *
{
"status": "success",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "http://ika-sma-6-admin-dashboard.test/api/v1/alumni?page=1",
"from": null,
"last_page": 1,
"last_page_url": "http://ika-sma-6-admin-dashboard.test/api/v1/alumni?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "http://ika-sma-6-admin-dashboard.test/api/v1/alumni?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"next_page_url": null,
"path": "http://ika-sma-6-admin-dashboard.test/api/v1/alumni",
"per_page": 22,
"prev_page_url": null,
"to": null,
"total": 0
}
}
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/alumni/{id} Public detail
Example request:
curl --request GET \
--get "http://ika-sma-6-admin-dashboard.test/api/v1/alumni/019c2c17-45d6-70bd-9410-adcff46620af" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://ika-sma-6-admin-dashboard.test/api/v1/alumni/019c2c17-45d6-70bd-9410-adcff46620af"
);
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: *
{
"status": "success",
"data": {
"id": "019c2c17-45d6-70bd-9410-adcff46620af",
"name": "El Chan cantik",
"nisn": "1232123",
"graduation_year": 2003,
"location": "non-makassar",
"ethnicity": "Jowo Keknyo",
"domicile": "Jowo keknyo",
"address": null,
"profession": "Cosplayer",
"position": "Cosplayer apa ya",
"hobby": "Ngecosplay lah",
"contact_number": "085343675435",
"image_url": "http://ika-sma-6-admin-dashboard.test/storage/alumni/01KGP1EHDJWGQ8A36X6PC9BK49.jpg"
}
}
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/activity Public list with filters & pagination
Example request:
curl --request GET \
--get "http://ika-sma-6-admin-dashboard.test/api/v1/activity" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"location\": \"architecto\",
\"from\": \"2026-02-07T09:11:10\",
\"to\": \"2052-03-02\",
\"per_page\": 22
}"
const url = new URL(
"http://ika-sma-6-admin-dashboard.test/api/v1/activity"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"location": "architecto",
"from": "2026-02-07T09:11:10",
"to": "2052-03-02",
"per_page": 22
};
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: *
{
"status": "success",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "http://ika-sma-6-admin-dashboard.test/api/v1/activity?page=1",
"from": null,
"last_page": 1,
"last_page_url": "http://ika-sma-6-admin-dashboard.test/api/v1/activity?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "http://ika-sma-6-admin-dashboard.test/api/v1/activity?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"next_page_url": null,
"path": "http://ika-sma-6-admin-dashboard.test/api/v1/activity",
"per_page": 22,
"prev_page_url": null,
"to": null,
"total": 0
}
}
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/activity/{id} Public detail
Example request:
curl --request GET \
--get "http://ika-sma-6-admin-dashboard.test/api/v1/activity/architecto" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://ika-sma-6-admin-dashboard.test/api/v1/activity/architecto"
);
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: *
{
"message": "No query results for model [App\\Models\\Activity] architecto"
}
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.