Sprintfy provides a complete authentication system out of the box. All authentication APIs are production-ready and secured by default.
Authentication supports multiple registration and login methods, including email, phone number, username, and social media providers.
Important: Every authentication API requires a unique project identifier to be passed in the request headers.
{
"spfhash": "YOUR_API_HASH"
}
The spfhash value is unique per API and can be found in the API
documentation inside the CMS.
This API allows users to register using their email address and password.
{
"first_name": "required",
"last_name": "required",
"email": "required",
"phone": "optional",
"phone_prefix": "optional (example: +1, +971)",
"place_slug": "optional (example: united-states)",
"password": "required",
"password_confirmation": "required"
}
This API allows users to register using their phone number and password.
{
"first_name": "required",
"last_name": "required",
"email": "optional",
"phone": "required",
"phone_prefix": "required (example: +1, +971)",
"place_slug": "optional (example: united-states)",
"password": "required",
"password_confirmation": "required"
}
This API allows users to register using a unique username and password.
{
"first_name": "required",
"last_name": "required",
"email": "optional",
"phone": "optional",
"phone_prefix": "optional",
"place_slug": "optional (example: united-states)",
"username": "required (no spaces or special characters)",
"password": "required",
"password_confirmation": "required"
}
This API allows users to register using a supported social media provider.
{
"first_name": "required",
"last_name": "required",
"email": "required",
"phone": "optional",
"phone_prefix": "optional",
"place_slug": "optional (example: united-states)",
"social_media_provider": {
"provider_slug": "required (google, facebook, apple)",
"provider_user_id": "required",
"provider_token": "optional"
}
}