List templates
curl --request GET \
--url https://api.getlurk.com/v1/templates \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"key": "<string>",
"name": "<string>",
"tagline": "<string>",
"for": "<string>",
"category": "earn_and_spend",
"status": "available",
"counts": {
"units": 1,
"rules": 1,
"views": 1
}
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Templates
List templates
The kits that add units and rules in one go, in the catalog’s order, with whether each is available, or already added to this project (in_use). filter: in_use shows what this project has added.
GET
/
v1
/
templates
List templates
curl --request GET \
--url https://api.getlurk.com/v1/templates \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"key": "<string>",
"name": "<string>",
"tagline": "<string>",
"for": "<string>",
"category": "earn_and_spend",
"status": "available",
"counts": {
"units": 1,
"rules": 1,
"views": 1
}
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}