Content Management API (v2.0)
Use the XM Cloud Content Management API to build a content model that structures and organizes your data. Content types make up the content model while the content items contain the data itself. The API definitions are written in JSON.
name field can be alphanumeric, and can contain periods, underscores, and hyphens, but not spaces or other special characters. It cannot start with an underscore. The dateTime format is ISO 8601. To use this REST API, you must authorize your API requests. To do this, you need the following information:
- The URL of your XM Cloud Content server (for example,
cs-cmapi.sitecorecloud.ioor a custom hostname). - The environment ID (for example,
main).
To use the Try it feature, enter this information on the Environments tab, by hovering your mouse over the variable and then clicking Edit. Tokens are used for API security. You need to generate an OAuth client bearer token and use it to authenticate. A successful authentication request requires the following credential properties: oauth2_client_id, the oauth2_client_secret, or an oauth2_token.
To create an OAuth client bearer token:
In XM Cloud Content, on the menu bar, click Settings.
In the left pane, click Content management API.
On the Content management API page, in the Grant type section, click Client credentials.
Copy the following credentials and paste them into your development tool, and then execute the Generate token method:
- Client ID - The client ID for XM Cloud Content.
- Client secret - The client secret for the XM Cloud Content.
- Audience - The audience for your tenant. This will be in the form
https://api.sitecorecloud.io. - Authority - The authority for your tenant. This is the POST URL, in the form
https://auth.sitecorecloud.io/oauth/token.