Send API

Domains

Environment
Domain

Staging

api-staging.blocto.app

Production

api.blocto.app

Authorization: <JWT>
Content-Type: application/json

APIs

The body params of all POST requests are in JSON format.

Send push notification

POST https://api.blocto.app/notification/send

Send push notification to users by either user IDs or tags.

Request Body

Name
Type
Description

text

string

the message shown on the push notification

url

string

the URL to direct users to

tags

array

user tags to send push notification to

user_ids

array

user IDs to send push notification to

{
  'message_code': ok
}

Tag users by user ID

GET https://api.blocto.app/notification/tag

Set tag to a group of users for future push.

Request Body

Name
Type
Description

tag

string

user tag

user_ids

array

user IDs to set tag

{
  'message_code': ok
}

Last updated