Help Center/ API Gateway/ User Guide (Kuala Lumpur Region)/ FAQs/ API Publishing/ Can I Access an API Published in a Non-RELEASE Environment?
Updated on 2024-08-07 GMT+08:00

Can I Access an API Published in a Non-RELEASE Environment?

Yes. To access an API published in a non-RELEASE environment, add the x-stage header to the API request.

Example:

r.Header.Add("x-stage", "RELEASE")

You can also refer to examples of section "Quickly Opening and Calling APIs" in the "Getting Started" chapter of the API Gateway User Guide.