Storyden
Auth

Phone Request Code

Start the authentication flow with a phone number. The handler will send a one-time code to the provided phone number which must then be sent to the other phone endpoint to verify the number and validate the account.

Start the authentication flow with a phone number. The handler will send a one-time code to the provided phone number which must then be sent to the other phone endpoint to verify the number and validate the account.

POST/auth/phone
storyden-session<token>

In: cookie

Query Parameters

invitation_id?string

Unique invitation ID.

Formatxid
identifierstring

The desired username to link to the phone number.

phone_numberstring

The phone number to receive the one-time code on.

Response Body

curl -X POST "https://loading/api/auth/phone?invitation_id=cc5lnd2s1s4652adtu50" \  -H "Content-Type: application/json" \  -d '{    "identifier": "southclaws",    "phone_number": "string"  }'
{
  "id": "string"
}
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}