See this: Rule Machine API
It is also possible to put a value in the URL that will end up in %value% within the rule.