Sqabl APIs
  1. Users
Sqabl APIs
  • APIs
    • Auth
      • Sign Up
      • Sign In
      • Sign Out
      • Refresh Access Token
      • Get user by token
      • Change password
    • 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
        GET
    • 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. Users

Get users

Prod Env
https://api.sqabl.com/v1
Prod Env
https://api.sqabl.com/v1
GET
/users

Request

Query Params
email
string 
optional
pageSize
integer 
optional
For pagination; specifies the maximum number of items to fetch.
lastEvaluatedKey
string 
optional
Check the APIs doc on how to use this.
keyword
string 
optional
A search query.
Header Params
Authorization
string 
optional
Viewer's access token, from whom the request is made, to check their relationships with the fetched users.
Example:
Bearer some-viewer-token

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 GET 'https://api.sqabl.com/v1/users?email&pageSize&lastEvaluatedKey&keyword' \
--header 'Authorization: Bearer some-viewer-token'

Responses

🟢200Success
application/json
Body
object {0}
Examples
{
    "success": true,
    "statusCode": 200,
    "pagination": {
        "lastEvaluatedKey": {
            "id": "cm1kirt9x000008l1fo6f2be9",
            "dateCreated": "2024-10-31 09:30:31.912Z"
        }
    },
    "data": [
        {
            "id": "cm1jb6nsf000008jp4poz6y4n",
            "email": "olomolateju@gmail.com",
            "displayName": "tej",
            "firstName": "Tejumade",
            "lastName": "Olomola",
            "country": "Nigeria",
            "verified": true
        },
        {
            "id": "cm1jckkee000008m9abf1f0o4",
            "email": "adedolapolisa@gmail.com",
            "displayName": "Adedolapo Olisa",
            "firstName": "Adedolapo",
            "lastName": "Olisa",
            "imageSrc": "https://lh3.googleusercontent.com/a/ACg8ocJO2n0a0haOvQY9KXTdBNgCLRl2MRLZ-N4naOkb2vT6iWfhSw=s96-c",
            "interests": [
                "Engineering",
                "Athletics",
                "Self-Improvement"
            ],
            "verified": true
        },
        {
            "id": "cm1kirt9x000008l1fo6f2be9",
            "email": "moonred400@gmail.com",
            "displayName": "hashwarmer",
            "firstName": "oluwasanmi",
            "lastName": "Ogunyemi",
            "country": "Nigeria",
            "verified": true
        }
    ]
}
Previous
Users
Next
Arenas
Built with