Sqabl APIs
  1. Alerts
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
    • 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
        GET
      • Mark some or all alerts read
        POST
    • Flags
      • get flags
    • Faqs
      • get faqs
    • Interests
      • get interests
    • Search
      • get popular search keywords
    • Signed Upload URL
      • get signed url for upload
  1. Alerts

Get user's alerts

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

Request

Query Params
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.
Header Params
Authorization
string 
required
Example:
Bearer some-random-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/alerts?pageSize&lastEvaluatedKey' \
--header 'Authorization: Bearer some-random-token'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "success": true,
    "statusCode": 200,
    "data": [
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-follower",
            "read": true,
            "dateCreated": "2024-10-07 16:26:42.125Z",
            "user": {
                "id": "cm22ydxx6000108mgedm7d313",
                "displayName": "Hiseous Hiseous",
                "imageSrc": "https://image.url/"
            }
        },
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-arena-invite",
            "...": "...",
            "user": {
                "...": "..."
            },
            "invitedAsModerator": true,
            "arena": {
                "id": "cm22ydxx6000108mgedm7d313",
                "name": "Arena Name",
                "coverImageSrc": "https://image.url/",
                "guidelines": "Some arena guidelines"
            }
        },
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-post-flame",
            "...": "...",
            "user": {
                "...": "..."
            },
            "post": {
                "id": "cm22ydxx6000108mgedm7d313",
                "type": "debate",
                "description": "Perceived end knowledge certainly day sweetness why cordially. Ask quick six seven offer see among. Handsome met debating sir dwelling age material."
            }
        },
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-post-participant",
            "...": "...",
            "user": {
                "...": "..."
            },
            "post": {
                "...": "..."
            }
        },
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-post-comment",
            "...": "...",
            "user": {
                "...": "..."
            },
            "post": {
                "...": "..."
            },
            "comment": {
                "id": "cm22ydxx6000108mgedm7d313",
                "argumentType": "oppose",
                "text": "Perceived end knowledge certainly day sweetness why cordially. Ask quick six seven offer see among. Handsome met debating sir dwelling age material."
            }
        },
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-comment-flame",
            "...": "...",
            "user": {
                "...": "..."
            },
            "post": {
                "...": "..."
            },
            "comment": {
                "...": "..."
            }
        },
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-comment-reply",
            "...": "...",
            "user": {
                "...": "..."
            },
            "post": {
                "...": "..."
            },
            "comment": {
                "...": "..."
            },
            "reply": {
                "id": "cm22ydxx6000108mgedm7d313",
                "text": "Perceived end knowledge certainly day sweetness why cordially. Ask quick six seven offer see among. Handsome met debating sir dwelling age material."
            }
        },
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-comment-mention",
            "...": "...",
            "user": {
                "...": "..."
            },
            "post": {
                "...": "..."
            },
            "comment": {
                "...": "..."
            }
        },
        {
            "id": "cm1p9es41000008ii30np3dix",
            "type": "new-reply-mention",
            "...": "...",
            "user": {
                "...": "..."
            },
            "post": {
                "...": "..."
            },
            "comment": {
                "...": "..."
            },
            "reply": {
                "...": "..."
            }
        }
    ]
}
Previous
Alerts
Next
Mark some or all alerts read
Built with