{"openapi":"3.0.0","info":{"title":"My Bible Log API","version":"1.0.0","description":"API documentation for the My Bible Log application. Passages can be sent as USFM references (`JHN.3.16-18`) in place of integer verse IDs, and responses include both. [Guide for scripts and AI agents](/about/how-to--use-an-ai-agent-with-my-bible-log).","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"contact":{"name":"My Bible Log Support"}},"servers":[{"url":"/api","description":"API Server"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT bearer token, valid for 30 days. `POST /auth/login` returns it as `data.token` (omitted for requests that send `X-Platform: web`, which get a cookie instead)."}},"schemas":{"ApiErrorDetail":{"type":"object","required":["code"],"properties":{"field":{"type":"string","nullable":true,"description":"Field name for field-level errors, or null for top-level errors"},"code":{"type":"string","description":"Machine-readable i18n-friendly error code"},"properties":{"type":"object","additionalProperties":true,"description":"Optional metadata for the error"}}},"ApiError":{"type":"object","required":["code"],"properties":{"code":{"type":"string","description":"Top-level error code","enum":["validation_error","invalid_request","unauthenticated","unauthorized","not_found","too_many_requests","internal_server_error"]},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ApiErrorDetail"},"description":"Optional array of field errors"}}},"ApiErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ApiError"}}},"User":{"type":"object","properties":{"hasLocalAccount":{"type":"boolean"},"email":{"type":"string"},"isAdmin":{"type":"boolean"}},"required":["hasLocalAccount","email","isAdmin"],"additionalProperties":false},"UserSettings":{"type":"object","properties":{"dailyVerseCountGoal":{"type":"number","minimum":1,"maximum":1111,"description":"Number of verses the user aims to read each day (1–1111)"},"lookBackDate":{"type":"string","description":"YYYY-MM-DD date from which reading progress is counted"},"preferredBibleVersion":{"type":"string","description":"Bible translation used for reading links: one of AMP, KJV, NKJV, NIV, ESV, NASB1995, NASB2020, NABRE, NLT, TPT, MSG, CSB, NET, NRSV, ASV, WEB, GNT, RVR1960, RVR2020, NVI, NTV, LBLA, UKR, TURK, BDS, LSG, S21, NEG1979, ARC, NVIPT, ARA, LUT, ELB, HFA, KLB, KRV, NKRV"},"startPage":{"type":"string","description":"Page shown after sign-in: one of start, today, books, checklist, calendar, notes"},"passageNoteTagSortOrder":{"type":"string","description":"How tags are sorted: one of label:ascending, createdAt:descending, createdAt:ascending, noteCount:descending, noteCount:ascending, color:hue"},"locale":{"type":"string","description":"UI locale code: one of en, de, es, fr, ko, pt, uk"},"includeDeuterocanonical":{"type":"boolean","description":"Whether deuterocanonical books are included in the reader's canon"}},"required":["dailyVerseCountGoal","lookBackDate","preferredBibleVersion","startPage","passageNoteTagSortOrder","locale","includeDeuterocanonical"],"additionalProperties":false},"Feedback":{"type":"object","properties":{"_id":{"type":"string"},"ip":{"type":"string"},"owner":{"type":["string","null"]},"email":{"type":"string"},"kind":{"type":"string"},"message":{"type":"string"},"status":{"type":"string","enum":["open","resolved","archived"]},"createdAt":{"type":"string","description":"ISO 8601 timestamp"},"updatedAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["_id","ip","owner","email","kind","message","status","createdAt","updatedAt"],"additionalProperties":false},"LogEntry":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string"},"startVerseId":{"type":"integer"},"endVerseId":{"type":"integer"},"passage":{"description":"The same range as a USFM reference, e.g. \"JHN.3.16-18\"; null if the stored range is not a valid passage","type":["string","null"]}},"required":["id","date","startVerseId","endVerseId","passage"],"additionalProperties":false},"PassageNote":{"type":"object","properties":{"id":{"type":"string"},"content":{"type":"string"},"passages":{"type":"array","items":{"type":"object","properties":{"startVerseId":{"type":"number","description":"The ID of the starting verse"},"endVerseId":{"type":"number","description":"The ID of the ending verse"},"passage":{"description":"The same range as a USFM reference, e.g. \"JHN.3.16-18\"; null if the stored range is not a valid passage","type":["string","null"]}},"required":["startVerseId","endVerseId","passage"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"string"},"description":"IDs of the tags associated with this note"}},"required":["id","content","passages","tags"],"additionalProperties":false},"PassageNoteSearchResult":{"type":"object","properties":{"id":{"type":"string"},"content":{"type":"string"},"passages":{"type":"array","items":{"type":"object","properties":{"startVerseId":{"type":"number","description":"The ID of the starting verse"},"endVerseId":{"type":"number","description":"The ID of the ending verse"},"passage":{"description":"The same range as a USFM reference, e.g. \"JHN.3.16-18\"; null if the stored range is not a valid passage","type":["string","null"]}},"required":["startVerseId","endVerseId","passage"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"string"},"description":"IDs of the tags associated with this note"},"createdAt":{"type":"string","description":"ISO 8601 timestamp"},"updatedAt":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","content","passages","tags","createdAt","updatedAt"],"additionalProperties":false},"PassageNoteTag":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"color":{"type":"string","description":"Hex color code"},"description":{"type":"string"},"noteCount":{"type":"number","description":"The number of notes using this tag"}},"required":["id","label","color","noteCount"],"additionalProperties":false},"DailyReminder":{"type":"object","properties":{"id":{"type":"string"},"hour":{"type":"integer"},"minute":{"type":"integer"},"timezoneOffset":{"type":"integer"},"active":{"type":"boolean"}},"required":["id","hour","minute","timezoneOffset","active"],"additionalProperties":false}}},"security":[{"bearerAuth":[]}],"tags":[{"name":"Authentication","description":"Endpoints for user authentication, registration, and account management"},{"name":"LogEntries","description":"Endpoints for managing Bible reading log entries (requires authentication)"},{"name":"PassageNotes","description":"Endpoints for managing passage notes (requires authentication)"},{"name":"PassageNoteTags","description":"Endpoints for managing passage note tags (requires authentication)"},{"name":"Settings","description":"Endpoints for managing user settings (requires authentication)"},{"name":"Reminders","description":"Endpoints for managing daily reminders (requires authentication)"},{"name":"Feedback","description":"Endpoints for submitting feedback (authentication optional)"},{"name":"Admin","description":"Admin-only endpoints (requires authentication with admin privileges)"},{"name":"Sitemap","description":"Public endpoints for sitemap generation"}],"paths":{"/auth/user":{"get":{"summary":"Get the currently logged-in user","tags":["Authentication"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The current user (the `user` field is null when not authenticated)","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"}},"required":["user"],"additionalProperties":false}}}}}}}}},"/auth/login":{"post":{"summary":"Login with email and password","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Account email address"},"password":{"type":"string","description":"Account password"}},"required":["email","password"],"description":"Email/password credentials."}}}},"responses":{"200":{"description":"Login successful","headers":{"Set-Cookie":{"description":"Authentication cookie containing the JWT (`auth_token`; HttpOnly, Secure in production).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"token":{"type":"string"},"user":{"$ref":"#/components/schemas/User"}},"required":["user"],"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/logout":{"post":{"summary":"Logout the current user","tags":["Authentication"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"User logged out successfully","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"boolean"}}}}}}}}},"/auth/logout-all":{"post":{"summary":"Log out all other sessions for the current user","tags":["Authentication"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"All other sessions revoked; the current device stays signed in","headers":{"Set-Cookie":{"description":"Authentication cookie containing the JWT (`auth_token`; HttpOnly, Secure in production).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}}}}}}},"/auth/register":{"post":{"summary":"Register a new user account","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address for the new account (stored lowercased)"},"password":{"type":"string","minLength":8,"maxLength":72,"description":"Password: 8–72 bytes (bcrypt reads only the first 72)"}},"required":["email","password"],"description":"A new local account. A verification email is sent when email verification is required."}}}},"responses":{"200":{"description":"Registration successful","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/oauth2/google/url":{"get":{"summary":"Get Google OAuth2 URL","tags":["Authentication"],"security":[],"responses":{"200":{"description":"Google OAuth2 redirect URL and CSRF state","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"url":{"type":"string"},"state":{"type":"string"}},"required":["url","state"],"additionalProperties":false}}}}}}}}},"/auth/oauth2/google/verify":{"post":{"summary":"Verify Google OAuth2 code","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Authorization code returned by Google's OAuth2 redirect"},"state":{"type":"string","description":"The `state` value returned by the OAuth2 redirect, checked against the one issued"},"locale":{"type":"string","description":"UI locale code applied to a newly created account"}},"required":["code","state"],"description":"Completes the Google OAuth2 authorization-code flow (web)."}}}},"responses":{"200":{"description":"Google OAuth2 verification successful","headers":{"Set-Cookie":{"description":"Authentication cookie containing the JWT (`auth_token`; HttpOnly, Secure in production).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"token":{"type":"string"}},"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/oauth2/google/id-token":{"post":{"summary":"Login with a Google ID token (mobile-friendly)","tags":["Authentication"],"description":"Accepts a Google `id_token` from a native/mobile Google sign-in flow and exchanges it for a MyBibleLog session. Recommended for mobile apps (no redirect/callback handling needed).","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idToken":{"type":"string","description":"Google ID token obtained by the native sign-in SDK"},"locale":{"type":"string","description":"UI locale code applied to a newly created account"}},"required":["idToken"],"description":"Signs in with a Google ID token (mobile)."}}}},"responses":{"200":{"description":"Google login successful","headers":{"Set-Cookie":{"description":"Authentication cookie containing the JWT (`auth_token`; HttpOnly, Secure in production).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"token":{"type":"string"},"user":{"$ref":"#/components/schemas/User"}},"required":["user"],"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/verify-email":{"post":{"summary":"Verify email via code","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address being verified"},"code":{"type":"string","description":"Verification code from the verification email"}},"required":["email","code"],"description":"Verifies an account's email address and signs the user in."}}}},"responses":{"200":{"description":"Email verified successfully","headers":{"Set-Cookie":{"description":"Authentication cookie containing the JWT (`auth_token`; HttpOnly, Secure in production).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"token":{"type":"string"}},"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/verify-email/resend":{"post":{"summary":"Resend verification email (with cooldown)","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the unverified account"},"locale":{"type":"string","description":"Locale code for the email's language"}},"required":["email"],"description":"Requests a new verification email. Always responds with success so it does not reveal which emails have accounts."}}}},"responses":{"200":{"description":"Whether the resend was queued, plus cooldown seconds","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"},"secondsUntilCanRetry":{"type":"number"}},"required":["success","secondsUntilCanRetry"],"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/password":{"patch":{"summary":"Change user password","tags":["Authentication"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currentPassword":{"type":"string","minLength":1,"description":"The account's current password"},"newPassword":{"type":"string","minLength":8,"maxLength":72,"description":"The new password: 8–72 bytes"}},"required":["currentPassword","newPassword"],"description":"Changes the password of the authenticated account and re-issues the session."}}}},"responses":{"200":{"description":"Password changed successfully","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/password/set":{"post":{"summary":"Set a password for a Google-only account","tags":["Authentication"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":8,"maxLength":72,"description":"The new password: 8–72 bytes"},"confirmPassword":{"type":"string","minLength":8,"maxLength":72,"description":"Must match `password`"}},"required":["password","confirmPassword"],"description":"Sets a first password on an account that only signs in with Google."}}}},"responses":{"200":{"description":"Password set successfully","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/password/reset":{"post":{"summary":"Initiate password reset process","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the account to reset"}},"required":["email"],"description":"Requests a password reset email. Always responds with success so it does not reveal which emails have accounts."}}}},"responses":{"200":{"description":"Always succeeds, whether or not an account exists (prevents enumeration)","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}}}}}}},"/auth/password/reset/validate":{"post":{"summary":"Check if a password reset code is valid for an email","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the account being reset"},"code":{"type":"string","description":"Reset code to check"}},"required":["email","code"],"description":"Checks a password reset code without using it up."}}}},"responses":{"200":{"description":"Whether the password reset code is valid","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"valid":{"type":"boolean"}},"required":["valid"],"additionalProperties":false}}}}}}}}},"/auth/password/reset/complete":{"post":{"summary":"Reset password using an email and reset code","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Email address of the account being reset"},"code":{"type":"string","description":"Reset code from the password reset email"},"newPassword":{"type":"string","minLength":8,"maxLength":72,"description":"The new password: 8–72 bytes"}},"required":["email","code","newPassword"],"description":"Completes a password reset with the emailed code."}}}},"responses":{"200":{"description":"Password reset successful","headers":{"Set-Cookie":{"description":"Authentication cookie containing the JWT (`auth_token`; HttpOnly, Secure in production).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"token":{"type":"string"}},"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/auth/change-email":{"post":{"summary":"Initiate email change process","tags":["Authentication"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"newEmail":{"type":"string","description":"The address to change to; a confirmation code is sent there"},"password":{"type":"string","description":"The account's current password"}},"required":["newEmail","password"],"description":"Starts changing the authenticated account's email address."}}}},"responses":{"200":{"description":"Email change process initiated","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"get":{"summary":"Check for an in-progress email change","tags":["Authentication"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Pending email change (fields are null when none is pending)","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"newEmail":{"type":"string"},"expires":{"type":"string"}},"required":["newEmail","expires"],"additionalProperties":false}}}}}}}},"delete":{"summary":"Cancel email change process","tags":["Authentication"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"True if a pending change was cancelled, false otherwise","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"boolean"}}}}}}}}},"/auth/change-email/complete":{"post":{"summary":"Complete email change process using email and verification code","tags":["Authentication"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"The account's current email address"},"code":{"type":"string","description":"Confirmation code sent to the new address"}},"required":["email","code"],"description":"Completes an email change with the code sent to the new address."}}}},"responses":{"200":{"description":"Email change completed","headers":{"Set-Cookie":{"description":"Authentication cookie containing the JWT (`auth_token`; HttpOnly, Secure in production).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"token":{"type":"string"}},"additionalProperties":false}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/log-entries":{"get":{"summary":"Get all log entries for the current user","tags":["LogEntries"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"startDate","in":"query","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of log entries","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LogEntry"}}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"summary":"Create a new log entry","tags":["LogEntries"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD date the passage was read"},"startVerseId":{"type":"integer","description":"Integer ID of the first verse: 100000000 + book × 1000000 + chapter × 1000 + verse (Genesis 1:1 = 101001001)"},"endVerseId":{"type":"integer","description":"Integer ID of the last verse, in the same book as `startVerseId`"},"passage":{"description":"USFM passage reference within one book, e.g. \"JHN.3.16-18\", \"GEN.1.1-2.3\", \"PSA.23\", \"GEN.1-3\", or \"GEN\". The range end may repeat the book (\"GEN.1.1-GEN.2.3\"). The 66 books from Genesis to Revelation follow NASB versification: Malachi has 4 chapters, 3 John has 14 verses, and Psalm titles are not numbered verses. Deuterocanonical books follow KJV-1611 Apocrypha versification, with Baruch 6 as the Letter of Jeremiah. The Greek additions to Esther and Daniel are separate books (ESG, S3Y, SUS, BEL), so EST and DAN keep their Hebrew-text verse counts. Null is treated as absent.","type":["string","null"]}},"required":["date"],"description":"A passage the user read. Provide either `passage` (a USFM reference) or both `startVerseId` and `endVerseId`. If both forms are sent, they must describe the same range, or the request fails with `passage_conflict`."}}}},"responses":{"200":{"description":"The created log entry","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/LogEntry"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/log-entries/{id}":{"get":{"summary":"Get a specific log entry by ID","tags":["LogEntries"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The log entry","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/LogEntry"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"summary":"Update a log entry","tags":["LogEntries"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","description":"YYYY-MM-DD date the passage was read"},"startVerseId":{"type":"integer","description":"Integer ID of the first verse: 100000000 + book × 1000000 + chapter × 1000 + verse (Genesis 1:1 = 101001001)"},"endVerseId":{"type":"integer","description":"Integer ID of the last verse, in the same book as `startVerseId`"},"passage":{"description":"USFM passage reference within one book, e.g. \"JHN.3.16-18\", \"GEN.1.1-2.3\", \"PSA.23\", \"GEN.1-3\", or \"GEN\". The range end may repeat the book (\"GEN.1.1-GEN.2.3\"). The 66 books from Genesis to Revelation follow NASB versification: Malachi has 4 chapters, 3 John has 14 verses, and Psalm titles are not numbered verses. Deuterocanonical books follow KJV-1611 Apocrypha versification, with Baruch 6 as the Letter of Jeremiah. The Greek additions to Esther and Daniel are separate books (ESG, S3Y, SUS, BEL), so EST and DAN keep their Hebrew-text verse counts. Null is treated as absent.","type":["string","null"]}},"description":"All fields are optional. Provide either `passage` (a USFM reference) or both `startVerseId` and `endVerseId`. If both forms are sent, they must describe the same range, or the request fails with `passage_conflict`."}}}},"responses":{"200":{"description":"The updated log entry","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/LogEntry"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"summary":"Delete a log entry","tags":["LogEntries"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Number of deleted entries (1)","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"number"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/passage-notes":{"get":{"summary":"Get passage notes for the current user","tags":["PassageNotes"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"description":"Max notes to return (1–50, default 10)","type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"description":"Notes to skip (default 0)","type":"integer"}},{"name":"sortOn","in":"query","required":false,"schema":{"description":"Field to sort on (default createdAt; `passage` orders by the earliest passage matching the passage filter)","type":"string","enum":["createdAt","passage"]}},{"name":"sortDirection","in":"query","required":false,"schema":{"description":"Sort direction (default descending)","type":"string","enum":["ascending","descending"]}},{"name":"filterTags","in":"query","required":false,"schema":{"description":"Tag IDs to filter by","type":"array","items":{"type":"string"}}},{"name":"filterTagMatching","in":"query","required":false,"schema":{"description":"How to match tags (default any)","type":"string","enum":["any","all","exact"]}},{"name":"searchText","in":"query","required":false,"schema":{"description":"Text to search for in notes","type":"string"}},{"name":"filterPassage","in":"query","required":false,"schema":{"description":"Passage to filter by. USFM passage reference within one book, e.g. \"JHN.3.16-18\", \"GEN.1.1-2.3\", \"PSA.23\", \"GEN.1-3\", or \"GEN\". The range end may repeat the book (\"GEN.1.1-GEN.2.3\"). The 66 books from Genesis to Revelation follow NASB versification: Malachi has 4 chapters, 3 John has 14 verses, and Psalm titles are not numbered verses. Deuterocanonical books follow KJV-1611 Apocrypha versification, with Baruch 6 as the Letter of Jeremiah. The Greek additions to Esther and Daniel are separate books (ESG, S3Y, SUS, BEL), so EST and DAN keep their Hebrew-text verse counts. An invalid reference is a 400 (not_valid), as is one that names a different range than a valid verse ID pair sent with it (passage_conflict).","type":"string"}},{"name":"filterPassageStartVerseId","in":"query","required":false,"schema":{"description":"Start verse ID for passage filtering; an invalid pair is ignored","type":"integer"}},{"name":"filterPassageEndVerseId","in":"query","required":false,"schema":{"description":"End verse ID for passage filtering; an invalid pair is ignored","type":"integer"}},{"name":"filterPassageMatching","in":"query","required":false,"schema":{"description":"How to match passages (default inclusive)","type":"string","enum":["inclusive","exclusive"]}}],"responses":{"200":{"description":"List of passage notes","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PassageNoteSearchResult"}}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"summary":"Create a new passage note","tags":["PassageNotes"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","maxLength":3000,"description":"Note text, up to 3000 characters"},"passages":{"type":"array","items":{"anyOf":[{"type":"string","description":"USFM passage reference within one book, e.g. \"JHN.3.16-18\", \"GEN.1.1-2.3\", \"PSA.23\", \"GEN.1-3\", or \"GEN\". The range end may repeat the book (\"GEN.1.1-GEN.2.3\"). The 66 books from Genesis to Revelation follow NASB versification: Malachi has 4 chapters, 3 John has 14 verses, and Psalm titles are not numbered verses. Deuterocanonical books follow KJV-1611 Apocrypha versification, with Baruch 6 as the Letter of Jeremiah. The Greek additions to Esther and Daniel are separate books (ESG, S3Y, SUS, BEL), so EST and DAN keep their Hebrew-text verse counts."},{"type":"object","properties":{"startVerseId":{"type":"integer","description":"Integer ID of the first verse: 100000000 + book × 1000000 + chapter × 1000 + verse (Genesis 1:1 = 101001001)"},"endVerseId":{"type":"integer","description":"Integer ID of the last verse, in the same book as `startVerseId`"},"passage":{"description":"USFM passage reference within one book, e.g. \"JHN.3.16-18\", \"GEN.1.1-2.3\", \"PSA.23\", \"GEN.1-3\", or \"GEN\". The range end may repeat the book (\"GEN.1.1-GEN.2.3\"). The 66 books from Genesis to Revelation follow NASB versification: Malachi has 4 chapters, 3 John has 14 verses, and Psalm titles are not numbered verses. Deuterocanonical books follow KJV-1611 Apocrypha versification, with Baruch 6 as the Letter of Jeremiah. The Greek additions to Esther and Daniel are separate books (ESG, S3Y, SUS, BEL), so EST and DAN keep their Hebrew-text verse counts. Null is treated as absent.","type":["string","null"]}},"description":"Provide either `passage` (a USFM reference) or both `startVerseId` and `endVerseId`. If both forms are sent, they must describe the same range, or the request fails with `passage_conflict`."}]},"description":"Passages the note is about"},"tags":{"type":"array","items":{"type":"string"},"description":"IDs of the user's tags to attach to the note"}},"description":"A note needs `content`, `passages`, or both."}}}},"responses":{"200":{"description":"The created passage note","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PassageNote"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/passage-notes/{id}":{"get":{"summary":"Get a specific passage note by ID","tags":["PassageNotes"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The passage note","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PassageNote"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"summary":"Update a passage note","tags":["PassageNotes"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string","maxLength":3000,"description":"Note text, up to 3000 characters"},"passages":{"type":"array","items":{"anyOf":[{"type":"string","description":"USFM passage reference within one book, e.g. \"JHN.3.16-18\", \"GEN.1.1-2.3\", \"PSA.23\", \"GEN.1-3\", or \"GEN\". The range end may repeat the book (\"GEN.1.1-GEN.2.3\"). The 66 books from Genesis to Revelation follow NASB versification: Malachi has 4 chapters, 3 John has 14 verses, and Psalm titles are not numbered verses. Deuterocanonical books follow KJV-1611 Apocrypha versification, with Baruch 6 as the Letter of Jeremiah. The Greek additions to Esther and Daniel are separate books (ESG, S3Y, SUS, BEL), so EST and DAN keep their Hebrew-text verse counts."},{"type":"object","properties":{"startVerseId":{"type":"integer","description":"Integer ID of the first verse: 100000000 + book × 1000000 + chapter × 1000 + verse (Genesis 1:1 = 101001001)"},"endVerseId":{"type":"integer","description":"Integer ID of the last verse, in the same book as `startVerseId`"},"passage":{"description":"USFM passage reference within one book, e.g. \"JHN.3.16-18\", \"GEN.1.1-2.3\", \"PSA.23\", \"GEN.1-3\", or \"GEN\". The range end may repeat the book (\"GEN.1.1-GEN.2.3\"). The 66 books from Genesis to Revelation follow NASB versification: Malachi has 4 chapters, 3 John has 14 verses, and Psalm titles are not numbered verses. Deuterocanonical books follow KJV-1611 Apocrypha versification, with Baruch 6 as the Letter of Jeremiah. The Greek additions to Esther and Daniel are separate books (ESG, S3Y, SUS, BEL), so EST and DAN keep their Hebrew-text verse counts. Null is treated as absent.","type":["string","null"]}},"description":"Provide either `passage` (a USFM reference) or both `startVerseId` and `endVerseId`. If both forms are sent, they must describe the same range, or the request fails with `passage_conflict`."}]},"description":"Passages the note is about"},"tags":{"type":"array","items":{"type":"string"},"description":"IDs of the user's tags to attach to the note"}},"description":"All fields are optional; omitted fields keep their values."}}}},"responses":{"200":{"description":"The updated passage note","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PassageNote"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"summary":"Delete a passage note","tags":["PassageNotes"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Number of deleted notes (1)","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"number"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/passage-notes/count/books":{"get":{"summary":"Get count of passage notes by Bible book","tags":["PassageNotes"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Object keyed by Bible book code with note counts as values","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}}}}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/passage-note-tags":{"get":{"summary":"Get all passage note tags for the current user","tags":["PassageNoteTags"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"List of passage note tags","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PassageNoteTag"}}}}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"summary":"Create a new passage note tag","tags":["PassageNoteTags"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":32,"description":"Tag name, 1–32 characters"},"color":{"type":"string","pattern":"^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$","description":"Hex color code, e.g. \"#3a7bd5\" or \"#38f\""},"description":{"type":"string","maxLength":1500,"description":"Optional description, up to 1500 characters"}},"required":["label","color"],"description":"A new tag. `label` and `color` are required."}}}},"responses":{"200":{"description":"The created passage note tag","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PassageNoteTag"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/passage-note-tags/{id}":{"get":{"summary":"Get a specific passage note tag by ID","tags":["PassageNoteTags"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The passage note tag","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PassageNoteTag"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"summary":"Update a passage note tag","tags":["PassageNoteTags"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":32,"description":"Tag name, 1–32 characters"},"color":{"type":"string","pattern":"^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$","description":"Hex color code, e.g. \"#3a7bd5\" or \"#38f\""},"description":{"type":"string","maxLength":1500,"description":"Optional description, up to 1500 characters"}},"description":"All fields are optional; omitted fields keep their values."}}}},"responses":{"200":{"description":"The updated passage note tag","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PassageNoteTag"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"summary":"Delete a passage note tag","tags":["PassageNoteTags"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Number of deleted tags (1)","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"number"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/settings":{"get":{"summary":"Get user settings","tags":["Settings"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"User settings","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/UserSettings"}}}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"summary":"Update user settings","tags":["Settings"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"object","properties":{"dailyVerseCountGoal":{"type":"number","minimum":1,"maximum":1111,"description":"Number of verses the user aims to read each day (1–1111)"},"lookBackDate":{"type":"string","description":"YYYY-MM-DD date from which reading progress is counted"},"preferredBibleVersion":{"type":"string","description":"Bible translation used for reading links: one of AMP, KJV, NKJV, NIV, ESV, NASB1995, NASB2020, NABRE, NLT, TPT, MSG, CSB, NET, NRSV, ASV, WEB, GNT, RVR1960, RVR2020, NVI, NTV, LBLA, UKR, TURK, BDS, LSG, S21, NEG1979, ARC, NVIPT, ARA, LUT, ELB, HFA, KLB, KRV, NKRV"},"startPage":{"type":"string","description":"Page shown after sign-in: one of start, today, books, checklist, calendar, notes"},"passageNoteTagSortOrder":{"type":"string","description":"How tags are sorted: one of label:ascending, createdAt:descending, createdAt:ascending, noteCount:descending, noteCount:ascending, color:hue"},"locale":{"type":"string","description":"UI locale code: one of en, de, es, fr, ko, pt, uk"},"includeDeuterocanonical":{"type":"boolean","description":"Whether deuterocanonical books are included in the reader's canon"}},"description":"The settings to change; omitted fields keep their values"}},"required":["settings"],"description":"A partial update of the user's settings."}}}},"responses":{"200":{"description":"The updated user settings","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/UserSettings"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/settings/account":{"delete":{"summary":"Delete user account and all associated data","tags":["Settings"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Number of deleted accounts (1)","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"number"}}}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/reminders/daily-reminder":{"get":{"summary":"Get the daily reminder for the current user","tags":["Reminders"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The daily reminder","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/DailyReminder"}}}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"summary":"Update the daily reminder for the current user","tags":["Reminders"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hour":{"type":"integer","minimum":0,"maximum":23,"description":"Hour of the reminder in the user's local time (0–23)"},"minute":{"type":"integer","minimum":0,"maximum":59,"description":"Minute of the reminder (0–59)"},"timezoneOffset":{"type":"integer","minimum":-720,"maximum":840,"description":"The user's timezone offset in minutes, as returned by JavaScript's `Date#getTimezoneOffset()`"},"active":{"type":"boolean","description":"Whether the reminder email is sent"}},"description":"All fields are optional; omitted fields keep their values."}}}},"responses":{"200":{"description":"The updated daily reminder","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/DailyReminder"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/reminders/daily-reminder/unsubscribe/{token}":{"post":{"summary":"Unsubscribe from daily reminders using the reminder public token","tags":["Reminders"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The email of the user who was unsubscribed","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"],"additionalProperties":false}}}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/feedback":{"post":{"summary":"Submit feedback","tags":["Feedback"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","pattern":"^\\S+@\\S+\\.\\S+$","description":"Email address to reply to"},"kind":{"type":"string","enum":["bug","feature","comment"],"description":"The kind of feedback"},"message":{"type":"string","minLength":1,"maxLength":1500,"description":"The feedback message, 1–1500 characters"}},"required":["email","kind","message"],"description":"Feedback for the site's maintainers."}}}},"responses":{"200":{"description":"The created feedback record","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Feedback"}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/scripture/passage":{"get":{"summary":"Get one chunk of passage text for a verse range","tags":["Scripture"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"passage","in":"query","required":false,"schema":{"description":"Passage to read. USFM passage reference within one book, e.g. \"JHN.3.16-18\", \"GEN.1.1-2.3\", \"PSA.23\", \"GEN.1-3\", or \"GEN\". The range end may repeat the book (\"GEN.1.1-GEN.2.3\"). The 66 books from Genesis to Revelation follow NASB versification: Malachi has 4 chapters, 3 John has 14 verses, and Psalm titles are not numbered verses. Deuterocanonical books follow KJV-1611 Apocrypha versification, with Baruch 6 as the Letter of Jeremiah. The Greek additions to Esther and Daniel are separate books (ESG, S3Y, SUS, BEL), so EST and DAN keep their Hebrew-text verse counts. Required unless both verse IDs are sent; if both forms are sent they must name the same range (passage_conflict).","type":"string"}},{"name":"startVerseId","in":"query","required":false,"schema":{"description":"Integer ID of the first verse; required with endVerseId when `passage` is absent","type":"integer"}},{"name":"endVerseId","in":"query","required":false,"schema":{"description":"Integer ID of the last verse, in the same book as `startVerseId`","type":"integer"}},{"name":"bibleVersion","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"One chunk of passage blocks plus a continuation cursor (`next`: `startVerseId`, `endVerseId` and USFM `passage`) when more chapters remain","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{}}}}}},"400":{"description":"Invalid request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthenticated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"502":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}}}}