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://localhost/api/v1/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gbailey@example.net\",
\"password\": \"+-0pBNvYgxwmi\\/#iw\"
}"
const url = new URL(
"http://localhost/api/v1/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gbailey@example.net",
"password": "+-0pBNvYgxwmi\/#iw"
};
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/v1/auth/logout
Example request:
curl --request POST \
"http://localhost/api/v1/auth/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/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.
GET api/v1/lookup/permissions
Example request:
curl --request GET \
--get "http://localhost/api/v1/lookup/permissions" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"search_words\": [
\"architecto\"
]
}"
const url = new URL(
"http://localhost/api/v1/lookup/permissions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"search_words": [
"architecto"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status": "error",
"message": "Access denied",
"data": 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 api/v1/lookup/users
Example request:
curl --request GET \
--get "http://localhost/api/v1/lookup/users" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"search_words\": [
\"architecto\"
]
}"
const url = new URL(
"http://localhost/api/v1/lookup/users"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"search_words": [
"architecto"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status": "error",
"message": "Access denied",
"data": 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 api/v1/roles
Example request:
curl --request GET \
--get "http://localhost/api/v1/roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"is_active\": 12,
\"search_words\": [
\"architecto\"
],
\"page\": 22,
\"size\": 67,
\"sortBy\": \"bng-zmi_y\",
\"orderBy\": \"asc\"
}"
const url = new URL(
"http://localhost/api/v1/roles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"is_active": 12,
"search_words": [
"architecto"
],
"page": 22,
"size": 67,
"sortBy": "bng-zmi_y",
"orderBy": "asc"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status": "error",
"message": "Access denied",
"data": 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.
POST api/v1/roles
Example request:
curl --request POST \
"http://localhost/api/v1/roles" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"architecto\",
\"permissions\": [
{
\"uuid\": \"a4855dc5-0acb-33c3-b921-f4291f719ca0\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/roles"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "architecto",
"permissions": [
{
"uuid": "a4855dc5-0acb-33c3-b921-f4291f719ca0"
}
]
};
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/roles/{uuid}
Example request:
curl --request GET \
--get "http://localhost/api/v1/roles/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\"
}"
const url = new URL(
"http://localhost/api/v1/roles/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uuid": "6ff8f7f6-1eb3-3525-be4a-3932c805afed"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status": "error",
"message": "Access denied",
"data": 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.
PUT api/v1/roles/{uuid}
Example request:
curl --request PUT \
"http://localhost/api/v1/roles/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\",
\"name\": \"architecto\",
\"permissions\": [
{
\"uuid\": \"a4855dc5-0acb-33c3-b921-f4291f719ca0\"
}
]
}"
const url = new URL(
"http://localhost/api/v1/roles/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uuid": "6ff8f7f6-1eb3-3525-be4a-3932c805afed",
"name": "architecto",
"permissions": [
{
"uuid": "a4855dc5-0acb-33c3-b921-f4291f719ca0"
}
]
};
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.
PATCH api/v1/roles/{uuid}
Example request:
curl --request PATCH \
"http://localhost/api/v1/roles/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\",
\"is_active\": false
}"
const url = new URL(
"http://localhost/api/v1/roles/6ff8f7f6-1eb3-3525-be4a-3932c805afed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uuid": "6ff8f7f6-1eb3-3525-be4a-3932c805afed",
"is_active": false
};
fetch(url, {
method: "PATCH",
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/test-permission
Example request:
curl --request GET \
--get "http://localhost/api/v1/test-permission" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://localhost/api/v1/test-permission"
);
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: *
{
"status": "error",
"message": "Access denied",
"data": 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.