Skip to main content

Respond to Goal Met

POST 

/api/success-plan/goal-met/:goal/respond

Answers the "you hit your goal" ask for a met goal, once per goal.

Required scope: success_plan:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

  • sentence: your sentence becomes a quote in your own words, used in a draft only once you approve it.
  • clip / write_up: an offer to record a short clip or help with a write-up; SKU.io follows up.
  • not_now: dismissed; consent that was never set becomes ask_later.
  • never: consent becomes no.

Authentication: Requires Bearer token with the success_plan:write scope. The user must hold the success_plan.manage permission.

Body:

  • choice (string, required): sentence, clip, write_up, not_now or never.
  • text (string, max 500): required with sentence.

Response: goal_id, choice, story_entry (the quote or offer recorded, or null) and consent_status.

409 codes: consent_no (sharing is off), goal_not_met, already_responded.

Request​

Responses​

OK

Response Headers
    Content-Type