joshua stein

articles | notes | projects | uses | tags | contact

Note

joshua stein @jcs@jcs.org - July 12, 2023 13:38:30

My advice for running a public-facing API, coming from 11 years of operating the Pushover (@pushover) API:

- Host the API on its own hostname
- Don't be too liberal in what you accept
- Avoid OAuth if you can
- Log a unique id with every request
- Be descriptive in your error responses
- Use prefixed tokens
- Stay on top of failures

https://jcs.org/2023/07/12/api

July 12, 2023 13:38:30

0 Forwards

© 2001-2026 joshua stein