System

Cron job endpoint

GET
https://firefly.example.com/api/v1/cron/{cliToken}

Firefly III has one endpoint for its various cron related tasks. Send a GET to this endpoint to run the cron. The cron requires the CLI token to be present. The cron job will fire for all users.

Parameters

X-Trace-Idstring<uuid>header

Unique identifier associated with this request.

cliTokenstringrequiredpath

The CLI token of any user in Firefly III, required to run the cron job. OR this is the STATIC_CRON_TOKEN.

datestring<date>query

A date formatted YYYY-MM-DD. This can be used to make the cron job pretend it's running on another day.

forcebooleanquery

Forces the cron job to fire, regardless of whether it has fired before. This may result in double transactions or weird budgets, so be careful. Only system owners can do this.

Response

The result of the cron job(s) firing.

Response fields application/json
recurring_transactionsArray<CronResultRow>
Show child attributes
job_firedboolean | null

This value tells you if this specific cron job actually fired. It may not fire. Some cron jobs only fire every 24 hours, for example.

Example
true
job_succeededboolean | null

This value tells you if this specific cron job actually did something. The job may fire but not change anything.

Example
true
job_erroredboolean | null

If the cron job ran into some kind of an error, this value will be true.

Example
false
messagestring | null

If the cron job ran into some kind of an error, this value will be the error message. The success message if the job actually ran OK.

Example
Cron result message
userstring

The user for which this particular job result is.

Example
1
Show child attributes
job_firedboolean | null

This value tells you if this specific cron job actually fired. It may not fire. Some cron jobs only fire every 24 hours, for example.

Example
true
job_succeededboolean | null

This value tells you if this specific cron job actually did something. The job may fire but not change anything.

Example
true
job_erroredboolean | null

If the cron job ran into some kind of an error, this value will be true.

Example
false
messagestring | null

If the cron job ran into some kind of an error, this value will be the error message. The success message if the job actually ran OK.

Example
Cron result message
userstring

The user for which this particular job result is.

Example
1
exchange_ratesArray<CronResultRow>
Show child attributes
job_firedboolean | null

This value tells you if this specific cron job actually fired. It may not fire. Some cron jobs only fire every 24 hours, for example.

Example
true
job_succeededboolean | null

This value tells you if this specific cron job actually did something. The job may fire but not change anything.

Example
true
job_erroredboolean | null

If the cron job ran into some kind of an error, this value will be true.

Example
false
messagestring | null

If the cron job ran into some kind of an error, this value will be the error message. The success message if the job actually ran OK.

Example
Cron result message
userstring

The user for which this particular job result is.

Example
1
bill_notificationsArray<CronResultRow>
Show child attributes
job_firedboolean | null

This value tells you if this specific cron job actually fired. It may not fire. Some cron jobs only fire every 24 hours, for example.

Example
true
job_succeededboolean | null

This value tells you if this specific cron job actually did something. The job may fire but not change anything.

Example
true
job_erroredboolean | null

If the cron job ran into some kind of an error, this value will be true.

Example
false
messagestring | null

If the cron job ran into some kind of an error, this value will be the error message. The success message if the job actually ran OK.

Example
Cron result message
userstring

The user for which this particular job result is.

Example
1
Show child attributes
job_firedboolean | null

This value tells you if this specific cron job actually fired. It may not fire. Some cron jobs only fire every 24 hours, for example.

Example
true
job_succeededboolean | null

This value tells you if this specific cron job actually did something. The job may fire but not change anything.

Example
true
job_erroredboolean | null

If the cron job ran into some kind of an error, this value will be true.

Example
false
messagestring | null

If the cron job ran into some kind of an error, this value will be the error message. The success message if the job actually ran OK.

Example
Cron result message
userstring

The user for which this particular job result is.

Example
1
400Bad RequestBadRequestResponse

Bad request

Response fields application/json
messagestring
Example
Bad Request
exceptionstring
Example
BadRequestHttpException

Unauthenticated

Response fields application/json
messagestring
Example
Unauthenticated
exceptionstring
Example
AuthenticationException
404Not FoundNotFoundResponse

Page not found

Response fields application/json
messagestring
Example
Resource not found
exceptionstring
Example
NotFoundHttpException
422Unprocessable EntityValidationErrorResponse

Validation error. The body will have the exact details.

Response fields application/json
messagestring
Example
The given data was invalid.
errorsobject
Show child attributes
emailArray<string>
forceArray<string>
blockedArray<string>
fieldArray<string>
roleArray<string>
blocked_codeArray<string>
nameArray<string>
typeArray<string>
ibanArray<string>
startArray<string>
endArray<string>
dateArray<string>
500Internal Server ErrorInternalExceptionResponse

Internal exception

Response fields application/json
messagestring
Example
Internal Exception
exceptionstring
Example
InternalException

Authorization

firefly_iii_authoauth2

OAuth2 authorization code flow. Create a client on your installation's /profile page; it authorizes at /oauth/authorize and issues tokens at /oauth/token there. The URLs below are the demo site's. How to use the API walks through it.

local_bearer_authhttp (bearer)

A Personal Access Token, sent as a bearer token. Create one on your installation under Options > Profile > OAuth > Personal Access Tokens.