Skip to main content
POST
/
api
/
v1
/
auth
/
register
/
set-password
Register (magic link) - set password
curl --request POST \
  --url https://api.flowxi.app/api/v1/auth/register/set-password \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "bngzmiyvdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbew",
  "email": "[email protected]",
  "password": "Str0ngP@ssw0rd!",
  "password_confirmation": "Str0ngP@ssw0rd!"
}
'
{
  "code": "TOKEN_ISSUED",
  "message": "Token issued.",
  "access_token": "125|XXXXXXXXXXXXXXXXXXXXXXXX",
  "token_type": "Bearer",
  "user_id": 123,
  "account_status": "active"
}

Body

application/json
token
string
required

Magic link token (sha256 hex => 64 chars).

Example:

"bngzmiyvdljnikhwaykcmyuwpwlvqwrsitcpscqldzsnrwtujwvlxjklqppwqbew"

email
string<email>
required
password
string
required
Example:

"Str0ngP@ssw0rd!"

password_confirmation
string
required
Example:

"Str0ngP@ssw0rd!"

Response

Account activated + token issued.

code
string
required
Example:

"OK"

message
string
required
Example:

"OK"

access_token
string
required

Bearer token (plain text). Shown only once.

Example:

"125|XXXXXXXXXXXXXXXXXXXXXXXX"

token_type
string
required
Example:

"Bearer"

user_id
integer
required
Example:

123

account_status
string
required
Example:

"active"