Skip to main content
POST
/
auth-signup
Create account
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/auth-signup \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "+2348012345678",
  "first_name": "Ade",
  "last_name": "Johnson",
  "password": "S3cure!Pass"
}
'
{
  "success": true,
  "status": 201,
  "data": {
    "user": {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "phone": "+2348012345678"
    },
    "session": {
      "access_token": "eyJhbGciOiJIUzI1NiJ9...",
      "refresh_token": "eyJhbGciOiJIUzI1NiJ9...",
      "expires_in": 3600,
      "token_type": "bearer"
    }
  }
}

Body

application/json
phone
string
required

Valid Nigerian phone number

Pattern: ^(\+234[0-9]{10}|0[0-9]{10})$
Example:

"+2348012345678"

first_name
string
required
Minimum string length: 1
Example:

"Ade"

last_name
string
required
Minimum string length: 1
Example:

"Johnson"

password
string
required
Required string length: 8 - 72
Example:

"S3cure!Pass"

Response

Account created — session returned

success
boolean
Example:

true

status
integer
Example:

200

data
object