searchContent

Search your Marketing Cloud content workspace for content items.

GET https://{subdomain}.my.salesforce.com/services/data/v61.0/connect/cms/items/search

subdomain (string)

Required. The unique API subdomain for your Salesforce org.

Authorization (string)

Required. A unique, time-limited token that you can use to issue requests to Connect API. Replace YOUR_ACCESS_TOKEN with your authentication token.

contentSpaceOr​FolderIds (string)

Required. The ID of a managed content space or folder to search within.

queryTerm (string)

Required. The terms to search for in the workspace or folder. You can include up to 50 terms. Separate each term with a space. Search terms must contain at least two characters that aren’t wildcards.

contentTypeFQN (string)

The type of content to restrict the query to. For example, to search only images, specify sfdc_cms__image.

page (integer)

The page number of results to return. Page numbering begins at 0. The default value is 0.

pageSize (integer)

The number of items to return in each page of results. The minimum number is 1 and the maximum is 250. The default page size is 25.

languages (array of string)

A list of languages to include in the search. Specify each language as a language code, such as en, or as a language and locale, such as en_US. You can specify up to 10 languages, separating each with a space. Search returns only exact matches and only languages that the workspace supports. The default value is the default language for the workspace.

scope (string)

The fields that the query applies to. To search only content titles for the query string, specify titleOnly. To search all fields, specify All. The default value is All.

200 OK

This response indicates that the API accepted your request to search content items.

400 Bad Request

This response indicates that your request contained errors that prevented the search from completing. When you receive a 400 response, examine the request syntax for errors. This response can be returned if you specify an invalid contentSpaceOrFolderIds value in the query string.

401 Unauthorized

This response indicates that the API wasn’t able to authorize your request. When you receive a 401 response, verify that your authorization token is still valid.