Skip to main content

Get content by key and language

GET /cms/{type}/{language}/{key}
GET /internal/cms/{type}/{language}/{key}
alphahttps://api.sandbox.ovok.com

Get Content by Key and Language

Retrieve a single CMS content entry by its unique key and language.
Returns the full content DTO including title, sections, author, date, and category.

Path Parameters

ParameterDescriptionExample
typeContent type (e.g. article, faq, exercise)article
languageISO language codeen-US
keyUnique content key that links translations across languagesarticle-my-blog-a1b2c3d4

Example cURL request

curl -X GET \
--url 'https://api.dev.ovok.com/cms/article/en-US/article-my-blog-a1b2c3d4' \
-H 'Authorization: Bearer <token>'

Response

Returns a ContentDto object:

{
"id": "composition-id",
"title": "My Blog",
"category": "123",
"section": [
{ "title": "Intro", "text": "Welcome text", "code": ["main-content"] }
],
"language": "en-US",
"key": "article-my-blog-a1b2c3d4",
"type": "article",
"date": "2025-01-15T12:00:00.000Z",
"author": {
"reference": "Practitioner/abc",
"display": "Dr. Smith"
}
}

Notes: Returns 404 Not Found if no content matches the given type, language, and key within the caller's project.

Parameters

NameInTypeRequiredDescription
typepathstringyes
languagepathstringyes
keypathstringyesA key that is used to identify the content between languages.

Responses

CodeDescription
200Success.
400The request could not be operated by the server.
401The resource owner or authorization server denied the request.
404The requested resource could not be found.
422The request could not be validated by the server.
500The server encountered an unexpected condition. Please try again later.

200ContentDto (application/json)

  • id: string
  • title: string (required)
  • author: object (required)
    • reference: string (required)
    • display: string
  • key: string (required) — A random UUID that is used to identify the content, not ID!
  • language: string (required)
  • date: string (required)
  • projectId: string
  • type: string (required)
  • code: string
  • category: string[]
  • section: object[]
    • title: string
    • text: string
    • extension: object
    • code: string[]

Example

{
"id": "123",
"title": "My Blog",
"author": {
"reference": "123",
"display": "John Doe"
},
"date": {},
"project": "123",
"type": "blog",
"category": [
"123",
"456"
],
"section": [
{
"title": "My Blog",
"text": "My Blog Text",
"extension": {
"covert-media": "http://example.com/extensionValue"
}
}
]
}