Skip to main content
POST
/
content-blocks
/
search
Search Content Blocks
curl --request POST \
  --url https://api-0{dc}.moengage.com/v1/external/campaigns/content-blocks/search \
  --header 'Content-Type: application/json' \
  --header 'MOE-APPKEY: <api-key>' \
  --data '
{
  "filters": {
    "content_type": [
      "TEXT"
    ],
    "team_ids": [
      "0"
    ],
    "tag_ids": [
      "6141c7ec9b4cbd0b57c872e5"
    ],
    "status": [
      "ACTIVE"
    ],
    "updated_by": [
      "geetima@moengage.com"
    ],
    "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": "geetima@moengage.com",
      "created_at": "2022-01-11T14:13:56.063000",
      "updated_by": "geetima@moengage.com",
      "updated_at": "2022-01-11T14:15:31.254000",
      "tag_ids": [
        "6141c7ec9b4cbd0b57c872e5",
        "61409d091202397cc82f8356"
      ],
      "team_ids": [
        "0"
      ]
    }
  ]
}

Authorizations

MOE-APPKEY
string
header
required

Your MoEngage Workspace ID (App Key). You can find this at Settings -> Account -> APIs -> Workspace ID.

Body

application/json

A set of filters to apply to the search.

filters
object

A set of filters to apply to the search. You can send empty filters if you want all the content blocks: { "filters" : {} }

Response

Success

data
object[]