GET /api/v3/accounts/{lcuid}/drive-templates¶
Summary¶
GET accounts/{id}/drive-templates
Description¶
Return a list of templates for an account
Tags: accounts
Parameters¶
Header Parameters¶
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
Authorization |
string |
✓ Yes | Bearer {AuthToken} |
|
Content-Type |
string |
✓ Yes | application/json |
|
Accept |
string |
✓ Yes | application/json |
|
AppIdV3 |
string |
✓ Yes | LCUID-LAP-********-****-****-****-************ |
Request Body¶
Content Type: application/json¶
Schema¶
Type: object
Properties:
query(string): A query to search templates by name or description.page(integer): The page number to return, if not supplied, page 1 will be returned.per_page(integer): The number of items to return per page, if not supplied, The default of 100 will be returned.
Responses¶
Response: 200¶
Description: Sample Response
Content Type: application/json¶
Schema¶
Type: object
Properties:
success(boolean)drive_template(object) Type:object
Properties:
current_page(integer)-
data(array)- Array items:
objectType:object
Properties:
name(string)description(string)status(integer)-
options(object) Type:objectProperties:
_init(array)
-
lcuid(string) inventory_item_class(array)public(boolean)template_hash(string)created_at(string)updated_at(string)inventory_item_class_data(array)
- Array items:
-
first_page_url(string) from(integer)last_page(integer)last_page_url(string)-
links(array)- Array items:
objectType:object
Properties:
url(string)label(string)active(boolean)
- Array items:
-
next_page_url(string) path(string)per_page(integer)prev_page_url(string)to(integer)total(integer)
Example Response¶
{
"success": true,
"drive_template": {
"current_page": 1,
"data": [
{
"name": "Test Template",
"description": "This is the description",
"status": 0,
"options": {
"_init": []
},
"lcuid": "LCUID-LDT-d5fcb7f4-43a7-4940-b8c4-118fba77aeb5",
"inventory_item_class": [],
"public": false,
"template_hash": "44f328af136d4c7fa7294e4cac8ec48b",
"created_at": "2026-10-09T15:54:04.000000Z",
"updated_at": "2026-10-09T15:54:04.000000Z",
"inventory_item_class_data": []
},
{
"name": "Test Template",
"description": "This is the description",
"status": 0,
"options": {
"_init": []
},
"lcuid": "LCUID-LDT-c6323528-e4fc-4a29-bb95-09218d36d254",
"inventory_item_class": [],
"public": false,
"template_hash": "44f328af136d4c7fa7294e4cac8ec48b",
"created_at": "2026-10-09T15:54:05.000000Z",
"updated_at": "2026-10-09T15:54:05.000000Z",
"inventory_item_class_data": []
}
],
"first_page_url": "http://localhost:8080/api/v3/accounts/LCUID-LA-18bd74db-c566-4a40-8f7a-c981e37a30a2/drive-templates?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8080/api/v3/accounts/LCUID-LA-18bd74db-c566-4a40-8f7a-c981e37a30a2/drive-templates?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost:8080/api/v3/accounts/LCUID-LA-18bd74db-c566-4a40-8f7a-c981e37a30a2/drive-templates?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8080/api/v3/accounts/LCUID-LA-18bd74db-c566-4a40-8f7a-c981e37a30a2/drive-templates",
"per_page": 100,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
Example Implementations¶
Bash (cURL)¶
curl --request GET \
--get "https://api.lucit.app/api/v3/accounts/LCUID-LA-506fc585-77be-11ec-acb9-c2cdb617d190/drive-templates" \
--header "Authorization: Bearer {AuthToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "AppIdV3: LCUID-LAP-********-****-****-****-************" \
--data "{
\"query\": \"modern\",
\"page\": 1,
\"per_page\": 50
}"
JavaScript (Fetch API)¶
const url = new URL(
"https://api.lucit.app/api/v3/accounts/LCUID-LA-506fc585-77be-11ec-acb9-c2cdb617d190/drive-templates"
);
const headers = {
"Authorization": "Bearer {AuthToken}",
"Content-Type": "application/json",
"Accept": "application/json",
"AppIdV3": "LCUID-LAP-********-****-****-****-************",
};
let body = {
"query": "modern",
"page": 1,
"per_page": 50
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
PHP (Guzzle)¶
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.lucit.app/api/v3/accounts/LCUID-LA-506fc585-77be-11ec-acb9-c2cdb617d190/drive-templates',
[
'headers' => [
'Authorization' => 'Bearer {AuthToken}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'AppIdV3' => 'LCUID-LAP-********-****-****-****-************',
],
'json' => [
'query' => 'modern',
'page' => 1,
'per_page' => 50,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Python (Requests)¶
import requests
import json
url = 'https://api.lucit.app/api/v3/accounts/LCUID-LA-506fc585-77be-11ec-acb9-c2cdb617d190/drive-templates'
payload = {
"query": "modern",
"page": 1,
"per_page": 50
}
headers = {
'Authorization': 'Bearer {AuthToken}',
'Content-Type': 'application/json',
'Accept': 'application/json',
'AppIdV3': 'LCUID-LAP-********-****-****-****-************'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()