Skip to main content
Every PingBack API request must include a valid Bearer token in the Authorization header. You get this token by registering or logging in. PingBack also supports signing in with Google.

Register

Create a new account by sending your email address, full name, and a password. Passwords must be at least 8 characters. POST /api/v1/auth/register
Request body
string
required
Your email address. Must be a valid email format.
string
required
Your display name shown in the PingBack dashboard.
string
required
Must be at least 8 characters.
Response
string
The JWT you’ll include in every subsequent request.
string
Always "bearer".

Log in

If you already have an account, exchange your email and password for a token. POST /api/v1/auth/login
Request body
string
required
The email address you registered with.
string
required
Your account password.
Response

Authenticate requests

Pass your token in the Authorization header on every protected API call:
Never expose your token in client-side JavaScript, public repositories, or log output. Treat it like a password. If you believe a token has been compromised, log out to invalidate it and log in again to get a new one.
Example authenticated request

Verify your token

Call GET /api/v1/auth/me to confirm your token is valid and to retrieve your user profile and workspace context. GET /api/v1/auth/me
Response
string (UUID)
Your unique user identifier.
string
The email address on your account.
string
Your display name.
boolean
Whether your email address has been verified.
boolean
true if you signed in with Google OAuth.
object or null
Your workspace details. null if you haven’t created a workspace yet.
boolean
true once you’ve created a workspace. Use this to gate onboarding UI.
string or null
Your role in the workspace — "owner" or a team member role. null if no workspace exists yet.

Sign in with Google

PingBack supports Google OAuth as an alternative to email and password. Pass the Google ID token from your frontend OAuth flow to: POST /api/v1/auth/google
The response is identical to email login — you receive an access_token to use as a Bearer token.

Error responses

401 example
422 example
If you receive a 401 on a request you expect to succeed, call GET /api/v1/auth/me first to confirm your token is still valid. If that also returns 401, log in again to get a fresh token.