---
title: "Generate Daily Prayer"
method: POST
path: "/api/daily-prayer"
tags: ["prayers"]
---

# Generate Daily Prayer

`POST /api/daily-prayer`

Generate a daily prayer (text only).

This endpoint creates a personalized prayer (approximately 1 minute long) that ends with "Amen".
Audio is fetched separately via the /daily-prayer/audio endpoint to improve response time.

When `for_names` is supplied the prayer is intercessory — written for those
people rather than for the user — and bypasses the daily prayer cache so it
neither replays nor overwrites the user's own daily prayer.

Args:
    request: Prayer request (sendAudio flag is ignored)
    current_user: Authenticated user
    
Returns:
    PrayerResponse containing prayer_text only (audio_base64 will be None)

## Headers

- `x-user-id` string, nullable

## Request body

- PrayerRequest
  - `sendAudio` boolean
  - `topic` string, nullable
  - `for_names` string[], nullable

## Response `200`

Successful Response

- PrayerResponse
  - `prayer_text` string, required
  - `audio_base64` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usecreed/apis/creed-api.md) · [All operations](https://skmtc.net/usecreed/apis/creed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usecreed/creed-api/versions/523833f9e819/schema)
