By using AWS re:Post, you agree to the Terms of Use

Trying to use a single Amazon API Gateway endpoint to accept both HTTP and websocket requests


My understanding is that a websocket connection is negotiated with an upgrade request on top of an HTTP API. Can an Amazon API Gateway websocket endpoint also serve HTTP requests (which don't require the client to upgrade)? I'm trying to use a single vanity URL (such as instead of and

1 Answer
Accepted Answer

It's not possible to combine REST (HTTP) APIs with WebSocket APIs into a single vanity URL. It's also not possible to mix both types of requests using the same custom domain name.

profile picture
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions