title: How to get the state of a Token?
body: <p>I'm trying to implement a way to restrict the usage of a token only once. After its first use, you must not be able to use it alright by tagging the token on its state with UsedAlready tag and Unused if its not yet used. How do I do that in apigee?. Currently I have the following condition to determine whether if the Token is used already or not.</p>
  
  <pre><code> &lt;Step&gt;
      &lt;Condition&gt;(request.queryparam.state NotEquals accesstoken.state)&lt;/Condition&gt;
      &lt;Name&gt;RF-TokenAlreadyUsed&lt;/Name&gt;
  &lt;/Step&gt;
  </code></pre>
  
  <p>Looking on my Tracetool though, apigee is throwing out that my accesstoken.state doesn't contain anything, why is that though?. My API proxy and policy for saving a default state on token creation seems to work fine anyway.</p>
  
  <p>PS: Also I did the almost the same thing but using a non existing variable instead using the attribute to associate a token to a particular account. But doing the same thing with state with what I did with an attribute doesnt work. What am I doing wrong though?, am I using the state parameter of apigee right? , cuz state parameter is an optional parameter like scope and I want to make use of the state for token accesibility.</p>