See Content Block Information

get

/content_blocks/info

This endpoint will call information for your existing Email Content Blocks.

Request Parameters

Parameter Required Data Type Description
content_block_id Required String The content block identifier.

You can find this by either listing content block information through an API call or going to Developer Console > API Settings, then scrolling to the bottom and searching for your content block API identifier.
include_inclusion_data Optional Boolean When set to true, the API returns back the Message Variation API identifier of campaigns and Canvases where this content block is included, to be used in subsequent calls. The results exclude archived or deleted campaigns or Canvases.

Example Request

1
2
curl --location -g --request GET 'https://rest.iad-01.braze.com/content_blocks/info?content_block_id={{content_block_id}}&include_inclusion_data=No' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Content-Type: application/json
Authorization: Bearer YOUR-API-KEY-HERE
{
  "content_block_id": "string",
  "name": "string",
  "content": "string",
  "description": "string",
  "content_type": "html or text",
  "tags":  "array of strings",
  "created_at": "time-in-iso",
  "last_edited": "time-in-iso",
  "inclusion_count" : "integer",
  "inclusion_data": "array",
  "message": "success",
}

Possible Errors

  • Content Block ID cannot be blank. - A Content Block has not been listed or is not encapsulated in quotes.

  • Content Block ID is invalid for this App Group. - This Content Block does not exist or is in a different company account or app group.

  • Content Block has been deleted - content not available. - This Content Block, though it may have existed earlier, has been deleted.

  • Include Inclusion Data - error - One of true or false is not provided.

WAS THIS PAGE HELPFUL?
New Stuff!