latestOpenAPI 3.0.02026-08-203145159.1 KB

0e40a805593b

audio experiences

Get a bedtime story by id

Returns a single bedtime story by its id, including its playable audio, duration, imagery, captions where available, and tags. Returns 404 when no bedtime story exists for the id and 422 when the id is not a UUID.

get/v1/bedtime-stories/{id}

Path parameters

idstring uuid required

Bedtime story id

Query parameters

localestring

Locale, forwarded as the thrive-locale header

Response

The bedtime story

Example response

{
  "data": {
    "name": "The Sleepy Lighthouse",
    "tags": [
      {
        "slug": "sleep",
        "name": "Sleep"
      }
    ],
    "conditions": [
      {
        "slug": "sleep",
        "name": "Sleep"
      }
    ],
    "coreHealthBehaviors": [
      {
        "slug": "sleep",
        "name": "Sleep"
      }
    ],
    "durationInSeconds": 1200,
    "media": [
      {
        "contentType": "audio/mpeg"
      }
    ],
    "assets": [
      {
        "contentType": "image/jpeg"
      }
    ]
  }
}