Create Goal
Goals
Create Goal
Create a durable goal. Metrics are optional and other goals are never changed implicitly.
- title: The goal title/description (1-500 characters)
- goal_type: Optional metric type: boolean, scale, or numeric
- target_value: Optional target value
- current_value: Optional current progress
- min_value: Optional minimum scale value
- max_value: Optional maximum scale value
- unit: Optional unit label (e.g., ‘users’, ‘points’)
Omit all metric fields to create a qualitative goal.
POST
Create Goal
Authorizations
Send Authorization: Bearer <omi_developer_api_key>.
Body
application/json
The goal title/description
Required string length:
1 - 500Optional current progress
Maximum string length:
2000Optional metric type
Available options:
boolean, scale, numeric Optional maximum scale value
Optional minimum scale value
Maximum array length:
20Optional target value
Unit label (e.g., 'users', 'points')
Maximum string length:
2000Response
Successful Response