Skip to main content
Every request to the Hookdrop API must include a valid access token in the Authorization header:
Keep your tokens secure. Never expose them in client-side code, public repositories, or anywhere they can be read by untrusted parties.

Register a new account

If you don’t have an account yet, create one with POST /api/auth/register.
string
required
Your email address.
string
required
Your account password.
Response
object
string
Short-lived JWT you send with every API request. Expires after 15 minutes.
string
Long-lived token used to obtain a new access token when the current one expires.

Log in to an existing account

Exchange your credentials for tokens using POST /api/auth/login.
string
required
Your account email address.
string
required
Your account password.
Response

Refresh an access token

Access tokens expire after 15 minutes. When yours expires, call POST /api/auth/refresh with your refresh token to get a new one without logging in again.
string
required
The refresh token returned from /auth/login or /auth/register.
Response

Using your token

Include the access token in the Authorization header of every API request:
For example, to list your endpoints: