Skip to main content
GET
Get Subscription Preferences (V5)

Rate Limit

The rate limit is 100 RPM and 360k per day.

Authorizations

Authorization
string
header
required

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

  • Username: Your MoEngage app key.
  • Password: Your MoEngage API secret.

Transitional note: This route currently accepts Basic Auth only. Bearer token support (Authorization: Bearer <token>) is planned but not yet active here — Bearer requests return 401 until the APISIX gateway fronts this route.

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

Headers

Accept
string
Example:

"application/json"

MOE-APPKEY
string
required

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).

MOE-PROJECT-CODE
string

This is the project ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > Portfolio > Project ID. Note: This parameter is mandatory for workspaces with the Portfolio feature enabled.

X-MOE-Request-Id
string

Client-supplied trace ID for tracing. Correlates with response_id. Supply this header or request_id in the body; if both are set, they must match.

Query Parameters

user_identifier_type
enum<string>
required

The type of identifier supplied in user_identifier_value.

Available options:
moe_user_id,
uid,
email
user_identifier_value
string
required

The identifier value. For moe_user_id, accepts either the usr_-prefixed ID or the bare 24-character hex ID.

channel
enum<string>

Optional. Restricts the returned category preferences to a single channel. Only the email channel is supported at present.

Available options:
email

Response

This response is returned when the request is processed successfully.

response_id
string

Unique identifier for this API response.

Example:

"resp_1b2c3d4e5f60708192a3b4c5d6e7f809"

type
string

The resource type returned in data.

Example:

"subscription_preference"

data
object

A user's subscription preferences.