Quickstart
Make your first authenticated request in a couple of minutes.
1. Get an API key
Create an API key in your USGM dashboard. Use a usgmk_test_… key
against the sandbox while you build; switch to a usgmk_live_… key when you go to production.
Treat the key like a password — anyone with it can act on your mailbox. Never commit it or put it in client-side code. Store it in an environment variable and rotate it if it leaks.
2. Make a request
Every request sends your key as a bearer token. List the mail in your mailbox:
A successful response is a page of mail items:
3. Handle the response
- Page through results with
next_cursor— pass it back as?cursor=until it’snull. See Pagination. - Check for errors — any non-2xx response is a
problem+jsonbody with acodeand arequest_id. See Errors.
Explore the endpoints
Browse the full surface in the API Reference and try calls right in the browser.