Get Specific Content Blocks
curl --request POST \
--url https://api-{dc}.moengage.com/v1/external/campaigns/content-blocks/get-by-ids \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"ids": [
"634fdf4db9c206ba55b8223b"
],
"is_raw_content_required": true
}
'{
"data": [
{
"id": "634fdf4db9c206ba55b8223ab",
"name": "Contentblocktest2",
"label": "Contentblocktest2",
"description": "",
"content_type": "TEXT",
"content": "aa",
"raw_content": "aa",
"status": "ACTIVE",
"created_by": "[email protected]",
"created_at": "2022-10-19T11:28:13.925000",
"updated_by": "test",
"updated_at": "2022-10-21T08:38:51.419000",
"tag_ids": [
"0"
],
"team_ids": [
"test"
],
"images_used": []
}
]
}{
"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"
}Get Specific Content Blocks
This API retrieves specific content blocks from the available content blocks in your MoEngage account.
POST
/
content-blocks
/
get-by-ids
Get Specific Content Blocks
curl --request POST \
--url https://api-{dc}.moengage.com/v1/external/campaigns/content-blocks/get-by-ids \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"ids": [
"634fdf4db9c206ba55b8223b"
],
"is_raw_content_required": true
}
'{
"data": [
{
"id": "634fdf4db9c206ba55b8223ab",
"name": "Contentblocktest2",
"label": "Contentblocktest2",
"description": "",
"content_type": "TEXT",
"content": "aa",
"raw_content": "aa",
"status": "ACTIVE",
"created_by": "[email protected]",
"created_at": "2022-10-19T11:28:13.925000",
"updated_by": "test",
"updated_at": "2022-10-21T08:38:51.419000",
"tag_ids": [
"0"
],
"team_ids": [
"test"
],
"images_used": []
}
]
}{
"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