Skip to main content
POST

Recipe

1

1. Use an `event` parameter to set data associated with the event

2

2. Set a notification type

Use a notication_type parameter to set the type of notification.
3

3. Set a push notification environment

Use an environment parameter to set the notification environment.Here, the production environment is set which means the pushes will work for a production environment only.
4

4. Use a `user` parameter to set the ID of push notification recipient.

5

5. Set the ID of push notification recipient

You can specify as many IDs as you need via comma.
6

6. Set a push message

A push message text should be Base64-encoded.Here, the iOS push message is set. For iOS push, you should add a payload before a message.
7

7. Set a push notification platform

Use a push_type parameter to set the push notification platform.Here, the push_type is set to apns. This means that the push will be delivered to iOS devices.
8

8. As a result, the API returns a newly created event.

1

1. Use an `event` parameter to set data associated with the event

2

2. Set a notification type

Use a notication_type parameter to set the type of notification.
3

3. Set a push notification environment

Use an environment parameter to set the notification environment.Here, the production environment is set which means the pushes will work for a production environment only.
4

4. Set an event type

Use an event_type method to set the event type.Here, the period_date event type is set. This event occurs within a given period from the initial date. Valid only if the period is specified.
5

5. Set a date of the event

Use a date parameter to set the date for the event to be sent on.
6

6. Set a period of the event

Use a period parameter to set the period of the event.
7

7. Set an end date of the event

Use an end_date parameter to set the date for the event to end.
8

8. Set a push message

A push message text should be Base64-encoded.Here, the iOS push message is set. For iOS push, you should add a payload before a message.
9

9. Set a push notification platform

Use a push_type parameter to set the push notification platform.Here, the push_type is set to apns. This means that the push will be delivered to iOS devices.
10

10. As a result, the API returns a newly created event.

1

1. Use an `event` parameter to set data associated with the event

2

2. Set a notification type

Use a notication_type parameter to set the type of notification.
3

3. Set a push notification environment

Use an environment parameter to set the notification environment.Here, the production environment is set which means the pushes will work for a production environment only.
4

4. Use a `user` parameter to set user tags.

5

5. Use a `tags` parameter to set user tags

6

6. Set user tags

Specify as many tags as you need via comma.
7

7. Set a push message

A push message text should be Base64-encoded.Here, the iOS push message is set. For iOS push, you should add a payload before a message.
8

8. Set a push notification platform

Use a push_type parameter to set the push notification platform.Here, the push_type is set to apns. This means that the push will be delivered to iOS devices.
9

9. As a result, the API returns a newly created event for users with the specified tags.

Only one of (Optional) parameters is required.

Body Parameters

string
required
Type of notification. Possible values are: push and email.
string
Used only if notification_type=push, otherwise ignored. If not set, the notification will be delivered to all possible devices for specified users. Possible values are: apns, apns_voip, gcm.
string
required
An environment of the notification. Possible values are: development and production.
string
Event type. Possible values are:
  • one_shot - a one-time event caused by an external object (valid only if the date is not specified).
  • fixed_date - a one-time event that occurs at a specified date (valid only if the date is specified).
  • period_date - is a reusable event that occurs within a given period from the initial date (valid only if the period is specified).
    Default:
  • one_shot - if date is not specified.
  • period_date - if period is specified.
  • fixed_date - if date is specified.
string
required
Encoded message payload. Possible values are: Base64 encoded plain text or push notification payload (Push notifications formats).
object
object
date-time
The date of the event to send on. If the event_type=fixed_date, the date can not be in the past.
date-time
The date when the event is completed. Must be not less than the date.
date-time
The period of the event in seconds.
string
The name of the event. Service information. Only for your own usage.

Headers

string
required
A user or application session token. See Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.

Responses

A successful response.
object