Auth

Embed
Preview of the card
<a href="https://shippified.net/docs/ref-auth"><img src="https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/pages/bd82b1a8-c686-4d79-8701-e82f461817a3/social-card.svg?v=4bd9898cfc89" alt="Auth" width="600" height="315"></a>
POST https://shippified.net/api/auth/register

Register a new workspace.

Request body

application/json
email
string
required
password
string
required
displayName
string
{
  "email": "string",
  "password": "string",
  "displayName": "string"
}

Code samples

cURL
curl -X POST "https://shippified.net/api/auth/register" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","password":"string","displayName":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Workspace created, session minted.
{
  "token": "string",
  "user": {}
}
400 Invalid email or password.
409 Email already registered.
429 Rate limit exceeded.
POST https://shippified.net/api/auth/login

Log in to an existing workspace.

Request body

application/json
email
string
password
string
{
  "email": "string",
  "password": "string"
}

Code samples

cURL
curl -X POST "https://shippified.net/api/auth/login" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","password":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Session minted.
401 Invalid credentials.
429 Rate limit exceeded.
GET https://shippified.net/api/auth/me

Current user + workspace state.

Code samples

cURL
curl -X GET "https://shippified.net/api/auth/me"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
401 Not authenticated.
DELETE https://shippified.net/api/auth/session

Revoke current session token.

Code samples

cURL
curl -X DELETE "https://shippified.net/api/auth/session"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Revoked.
GET https://shippified.net/api/auth/providers

Which sign-in options this deployment has enabled.

Public. The sign-in page calls this to decide which SSO buttons to show and whether to render a Turnstile challenge.

Code samples

cURL
curl -X GET "https://shippified.net/api/auth/providers"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
{
  "google": true,
  "discord": true,
  "discordSlug": null,
  "discordBot": true,
  "turnstile": true,
  "turnstileSiteKey": null,
  "billingEnabled": true
}
POST https://shippified.net/api/auth/forgot-password

Email a password-reset link.

Public. Always answers { ok: true } for a well-formed request, whether or not an account uses that email, so it can't be used to find out who has an account. When one does (and outbound mail is configured) a link valid for 1 hour is sent. Shares the 10/min per-IP auth rate limit.

Request body

application/json
email
string
required
turnstileToken
string
Required when GET /api/auth/providers reports turnstile: true.
{
  "email": "string",
  "turnstileToken": "string"
}

Code samples

cURL
curl -X POST "https://shippified.net/api/auth/forgot-password" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","turnstileToken":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Accepted.
{
  "ok": true
}
400 Missing email, or the Turnstile check failed.
{
  "error": "string"
}
429 Rate limit exceeded. See Retry-After.
POST https://shippified.net/api/auth/reset-password

Set a new password using the token from the reset email.

Public. On success every existing session for the account is revoked and a fresh session is returned, so the caller is signed in straight away. Shares the 10/min per-IP auth rate limit.

Request body

application/json
token
string
required
The token query parameter from the reset link.
password
string
required
turnstileToken
string
Required when GET /api/auth/providers reports turnstile: true.
{
  "token": "string",
  "password": "string",
  "turnstileToken": "string"
}

Code samples

cURL
curl -X POST "https://shippified.net/api/auth/reset-password" \
  -H "Content-Type: application/json" \
  -d '{"token":"string","password":"string","turnstileToken":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Password changed; new session minted.
{
  "ok": true,
  "token": "string",
  "user": {},
  "state": {}
}
400 Missing token, password under 8 characters, token invalid or expired, or the Turnstile check failed.
{
  "error": "string"
}
429 Rate limit exceeded. See Retry-After.
POST https://shippified.net/api/auth/resend-verify

Resend the email-verification link to the signed-in account.

Issues a new link (valid 24 hours), replacing any earlier one. Mail failures come back in the body with a 200, not as an error status.

Code samples

cURL
curl -X POST "https://shippified.net/api/auth/resend-verify"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 already: true when the email is already verified. Otherwise ok reports whether the mail was handed off, with reason when it wasn't.
{
  "ok": true,
  "already": true,
  "reason": "not_configured"
}
401 Not authenticated.
GET https://shippified.net/api/auth/verify

Confirm an email address (the link in the verification email).

Public browser endpoint. Always answers with a redirect: /home?verify=ok on success, /auth?verify=missing without a token, /auth?verify=invalid for an unknown or expired token.

Parameters

token
string
query
required

Code samples

cURL
curl -X GET "https://shippified.net/api/auth/verify?token=<token>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

302 Redirect to the app; the verify query parameter carries the result.
Updated