title: How do I access a route parameter in Azure API Management
body: <h1>Query string parameter</h1>
  <p>I have seen plenty of examples of reading query string parameters.</p>
  <p>For example take the following URI:</p>
  <p><code>/api/Profile?id={accountId}</code></p>
  <p>The <code>accountId</code> can be read in the policy xml using the following syntax:</p>
  <p><code>context.Request.Url.Query[&quot;accountId&quot;]</code></p>
  <h1>Route parameter</h1>
  <p>But what if my URI is structured as:</p>
  <p><code>/api/profiles/{accountId}</code></p>
  <p>How do I read <code>accountId</code> in the policy xml when the parameter is not in the query string?</p>