Skip to main content
GET
Get goal by ID

Get Goal By Id

Retrieve a single goal by its goalId. Returns different schema based on goal type (frequency_duration, opportunity, rating, or interval).

Headers

Path Parameters

  • goalId (required): Goal public identifier

Success Response (200)

Response varies by goal type.

Frequency/Duration Based Goal Response

Opportunity Based Goal Response

Rating Goal Response

Interval Goal Response

Error Responses

400 - Validation Error

500 - Internal Server Error

Examples

cURL Example

JavaScript Example

Path Parameters

goalId
string
required

Response

Successful response

type
string
required
publicId
string
required
dataCollectionType
enum<string>
required
Available options:
FREQUENCY_ONLY,
DURATION_ONLY,
FREQUENCY_AND_DURATION
addedToTreatmentPlanAt
string<date-time>
required
goalStatement
string
required
status
enum<string>
required
Available options:
BASELINE,
IN_MAINTENANCE,
MASTERED,
ARCHIVED,
IN_PROGRESS,
DISCONTINUED,
FUTURE,
ON_HOLD
autoProgressToMaintenanceEnabled
boolean
required
autoProgressToMasteredEnabled
boolean
required
baselineMetric
object
required
successMetric
object
required
maintenanceMetric
object
required
targetMaladaptiveBehaviorName
string | null
definition
string | null
instructions
string | null
baselineDate
string<date-time> | null
targetAchievementDate
string<date-time> | null
progressSummary
string | null
isBehavior
boolean
behaviorInstances
object[] | null