Get a template
curl --request GET \
--url https://api.getlurk.com/v1/templates/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/templates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/templates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"key": "<string>",
"name": "<string>",
"tagline": "<string>",
"for": "<string>",
"category": "earn_and_spend",
"status": "available",
"counts": {
"units": 1,
"rules": 1,
"views": 1
},
"description": "<string>",
"adds": {
"units": [
{
"key": "<string>",
"name": "<string>"
}
],
"rules": [
{
"key": "<string>",
"name": "<string>"
}
],
"views": [
{
"key": "<string>",
"name": "<string>"
}
]
},
"settings": [
{
"key": "<string>",
"label": "<string>",
"type": "text",
"default": "<string>"
}
],
"installed_at": "2023-11-07T05:31:56Z"
}{
"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
Get a template
One template: what it adds (units, and rules that arrive as drafts) with its default settings, the settings a person can change, and when it was added to this project.
GET
/
v1
/
templates
/
{id}
Get a template
curl --request GET \
--url https://api.getlurk.com/v1/templates/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/templates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/templates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"key": "<string>",
"name": "<string>",
"tagline": "<string>",
"for": "<string>",
"category": "earn_and_spend",
"status": "available",
"counts": {
"units": 1,
"rules": 1,
"views": 1
},
"description": "<string>",
"adds": {
"units": [
{
"key": "<string>",
"name": "<string>"
}
],
"rules": [
{
"key": "<string>",
"name": "<string>"
}
],
"views": [
{
"key": "<string>",
"name": "<string>"
}
]
},
"settings": [
{
"key": "<string>",
"label": "<string>",
"type": "text",
"default": "<string>"
}
],
"installed_at": "2023-11-07T05:31:56Z"
}{
"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>"
}
}Authorizations
Response
Get a template