Rivier/ Reference/ content

One entry by its address

get/cms/by-slug/{type}/{slug}

Before you call

Credential
Authorization: Bearer $KEY
Scope
content:read
Graphql
Query.contentEntryBySlug
Sdk
content.entry.bySlug
Cli
content entry by slug

Parameters

  • typestringrequired
    In the path
  • slugstringrequired
    In the path
  • localestring
    In the query

Responses

  • 200application/json
    Success
    • idstring (uuid)required
    • typestringrequired
    • slugstringrequired
    • localestringrequired
    • statestringrequired
      One of: draft, in_review, approved, scheduled, published, archived.
    • titlestringrequired
    • fieldsobjectrequired
    • versionnumberrequired
    • pendingbooleanrequired
    • publishedAtstring or nullrequired
    • updatedAtstringrequired
  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown