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.

POST/auth/phone

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.

storyden-session<token>

In: cookie

Query Parameters

invitation_id?string

Unique invitation ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The phone number request payload.

Response Body

application/json

application/json

curl -X POST "https://example.com/auth/phone" \  -H "Content-Type: application/json" \  -d '{    "identifier": "southclaws",    "phone_number": "string"  }'
{
  "id": "string"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "trace_id": "string",
  "metadata": {}
}