Skip to main content
POST
/
api
/
v1
/
customers
/
auto-login
Generate an auto-login token
curl --request POST \
  --url https://dev.namify.host/api/v1/customers/auto-login \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "john.doe@example.com"
}
'
{
  "status": "SUCCESS",
  "email": "john.doe@example.com",
  "token": "214844e15411d2f6e72b274ca199760656218b57e5329243ce23e6ad7c2e1c97",
  "expires_at": "2026-04-24 09:48:34"
}
After generating a token, redirect to the following URL to log in a customer without a password:

https://[your-subdomain].namify.tech/auto-login?token=[token]

Authorizations

Authorization
string
header
required

A personal access token. Obtain one from the dashboard under Settings > API Key. Include it in the Authorization header as Bearer <token>. Unauthenticated requests to protected routes return 401 Unauthorized.

Body

application/json
email
string<email>
required

Email address of the customer to generate a token for. Must match an existing customer account created via POST /api/v1/customers/signup.

Example:

"john.doe@example.com"

Response

Token generated successfully. Use the returned token in the auto-login redirect URL immediately — it expires shortly after issuance.

status
string
Example:

"SUCCESS"

email
string<email>

The customer email address the token was issued for.

Example:

"john.doe@example.com"

token
string

Authentication token to be passed as a query parameter in the auto-login redirect URL. Valid for a short window — redirect the customer immediately.

Example:

"214844e15411d2f6e72b274ca199760656218b57e5329243ce23e6ad7c2e1c97"

expires_at
string

UTC datetime when the token expires, formatted as YYYY-MM-DD HH:MM:SS. The customer must be redirected before this time.

Example:

"2026-04-24 09:48:34"