Admin
Trigger cron job
Manually trigger a background cron job by name. The job runs asynchronously.
Authorization
session better-auth.session_token<token>
Better Auth session cookie
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "http://localhost:3000/api/v1/admin/jobs/trigger" \ -H "Content-Type: application/json" \ -d '{ "name": "scheduledBackup" }'{
"ok": true
}{
"defined": true,
"code": "NOT_FOUND",
"status": 404,
"message": "Job not found",
"data": {
"code": "JOB_NOT_FOUND"
}
}