Get content node
3 min
This recipe shows how to retrieve shared metadata for a specific content item using its key. The response contains metadata fields such as content type, container, locales, and timestamps. Use this when you need to inspect an existing content item without retrieving its full version data.
Code Section Title
curl --request GET \
--url https://api.cms.optimizely.com/v1/content/{key} \
--header 'accept: application/json'
Define the request method and endpoint
Use GET to retrieve the content node for a specific content item by providing its unique key in the endpoint.
This corresponds to the following section in the code:
curl --request GET \Set the headers
Add the accept header to specify that the response should be returned in JSON format.
This corresponds to the following section in the code:
--url https://api.cms.optimizely.com/v1/content/{key} \
--header 'accept: application/json'