Skip to main content
POST
Device Opt-out

Rate Limit

The rate limit is 1000 API requests per minute.

承認

Authorization
string
header
必須

Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.

  • Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
  • Password: Use your API Key, which you can find within the Data tile.

Note: After you generate and save the Data API Key, DO NOT generate a new key unless there is a security breach. After you generate a different Data API key and save it, the authentication will start failing. You must update your existing data tracking.

For more information on authentication and getting your credentials, refer here.

Data APIs also support OAuth 2.0. For more information, refer to OAuth 2.0.

クエリパラメータ

app_id
string
必須

This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).

ボディ

application/json
user_identifier_type
string
必須

This field denotes the type of user identifier.

user_identifier_value
string
必須

This field denotes the user identifier.

action_type
enum<string>
必須

This field denotes the type of action to be achieved using this API.

利用可能なオプション:
block,
unblock
reason
string

This field denotes the reason for blocking or unblocking a device.

client_reference_id
string

This field denotes the reference ID of the user.

device_identifiers
object[]

This field denotes the device identifiers associated with the device you intend to block or unblock. Supported values are:

  • unique_id (unique_id)
  • device_unique_id (device_id)
  • push_id (push_id)
  • moe_gaid (GAID)

Note:

  • If you do not pass this value, the API blocks/unblocks all current devices of the user.
  • Ensure to pass any one of the device identifiers for a particular device.
  • When passing the device identifiers within the array, ensure to explicitly define each of them.

レスポンス

This response is returned when the request is processed successfully.

status
string

This field contains the status of the request and specifies whether the request was successful.

例:

"success"

message
string
例:

"Your request has been accepted and will be processed soon."