Skip to main content
POST
/
v2
Get content by IDs, or handles
curl --request POST \
  --url https://delivery.enterspeed.com/v2 \
  --header 'Content-Length: <content-length>' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "ids": [
    "gid://Environment/290a1654-e380-487e-8ea0-8f9f2fff589c/Source/01gh7ed9-6912-485b-9595-cd1e0c4ce89c/Entity/1234/View/content"
  ],
  "handles": [
    "content-1234"
  ]
}
'
{
  "meta": {
    "status": 200
  },
  "views": {
    "gid://Environment/290a1654-e380-487e-8ea0-8f9f2fff589c/Source/01gh7ed9-6912-485b-9595-cd1e0c4ce89c/Entity/1234/View/content": {
      "title": "How to increase performance",
      "image": "/media-path/performance.jpg",
      "url": "/blog/how-to-increase-performance/"
    },
    "content-1234": {
      "title": "How to increase performance",
      "image": "/media-path/performance.jpg",
      "url": "/blog/how-to-increase-performance/"
    }
  }
}

Headers

X-Api-Key
string
required

Api key to validate your environment.

Example:

"environment-1637c4d0-e878-4738-b866-152106a4f88c"

Content-Length
number
required

The length of the message body, in bytes (this header is automatically added by most clients).

Note: The endpoint does not support Transfer-Encoding: chunked. JsonContent and PostAsJsonAsync in .NET will by default set the Transfer-Encoding: chunked header. Use types like e.g. StringContent or ByteArrayContent instead.

Query Parameters

includeDuplicateViews
boolean
default:false

By default, each view is returned only once. However, if you set includeDuplicateViews to true, the view will be returned for each matching requested handle

Body

application/json

The ids or handles of the views to load

Both ids and handles are optional, but the request must contain at least one id or one handle.

Response

Valid request.

meta
object
views
object
Example:
{
"gid://Environment/290a1654-e380-487e-8ea0-8f9f2fff589c/Source/01gh7ed9-6912-485b-9595-cd1e0c4ce89c/Entity/1234/View/content": {
"title": "How to increase performance",
"image": "/media-path/performance.jpg",
"url": "/blog/how-to-increase-performance/"
},
"content-1234": {
"title": "How to increase performance",
"image": "/media-path/performance.jpg",
"url": "/blog/how-to-increase-performance/"
}
}