List rules
curl --request GET \
--url https://api.getlurk.com/v1/rules \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/rules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "rule_01m6nezem0ftv843at2zrp452g",
"key": "welcome-points",
"name": "Welcome points",
"status": "draft",
"version": 1,
"live_version": null,
"definition": {
"when": {
"event": "account.created"
},
"if": [],
"limit": [
{
"max": 1,
"per": "ever",
"by": "user"
}
],
"do": [
{
"unit": "points",
"add": 50
}
]
},
"units": [
"points"
],
"created_at": "2026-11-05T09:00:00.000Z",
"updated_at": "2026-11-05T09:00:00.000Z"
},
{
"id": "rule_01m2z44880ev18z457tkgkpp00",
"key": "order-points",
"name": "Points for orders",
"status": "live",
"version": 2,
"live_version": 1,
"definition": {
"when": {
"event": "order.paid"
},
"if": [
{
"property": {
"name": "currency",
"equals": "USD"
}
}
],
"limit": [
{
"max": 3,
"per": "day",
"by": "user"
}
],
"do": [
{
"unit": "points",
"add": {
"from": "total_cents",
"per": 100
}
}
]
},
"units": [
"points"
],
"created_at": "2026-09-20T10:00:00.000Z",
"updated_at": "2026-11-06T15:30:00.000Z"
}
],
"has_more": false,
"next_cursor": null,
"counts": {
"all": 2,
"live": 1,
"paused": 0,
"draft": 1
}
}{
"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>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Rules
List rules
Newest first. Filter by status, unit, event or part of the name. counts says how many rules each status has under the other filters.
GET
/
v1
/
rules
List rules
curl --request GET \
--url https://api.getlurk.com/v1/rules \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/rules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/rules"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "rule_01m6nezem0ftv843at2zrp452g",
"key": "welcome-points",
"name": "Welcome points",
"status": "draft",
"version": 1,
"live_version": null,
"definition": {
"when": {
"event": "account.created"
},
"if": [],
"limit": [
{
"max": 1,
"per": "ever",
"by": "user"
}
],
"do": [
{
"unit": "points",
"add": 50
}
]
},
"units": [
"points"
],
"created_at": "2026-11-05T09:00:00.000Z",
"updated_at": "2026-11-05T09:00:00.000Z"
},
{
"id": "rule_01m2z44880ev18z457tkgkpp00",
"key": "order-points",
"name": "Points for orders",
"status": "live",
"version": 2,
"live_version": 1,
"definition": {
"when": {
"event": "order.paid"
},
"if": [
{
"property": {
"name": "currency",
"equals": "USD"
}
}
],
"limit": [
{
"max": 3,
"per": "day",
"by": "user"
}
],
"do": [
{
"unit": "points",
"add": {
"from": "total_cents",
"per": 100
}
}
]
},
"units": [
"points"
],
"created_at": "2026-09-20T10:00:00.000Z",
"updated_at": "2026-11-06T15:30:00.000Z"
}
],
"has_more": false,
"next_cursor": null,
"counts": {
"all": 2,
"live": 1,
"paused": 0,
"draft": 1
}
}{
"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>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Authorizations
Query Parameters
Response
List rules