Skip to content

How do I get the Invoke URL for an API Gateway Rest API Stage? #4380

Answered by RanVaknin
mfulton26 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mfulton26 ,

If you didn't know, all the AWS SDKs are code-generated from the API model of the various AWS Services. In this case, the APIGATEWAY API Model does not expose a method that returns the invoke URL so the SDK will not have any way of supporting this. In other words, this is a feature that only exists on console as a courtesy.

You can construct the API Gateway endpoint yourself if you know the id and the stage name:
https://{{restApiId}}.execute-api.{{region}}.amazonaws.com/{{stageName}}

Thanks,
Ran~

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@mfulton26
Comment options

Comment options

You must be logged in to vote
2 replies
@mfulton26
Comment options

@RanVaknin
Comment options

Answer selected by RanVaknin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants