title: How do I get the URL parameters with AWS lambda functions?
body: <p>I am using Netlify functions for an API, most of which is working perfectly fine, apart from when I am needing to access URL parameters</p>
  
  <p>Here is a snippet of what I have to get the parameter:</p>
  
  <pre class="lang-golang prettyprint-override"><code>func Handler(ctx context.Context, request events.APIGatewayProxyRequest) (Response, error) {
  
      id := request.PathParameters["id"]
  
      ...
  }
  
  func main() {
      lambda.Start(Handler)
  }
  </code></pre>
  
  <p>I have other functions that are working correctly that do not require URL params but cannot figure out how to get these ones working, I have tried multiple different selections:</p>
  
  <pre><code>https://example.com/endpoint/1
  https://example.com/endpoint/id=1
  https://example.com/endpoint?id=1
  </code></pre>
  
  <p>None of the above return the id path parameter when hitting the endpoint</p>