Sqabl APIs
  1. Auth
Sqabl APIs
  • APIs
    • Auth
      • Sign Up
        POST
      • Sign In
        POST
      • Sign Out
        DELETE
      • Refresh Access Token
        POST
      • Get user by token
        GET
      • Change password
        PUT
    • OTP
      • Verify OTP
      • Generate OTP
      • OTP Status
    • User
      • Get user
      • Get user by token
      • Update user
      • Get user's followers
      • Get user's followees
      • Get user's referred members
      • Get user's interacted items
      • Get user's bookmarks
      • Flag a user
      • Follow user
      • Unfollow user
      • Block a user
      • Unblock a user
      • Delete user's picture
      • Delete user
    • Users
      • Get users
    • Arenas
      • Get arenas
      • Create an arena
      • Invite users to arenas
    • Arena
      • Get arena
      • Update arena
      • Join an arena
      • Leave an arena
      • Get arena members
      • Add users to arena
      • Remove members from an arena
      • Update an arena member
    • Posts
      • Get posts
      • Create a post
    • Post
      • Get a post
      • Update a post
      • Delete a post
      • Flag a post
      • Flame a post
      • Unflame a post
      • Save a post
      • Unsave a post
      • Hide a post
      • Get post participants
      • Participate in a post
      • Get post comments
      • Comment on a post
    • Comment
      • Get comment
      • Delete a comment
      • Flag a comment
      • Flame a comment
      • Unflame a comment
      • Save a comment
      • Unsave a comment
    • Alerts
      • Get user's alerts
      • Mark some or all alerts read
    • Flags
      • get flags
    • Faqs
      • get faqs
    • Interests
      • get interests
    • Search
      • get popular search keywords
    • Signed Upload URL
      • get signed url for upload
  1. Auth

Sign Up

Prod Env
https://api.sqabl.com/v1
Prod Env
https://api.sqabl.com/v1
POST
/auth/sign-up
authsign up

Request

Header Params
Authorization
string 
optional
This is required when "authType"="provider".
Example:
Bearer some-access-token
Body Params application/x-www-form-urlencoded
email
string 
required
displayName
string 
optional
This is required if "authType" = "password"
firstName
string 
optional
This is required if "authType" = "password"
lastName
string 
optional
This is required if "authType" = "password"
country
string 
optional
This is required if "authType" = "password"
interests
string 
optional
Must,be,comma,separated,interests
password
string 
optional
If "authType" = "password" (default value), then password is required.
authType
enum<string> 
optional
"password" is the default
Allowed values:
passwordprovider
authProvider
enum<string> 
optional
This is required if "authType" = "provider.
Allowed values:
applefacebookgoogle
referralCode
string 
optional
fcmDeviceToken
string 
optional
For push notification.
userDeviceId
string 
optional
For push notification.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.sqabl.com/v1/auth/sign-up' \
--header 'Authorization: Bearer some-access-token' \
--data-urlencode 'email=' \
--data-urlencode 'displayName=' \
--data-urlencode 'firstName=' \
--data-urlencode 'lastName=' \
--data-urlencode 'country=' \
--data-urlencode 'interests=' \
--data-urlencode 'password=' \
--data-urlencode 'authType=' \
--data-urlencode 'authProvider=' \
--data-urlencode 'referralCode=' \
--data-urlencode 'fcmDeviceToken=' \
--data-urlencode 'userDeviceId='

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "success": true,
    "statusCode": 200,
    "data": {
        "user": {
            "id": "some-user-id",
            "displayName": "Some Name",
            "imageSrc": "https://image.url/",
            "accessToken": "some-access-token",
            "refreshToken": "some-refresh-token"
        }
    }
}
Previous
Auth
Next
Sign In
Built with