Search Content Blocks
curl --request POST \
--url https://api-{dc}.moengage.com/v1/external/campaigns/content-blocks/search \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"filters": {
"content_type": [
"TEXT"
],
"team_ids": [
"69fb3d7d66ea00bdb35da08e"
],
"tag_ids": [
"6141c7ec9b4cbd0b57c872e5"
],
"status": [
"ACTIVE"
],
"updated_by": [
"[email protected]"
],
"search_text": "BT_non_personaliation"
}
}
'{
"data": [
{
"id": "61dd90a4cdfd67a8d48ef681",
"name": "BT_non_personaliation",
"label": "BT_non_personaliation",
"description": "BT_non_personaliation",
"content_type": "TEXT",
"status": "ACTIVE",
"created_by": "[email protected]",
"created_at": "2022-01-11T14:13:56.063000",
"updated_by": "[email protected]",
"updated_at": "2022-01-11T14:15:31.254000",
"tag_ids": [
"6141c7ec9b4cbd0b57c872e5",
"61409d091202397cc82f8356"
],
"team_ids": [
"0"
]
}
]
}{
"title": "Invalid Field Value",
"description": "app_key - Some of the field values are invalid: app_key : None",
"code": "nGpUNpDQ"
}{
"title": "Internal Server Error",
"description": "An unexpected error occurred on the server.",
"code": "SRV_ERR_123"
}Search Content Blocks
This API searches for the available content blocks in your MoEngage account.
POST
/
content-blocks
/
search
Search Content Blocks
curl --request POST \
--url https://api-{dc}.moengage.com/v1/external/campaigns/content-blocks/search \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"filters": {
"content_type": [
"TEXT"
],
"team_ids": [
"69fb3d7d66ea00bdb35da08e"
],
"tag_ids": [
"6141c7ec9b4cbd0b57c872e5"
],
"status": [
"ACTIVE"
],
"updated_by": [
"[email protected]"
],
"search_text": "BT_non_personaliation"
}
}
'{
"data": [
{
"id": "61dd90a4cdfd67a8d48ef681",
"name": "BT_non_personaliation",
"label": "BT_non_personaliation",
"description": "BT_non_personaliation",
"content_type": "TEXT",
"status": "ACTIVE",
"created_by": "[email protected]",
"created_at": "2022-01-11T14:13:56.063000",
"updated_by": "[email protected]",
"updated_at": "2022-01-11T14:15:31.254000",
"tag_ids": [
"6141c7ec9b4cbd0b57c872e5",
"61409d091202397cc82f8356"
],
"team_ids": [
"0"
]
}
]
}{
"title": "Invalid Field Value",
"description": "app_key - Some of the field values are invalid: app_key : None",
"code": "nGpUNpDQ"
}{
"title": "Internal Server Error",
"description": "An unexpected error occurred on the server.",
"code": "SRV_ERR_123"
}承認
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 Campaign report/Business events/Custom templates/Catalog API/Inform Report tile.
For more information on authentication and getting your credentials, refer here.
ヘッダー
ボディ
application/json
A set of filters to apply to the search.