Skip to main content
POST
Get User
  • Access to Get User is gated because the endpoint can return PII. To enable it for your workspace, contact your CSM or raise a ticket with MoEngage Support. The request creates an audit trail of who asked for access. Workspaces already using the API before gating was introduced were enabled automatically.
  • Get User is a single-lookup API, you pass one or more identifiers and get back the matching user profile(s), up to the payload limit below. It does not support a “retrieve all users” mode; there’s no parameter on this endpoint to export your entire user base. If you need to export all users, use a separate bulk/file export flow instead.
  • You can optionally IP-whitelist the callers permitted to invoke this endpoint.

Rate Limit

The rate limit is 20 users per payload and 1000 users per minute.

Authorizations

Authorization
string
header
required

Send your Workspace ID and API key as a base64-encoded username:password string.

  • Username: Your MoEngage Workspace ID (also known as the App ID), from Settings > Account > API keys.
  • Password: An API key generated from Settings > Account > API keys. Click + Create new key, set Authentication type to Basic Auth, select the Data APIs group and its Get User scope. The legacy Data key (auth type Basic Auth (Legacy)) also works.

Refer to API Key Dashboard for details on creating and managing API keys.

Headers

X-Forwarded-For
string

The 'X-Forwarded-For' header is used to specify the IP address of the client that made the request. This header may be added by proxy servers or load balancers. The header value must contain the IP address of the original client that initiated the request. Multiple IP addresses may be specified in the header value, separated by commas.

Example:

"203.0.113.195"

Query Parameters

app_id
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 > API keys.

Example:

"VJ0GSMESHMQA3L7WV1EEK3UR"

Body

application/json
data
object
required

Wrapper object that contains the user identifiers to look up. The API expects identifiers inside this object, not at the root of the JSON body.

Response

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. Supported values are : "success", "failure"

Example:

"success"

type
string

This field denotes the fetch type. Supported values are: "export_users".

Example:

"export_users"

data
object

This field contains the list of users who were not found in MoEngage and returns the data specified for the list of users who were found in MoEngage.

This is the structure: