Metrics LIST
GET/metrics
Required Permissions: Metric List
or Metric Admin
Request
Query Parameters
The object key to sort the results by.
Possible values: Value must match regular expression ^,+
A list of owner_ids for filtering, separated by commas.
Possible values: Value must match regular expression ^,+
A list of team_ids for filtering, separated by commas.
Responses
- 200
A JSON Object containing an array of all metrics.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- ]
- ]
- ]
- ]
Possible values: >= 1
metrics object[]
Possible values: [positive
, negative
, unknown
]
goal object
created_by object
Possible values: >= 1
updated_by objectnullable
Possible values: >= 1
tags object[]
goal_tag object
created_by object
Possible values: >= 1
updated_by objectnullable
Possible values: >= 1
teams object[]
team object
created_by object
Possible values: >= 1
updated_by objectnullable
Possible values: >= 1
users object[]
user object
Possible values: >= 1
metrics object[]
owners object[]
user object
Possible values: >= 1
tags object[]
owners object[]
user object
Possible values: >= 1
teams object[]
team object
created_by object
Possible values: >= 1
updated_by objectnullable
Possible values: >= 1
users object[]
user object
Possible values: >= 1
goals object[]
goal object
created_by object
Possible values: >= 1
updated_by objectnullable
Possible values: >= 1
tags object[]
goal_tag object
created_by object
Possible values: >= 1
updated_by objectnullable
Possible values: >= 1
owners object[]
user object
Possible values: >= 1
{
"items": 1,
"page": 0,
"total": 1,
"metrics": [
{
"id": 0,
"goal_id": 70,
"name": "Time to Book",
"description": "The amount of time before a booking has been made",
"type": "goal_time_to_achievement",
"effect": "positive",
"archived": false,
"format_str": "{}s",
"scale": 1,
"precision": 0,
"value_source_property": "",
"property_filter": "",
"created_at": "2024-12-02T14:38:57.849Z",
"created_by_user_id": 1,
"updated_at": "2024-12-02T14:38:57.849Z",
"updated_by_user_id": 0,
"goal": {
"id": 0,
"name": "purchase",
"description": "A goal for tracking how many purchases are made on any of our applications",
"created_at": "2024-12-02T14:38:57.849Z",
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.849Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"created_by_user_id": 0,
"updated_at": "2024-12-02T14:38:57.849Z",
"updated_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.849Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"updated_by_user_id": 0,
"archived": false,
"tags": [
{
"goal_id": 0,
"goal_tag_id": 0,
"goal_tag": {
"id": 0,
"tag": "psychological:Trust",
"created_at": "2024-12-02T14:38:57.849Z",
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.849Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"created_by_user_id": 0,
"updated_at": "2024-12-02T14:38:57.849Z",
"updated_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.849Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"updated_by_user_id": 0,
"goals": [
null
]
}
}
],
"teams": [
{
"goal_id": 0,
"team_id": 0,
"team": {
"id": 0,
"external_id": 0,
"name": "Marketing",
"created_at": "2024-12-02T14:38:57.850Z",
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.850Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"created_by_user_id": 0,
"updated_at": "2024-12-02T14:38:57.850Z",
"updated_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.850Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"updated_by_user_id": 0,
"users": [
{
"user_id": 0,
"user": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.850Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"team_id": 0
}
],
"experiments": [
null
],
"goals": [
null
],
"metrics": [
{
"metric_id": 0,
"team_id": 0
}
]
}
}
],
"owners": [
{
"goal_id": 0,
"user": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.850Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"user_id": 0
}
],
"metrics": [
null
]
},
"tags": [
{
"id": 0,
"tag": "location:Header",
"created_at": "2024-12-02T14:38:57.850Z",
"created_by_user_id": 0,
"updated_at": "2024-12-02T14:38:57.850Z",
"updated_by_user_id": 0
}
],
"owners": [
{
"metric_id": 0,
"user_id": 0,
"user": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.850Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
}
}
],
"teams": [
{
"metric_id": 0,
"team_id": 0,
"team": {
"id": 0,
"external_id": 0,
"name": "Marketing",
"created_at": "2024-12-02T14:38:57.851Z",
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.851Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"created_by_user_id": 0,
"updated_at": "2024-12-02T14:38:57.851Z",
"updated_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.851Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"updated_by_user_id": 0,
"users": [
{
"user_id": 0,
"user": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.851Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"team_id": 0
}
],
"experiments": [
null
],
"goals": [
{
"goal_id": 0,
"goal": {
"id": 0,
"name": "purchase",
"description": "A goal for tracking how many purchases are made on any of our applications",
"created_at": "2024-12-02T14:38:57.852Z",
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.852Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"created_by_user_id": 0,
"updated_at": "2024-12-02T14:38:57.852Z",
"updated_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.852Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"updated_by_user_id": 0,
"archived": false,
"tags": [
{
"goal_id": 0,
"goal_tag_id": 0,
"goal_tag": {
"id": 0,
"tag": "psychological:Trust",
"created_at": "2024-12-02T14:38:57.852Z",
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.852Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"created_by_user_id": 0,
"updated_at": "2024-12-02T14:38:57.852Z",
"updated_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.852Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"updated_by_user_id": 0,
"goals": [
null
]
}
}
],
"teams": [
null
],
"owners": [
{
"goal_id": 0,
"user": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-02T14:38:57.852Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"user_id": 0
}
],
"metrics": [
null
]
},
"team_id": 0
}
],
"metrics": [
null
]
}
}
]
}
]
}