Skip to main content

Dispatch overdue scheduled notifications

Manual operation that claims pending rows from scheduled_notifications with send_at <= now and sends emails. The normal flow wakes via QStash.
1 min read
get/internal/notifications/dispatch-due
Request example
Response
get/internal/notifications/dispatch-due

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.
Authorizationstringheaderrequired#
Exact bearer configured in CRON_SECRET.

Query parameters

limitinteger#

Default: 50

Range: <= 200

Responses

application/json
OK.
dataobjectrequired#
request_idstring#
metaobject#
Show child attributes
next_cursorstring#
has_moreboolean#
pageinteger#
current page (1-based) when the list uses page pagination.
page_sizeinteger#
Page size when the list uses page pagination.
totalinteger#
Total items matching the filter.
total_pagesinteger#
Total pages for the current page size.