Skip to content
Skip to Content
DevelopersAPI referenceRules

List rules in the order they run

GET
/v1/rules

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Response Body

The user's rules, in the order they run

application/json
  1. response
rules*array<>
Example Request
curl -X GET 'https://example.com/v1/rules'
Example Response
{  "rules": [    {      "id": "string",      "name": "string",      "description": "string",      "enabled": true,      "event": {        "type": "bookmarkAdded",        "tag": "string",        "list_ids": [          "string"        ]      },      "condition": {        "type": "alwaysTrue",        "str": "string",        "tag": "string",        "item_type": "link",        "query": "string",        "conditions": [          {}        ]      },      "actions": [        {          "type": "addTag",          "tag": "string",          "list_id": "string"        }      ],      "applied_count": 0,      "last_applied_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ]}