Skip to main content

Job Workflow

A job moves through a small set of states from the moment you create it until a guardian closes it out. This page is the definitive reference for those states, what causes each transition, and which events reach your callback URL.

Job states

Four states on the happy path, plus Canceled (note: single L — that's how the API spells it) as a possible exit from the first two:

StateMeaning
NewJob created; waiting for a Guardian to accept.
AssignedA Guardian has accepted and is scheduled.
InProgressThe Guardian has arrived and started the shift.
CompletedThe Guardian closed the shift. Feedback can now be submitted.
CanceledEither the partner canceled, or no Guardian accepted before it became impossible to fulfil.

Cut-off rules

Both sides have a 2-hour cut-off before the scheduled start time:

  • Before cut-off — the partner can cancel, and an assigned Guardian can withdraw, both at will. Withdrawal returns the job to New; cancelation moves it to Canceled.
  • After cut-off — neither side can exit via the API. Late changes go through G2 Sentry operations; email mikeg@g2sentry.com.

End-to-end happy path

Five steps from booking to feedback. The callback you receive is listed under each step where one fires.

StepWho drives itCallback fired
1. Create jobPartner (POST /jobs)
2. AcceptGuardian, in their appJobAssigned
3. Start shiftGuardian, on arrivalJobStarted
4. Complete shiftGuardian, at endJobCompleted
5. RatePartner (POST /jobs/{id}/review) + Guardian in-app

Events vs callbacks

G2 Sentry logs many events internally, but only four of them are pushed to your callback URL:

EventDelivered as callback?Trigger
NewJobNo (internal)Partner creates the job.
JobAssignedYesGuardian accepts the offer.
JobStartedYesGuardian marks arrival and starts the shift.
JobCompletedYesGuardian finishes the shift.
JobWithdrawedYesGuardian withdraws before cut-off. Job returns to New.
JobGuardianRateNo (internal)Guardian rates the client.
JobClientRateNo (internal)Partner submits client feedback.

Poll /jobs/{id}/status if you need any event that's not in the callback stream.

Feedback

After a job moves to Completed, both sides can submit feedback once. Ratings are 1–5 with an optional comment:

  • Partner-side (acting for the end user): POST /jobs/{id}/review
  • Guardian-side is submitted from the Guardian app directly to G2 Sentry. You don't need to handle it.

Next

  • Full callback payload shapes and verification snippets: Callbacks.
  • Endpoint reference with curl examples: API.