Skip to content
Baremetrics

Create Goal

POST https://api.baremetrics.com/v1/goals

Body

application/json
  • metric string required
  • start_amount integer · int32 required

    In cents

  • end_amount integer · int32 required

    In cents

  • start_date string · date required
  • end_date string · date required
  • name string required

    The goal name

Responses

200OK
{
  "goal": {
    "id": "our_unique_id",
    "metric": "mrr",
    "end_amount": 2000,
    "start_amount": 1000,
    "end_date": "2016-06-30",
    "start_date": "2016-01-02",
    "name": "Goal 1"
  }
}
400Bad Request
{}