List rules
Returns the rules on a channel. Filter by is_active or by trigger kind.
Authentication
AuthorizationBearer
Your API key, issued by ParsChat sales. One key per account, spanning every robot you own. Send it as Authorization: Bearer pk_live_….
Path parameters
robot_id
The robot's id, as returned by the create call.
channel_id
The channel's id.
Query parameters
is_active
Return only active, or only inactive, rules.
on
Return only DM rules or only comment rules.
Allowed values:
limit
How many items to return per page.
offset
How many records to skip. Use offset = page * limit, and total_count from the response to know when to stop.
Response
A page of rules.
data
pagination
Offset pagination. total_count tells you how many records match, so you know how many pages to fetch before you start.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error