less than 1 minute read

AWS API Gateway Semicolon ‘;’ in URL

Unable to use semicolon within the URL

This is a known limitation with the API Gateway[1]. AWS public documentation says:

The semicolon character (;) is not supported for any request URL query string and results in the data being split.

API Gateway will split the input (queryparams/pathparams) on a semicolon. As a workaround, urlencode the semicolon (%3B).

e.g. https://API_INVOKE_URL/v1?q=abcd;20

to

https://API_INVOKE_URL/v1?q=abcd%3B20

References: [1] https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-known-issues.html

All of the information in this post is available in the provided links.