Skip to content

Multiple Workout Documents

GET
/v2/usercollection/workout
curl --location --request GET 'https://api.ouraring.com/v2/usercollection/workout?start_date=2021-11-01&end_date=2021-12-01&fields=day,score' \
--header 'Authorization: Bearer <token>'
start_date
Start Date
string format: date
end_date
End Date
string format: date
next_token
Any of:
string
fields
Any of:
string

Comma-separated list of fields to include in the response, in addition to the always returned fields. Defaults to all fields if not provided.

Successful Response

Media typeapplication/json
MultiDocumentResponse[PublicWorkout]
object
data
required
Data
Array<object>
PublicWorkout

Public model for Workout.

object
id
required

Unique identifier of the object.

string
>= 1 characters
activity
required

Type of the workout activity.

string
calories
Any of:
number
day
required

Day when the workout occurred.

string
distance
Any of:
number
end_datetime
required

Timestamp indicating when the workout ended.

string
intensity
required

Intensity of the workout.

string
Allowed values: easy moderate hard
label
Any of:
string
source
required

Possible workout sources.

string
Allowed values: manual autodetected confirmed workout_heart_rate
start_datetime
required

Timestamp indicating when the workout started.

string
next_token
required
Any of:
string
Example
{
"data": [
{
"intensity": "easy",
"source": "manual"
}
]
}

Client Exception

Unauthorized access exception. Usually means the access token is expired, malformed or revoked.

Access forbidden. Usually means the user’s subscription to Oura has expired and their data is not available via the API.

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}

Request Rate Limit Exceeded.