Get a rule
curl --request GET \
--url https://api.getlurk.com/v1/rules/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/rules/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/rules/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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",
"live_definition": {
"when": {
"event": "order.paid"
},
"if": [
{
"property": {
"name": "currency",
"equals": "USD"
}
}
],
"limit": [
{
"max": 5,
"per": "day",
"by": "user"
}
],
"do": [
{
"unit": "points",
"add": {
"from": "total_cents",
"per": 100
}
}
]
}
}{
"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>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Rules
Get a rule
By ID or key. definition is the newest version; live_definition is what is running now, which differs while an edit waits for a person.
GET
/
v1
/
rules
/
{id}
Get a rule
curl --request GET \
--url https://api.getlurk.com/v1/rules/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/rules/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/rules/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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",
"live_definition": {
"when": {
"event": "order.paid"
},
"if": [
{
"property": {
"name": "currency",
"equals": "USD"
}
}
],
"limit": [
{
"max": 5,
"per": "day",
"by": "user"
}
],
"do": [
{
"unit": "points",
"add": {
"from": "total_cents",
"per": 100
}
}
]
}
}{
"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>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Authorizations
Response
Get a rule