---
title: "get all"
method: GET
path: "/exercise-logs"
tags: ["Exercise Logs"]
---

# get all

`GET /exercise-logs`

Returns a list of exercise logs you've previously created. The exercise logs will be returned in descending order of when they were created, unless you specify otherwise.
#### For custom components:
`RaiselyComponents.api.all('exercise-logs').get(params = {}, headers = {}) => Promise<{result}>`

 :fa-gears: See [Restie Response Data](https://github.com/raisely/restie#reading-and-handling-responses) for a more detailed overview of responses through the client wrapper

## Query parameters

- `private` boolean
- `q` string
- `limit` number
- `offset` number
- `sort` string
- `order` 'asc' | 'desc'
- `profile` string
- `user` string

## Headers

- `Authorization` string

## Response `200`

The resulting collection of Exercise Log records

- object
  - `data` MemberExerciseLog[]
    - `activity` 'RUNNING' | 'SWIMMING' | 'CYCLING' | 'WALKING' | 'WHEELCHAIRING' | 'OTHER', required — `public` The type of exercise this activity represents
    - `activityId` integer — `public` Strava activity id of the exercise (if any)
    - `data` object — `public` Additional contextual data related to this log
    - `date` string — `public` The date that this log took place
    - `distance` integer — `public` Distance (in meters)
    - `measure` integer — `public` Completed measure (in campaign unit)
    - `profileUuid` string — `public` Unique identifier for the record
    - `rawDistance` integer — `public` (Internal Raisely field - ignored)
    - `sourceApp` string — `public` Source of the exercise logs (if any)
    - `time` integer — `public` Time elapsed (in seconds)
    - `user` NestedUser
      - `accessToken` string — `public` A secret token for this user, used to authenticate them against the API or in your campaign.
      - `address1` string — `public` Line 1 of an address
      - `address2` string — `public` Line 2 of an address
      - `adminSettings` object — `public` Object containing settings for admin users
        - `v4BetaOptin` boolean — `public` Whether admin has opted into v4
        - `starredCampaigns` string[] — `public` Array of favourite campaigns for user
      - `country` string — `public` The country of the user
      - `createdAt` string — `public` Date the record was created
      - `email` string — `public` The user's email address. Raisely uses this as a unique identifier and will deduplicate on email.
      - `facebookId` string — `public` The Facebook ID provided on authentication
      - `firstName` string — `public` The first name of the user
      - `fullName` string — `public` The full name of the user
      - `internal` object — `public` Internal values related to this record
      - `ipCity` string — `public` Deprecated
      - `ipCountry` string — `public` Deprecated
      - `ipLatitude` number — `public` Deprecated
      - `ipLongitude` number — `public` Deprecated
      - `ipNumber` string — `public` Deprecated
      - `isAdmin` boolean — `public` Will be true if this user has admin permissions
      - `isSamlLogin` boolean — `public` Will be true if this user logs in via organisation SAML login
      - `language` string — `public` The language the user last interacted in
      - `lastName` string — `public` The last name of the user
      - `permission` string — `public` Deprecated. Use roles
      - `phoneNumber` string — `public` Phone number of the user
      - `photoUrl` string — `public` URL of the user's photo
      - `postcode` string — `public` Postal code of the user
      - `preferredName` string — `public` The name that the user prefers to be called
      - `private` object — `public` Private values for this record
      - `public` object — `public` Public values for this record
      - `state` string — `public` The state/province of the user
      - `status` 'ACTIVE' | 'DELETED' | 'PENDING' — `public` ACTIVE, DELETED, or PENDING
      - `suburb` string — `public` The suburb/city of the user
      - `swiftAidAuthExpiry` string — `public` Date of expiry of donor authorisation for SwiftAid
      - `swiftAidDonorId` string — `public` Id of donor on SwiftAid
      - `unsubscribedAt` string — `public` ISO8601 timestamp of when the user was unsubscribed from non-essential emails or sms. A blank value indicates the user is still subscribed.
      - `updatedAt` string — `public` Date the record was last updated
      - `username` string — `public` The login email for this user
      - `uuid` string — `public` Unique identifier for the record
    - `userUuid` string — `public` Unique identifier for the record
    - `uuid` string — `public` Unique identifier for the record
  - `pagination` Pagination
    - `total` integer — The total amount of records returned
    - `pages` integer — The amount of pages (by limit) returned
    - `prevUrl` union — Url that points to the previous set of records in the pagination if available
      - string
      - boolean
    - `nextUrl` union — Url that points to the next set of records in the pagination if available
      - string
      - boolean
    - `offset` integer — The total number of records to offset in the pagination
    - `limit` integer — The maximum amount of records to shown in each page

## Other responses

- `400` — One or more invalid values has been supplied
- `401` — Authorization credentials were missing or invalid
- `403` — The user is authenticated, but is not allowed to perform the requested operation
- `404` — One of the records needed to complete the request could not be found
- `409` — The operation cannot be completed because it would result in a duplicate record
- `410` — The requested record no longer exists, or that API has been deprecated
- `412` — Operation cannot proceed with the record in it's current state
- `429` — You have made too many requests to the given endpoint, please try again later
- `500` — An unexpected error has occurred with Raisely. If the error persists you can contact support@raisely.com

---

[API](https://skmtc.dev/raisely/apis/raisely-api.md) · [All operations](https://skmtc.dev/raisely/apis/raisely-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/raisely/raisely-api/revisions/d7f8dd294cb0/schema)
