Inbound HTTP
Webhook URLs, and pointing your own domain at an app.
Listening for requests
Most apps never need this. A Discord gateway connection, Slack Socket Mode and Telegram long-polling all reach out from your container — nothing has to reach in.
If your app does need to receive requests, bind the port we give you. There is nothing Spocket-specific about it: PORT is what Express, Fastify, FastAPI and Flask already read by default.
Your free URL
Every app gets https://<name>.spocket.dev the moment it deploys, with HTTPS already set up. Nothing to configure — if your app listens on its port, that address serves it.
It is a real URL you can give someone. Point your own domain at the same app whenever you want; the free one keeps working either way.
The webhook URL
Every app also has a path-based URL, which is the better one to paste into Stripe or GitHub. Ask your agent for it with spocket_urls, or find it under Networking on the bot page.
- Paths pass straight through: /hooks/<slug>/webhook reaches /webhook on your bot.
- Every method works — GET, POST, PUT, PATCH, DELETE.
- The URL survives restarts, redeploys and moves between machines, so it is safe to paste into Stripe or GitHub.
- A request waits up to 25 seconds. Anything slower should return immediately and do the work in the background.
Custom domains
An app that serves HTTP can answer on your own domain instead. The flow is the one you already know from Netlify or Vercel: add the domain, create two DNS records, verify.
- 01Add the domainFrom the Networking tab, or ask your agent to add it. You get back the exact records to create.
- 02Create the DNS recordsAt whoever hosts your DNS — your registrar, Cloudflare, wherever the domain currently points. One record routes traffic, the other proves you own the domain.
- 03VerifyPress Verify, or ask your agent. If it fails immediately that is usually propagation rather than a mistake; wait a few minutes and try again.
Once verified, your paths reach your app unchanged and visitors only ever see your own domain.