# Fitbit Plus API API

> # Overview The Fitbit Plus API is a RESTful API. The requests and responses are formated according to the [JSON API](http://jsonapi.org/format/1.0/) specification. In addition to this documentation, we also provide an [OpenAPI](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md) "yaml" file describing the API: [Fitbit Plus API Specification](swagger.yaml). # Authentication Authentication for the Fitbit Plus API is based on the [OAuth 2.0 Authorization Framework](https://tools.ietf.org/html/rfc6749). Fitbit Plus currently supports grant types of **client_credentials** and **refresh_token**. See [POST /oauth/token](#operation/createToken) for details on the request and response formats. <!-- ReDoc-Inject: <security-definitions> --> ## Building Integrations We will provide customers with unique client credentials for each application/integration they build, allowing us to enforce appropriate access controls and monitor API usage. The client credentials will be scoped to the organization, and allow full access to all patients and related data within that organization. These credentials are appropriate for creating an integration that does one of the following: - background reporting/analysis - synchronizing data with another system (such as an EMR) The API credentials and oauth flows we currently support are **not** well suited for creating a user-facing application that allows a user (patient, coach, or admin) to login and have access to data which is appropriate to that specific user. It is possible to build such an application, but it is not possible to use Fitbit Plus as a federated identity provider. You would need to have a separate means of verifying a user's identity. We do not currently support the required password-based oauth flow to make this possible. # Paging The Fitbit Plus API supports two different pagination strategies for GET collection endpoints. #### Skip-based paging Skip-based paging uses the query parameters `page[size]` and `page[number]` to specify the max number of resources returned and the page number. We default to skip-based paging if there are no page parameters. The response will include a `links` object containing links to the first, last, prev, and next pages of data. If the contents of the collection change while you are iterating through the collection, you will see duplicate or missing documents. For example, if you are iterating through the `calender_event` resource via `GET /pub/calendar_event?sort=start_at&page[size]=50&page[number]=1`, and a new `calendar_event` is created that has a `start_at` value before the first `calendar_event`, when you fetch the next page at `GET /pub/calendar_event?sort=start_at&page[size]=50&page[number]=2`, the first entry in the second response will be a duplicate of the last entry in the first response. #### Cursor-based paging Cursor-based paging uses the query parameters `page[limit]` and `page[after]` to specify the max number of entries returned and identify where to begin the next page. Add `page[limit]` to the parameters to use cursor-based paging. The response will include a `links` object containing a link to the next page of data, if the next page exists. Cursor-based paging is not subject to duplication if new resources are added to the collection. For example, if you are iterating through the `calender_event` resource via `GET /pub/calendar_event?sort=start_at&page[limit]=50`, and a new `calendar_event` is created that has a `start_at` value before the first `calendar_event`, you will not see a duplicate entry when you fetch the next page at `GET /pub/calendar_event?sort=start_at&page[limit]=50&page[after]=<cursor>`. We encourage the use of cursor-based paging for performance reasons. In either form of paging, you can determine whether any resources were missed by comparing the number of fetched resources against `meta.count`. Set `page[size]` or `page[limit]` to 0 to get only the count. It is not valid to mix the two strategie.

Fitbit Plus API is a business API from twinehealth.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 62 endpoints.

## At a glance

- Category: [Business](https://www.openparable.com/apis/category/business)
- Provider: twinehealth.com
- Authentication: OAuth
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://api.twinehealth.com/pub
- Documentation: https://twinehealth.com/
- OpenAPI description: https://api.apis.guru/v2/specs/twinehealth.com/v7.78.1/openapi.json
- Version: v7.78.1
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://api.twinehealth.com/pub/calendar_event" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Endpoints

- `POST /action` — Create action
- `GET /action/{id}` — Get an action
- `PATCH /action/{id}` — Update an action
- `POST /bundle` — Create bundle
- `GET /bundle/{id}` — Get a bundle
- `PATCH /bundle/{id}` — Update a bundle
- `GET /calendar_event` — List calendar events
- `POST /calendar_event` — Create calendar event
- `GET /calendar_event/{id}` — Get a calendar event
- `PATCH /calendar_event/{id}` — Update a calendar event
- `DELETE /calendar_event/{id}` — Delete a calendar event
- `POST /calendar_event_response` — Create calendar event response
- `GET /coach` — List coaches
- `GET /coach/{id}` — Get a coach
- `GET /email_history` — List email histories
- `GET /email_history/{id}` — Get an email history
- `GET /group` — List groups
- `POST /group` — Create a group
- `GET /group/{id}` — Get a group
- `GET /health_profile` — List health profiles
- `GET /health_profile/{id}` — Get a health profile
- `GET /health_profile_answer` — List health profile answers
- `GET /health_profile_answer/{id}` — Get a health profile answer
- `GET /health_profile_question` — List health profile questions
- `GET /health_profile_question/{id}` — Get a health profile question
- `GET /health_question_definition` — List health question definitions
- `GET /health_question_definition/{id}` — Get a health question definition
- `POST /oauth/token` — Create an oauth token
- `GET /oauth/token/{id}/groups` — Get the groups for a token
- `GET /oauth/token/{id}/organization` — Get the organization for a token
- `GET /organization/{id}` — Get an organization
- `GET /patient` — List patients
- `POST /patient` — Create a patient
- `PUT /patient` — Upsert patient
- `GET /patient/{id}` — Get a patient
- `PATCH /patient/{id}` — Update a patient
- `GET /patient/{id}/coaches` — List coaches for a patient
- `GET /patient/{id}/groups` — List groups for a patient
- `GET /patient_health_metric` — List patient health metrics
- `POST /patient_health_metric` — Create patient health metrics
- `GET /patient_health_metric/{id}` — Get a patient health metric
- `GET /patient_plan_summary` — List patient plan summaries
- `GET /patient_plan_summary/{id}` — Get the plan summary for a patient
- `PATCH /patient_plan_summary/{id}` — Update a plan summary
- `GET /result` — List patient health results
- `GET /result/{id}` — Get a patient health result
- `GET /reward` — List rewards
- `POST /reward` — Create a reward
- `GET /reward/{id}` — Get a reward
- `GET /reward_earning` — List reward earnings
- `POST /reward_earning` — Create a reward earning
- `GET /reward_earning/{id}` — Get a reward earning
- `GET /reward_earning_fulfillment` — List reward earning fulfillments
- `POST /reward_earning_fulfillment` — Create a reward earning fulfillment
- `GET /reward_earning_fulfillment/{id}` — Get a reward earning fulfillment
- `GET /reward_program` — List reward programs
- `POST /reward_program` — Create a reward program
- `GET /reward_program/{id}` — Get a reward program
- `GET /reward_program/{id}/group` — Get group for a reward program
- `GET /reward_program_activation` — List reward program activations
- `POST /reward_program_activation` — Create a reward program activation
- `GET /reward_program_activation/{id}` — Get a reward program activation

## Questions

### Does the Fitbit Plus API API need an API key?

Yes. The Fitbit Plus API API uses OAuth authentication; the documentation explains how to get credentials.

### Does the Fitbit Plus API API support HTTPS?

Yes, the Fitbit Plus API API is served over HTTPS.

### How many endpoints does the Fitbit Plus API API have?

Its OpenAPI description lists 62 endpoints in version v7.78.1. All of them are shown on this page.

### What are alternatives to the Fitbit Plus API API?

Other Business APIs include Gmail, Google Analytics, Apache Superset, Trello, Square.

## Similar business APIs

- [Gmail](https://www.openparable.com/apis/gmail): Flexible, RESTful access to the user's inbox
- [Google Analytics](https://www.openparable.com/apis/google-analytics): Collect, configure and analyze your data to reach the right audience
- [Apache Superset](https://www.openparable.com/apis/apache-superset): API to manage your BI dashboards and data sources on Superset
- [Trello](https://www.openparable.com/apis/trello): Boards, lists and cards to help you organize and prioritize your projects
- [Square](https://www.openparable.com/apis/square): Easy way to take payments, manage refunds, and help customers checkout online
- [Mailchimp](https://www.openparable.com/apis/mailchimp): Send marketing campaigns and transactional mails
- [Braze Endpoints](https://www.openparable.com/apis/braze-endpoints): # Braze API Overview Braze provides a high performance REST API to allow you to track users, send messages, export data, and more. A REST API is a way to programmatically transfer information over the web using a predefined schema. Braze has created many different endpoints with specific requirements that will perform various actions and/or return various data. API access is done using HTTPS web requests to your company's REST API endpoint (this will correspond to your Dashboard URL as shown in the table below). Customers using Braze's EU database should use `https://rest.fra-01.braze.eu/`. For more information on REST API endpoints for customers using Braze's EU database see our [EU/US Implementation Differences documentation](https://www.braze.com/docs/developer_guide/eu01_us3_sdk_implementation_differences/overview/). ## Braze Instances Instance | Dashboard URL | REST Endpoint ----------- |---------------- | -------------------- US-01 | `https://dashboard.braze.com` or<br> `https://dashboard-01.braze.com` | `https://rest.iad-01.braze.com` US-02 | `https://dashboard-02.braze.com` | `https://rest.iad-02.braze.com` US-03 | `https://dashboard-03.braze.com` | `https://rest.iad-03.braze.com` US-04 | `https://dashboard-04.braze.com` | `https://rest.iad-04.braze.com` US-06 | `https://dashboard-06.braze.com` | `https://rest.iad-06.braze.com` EU-01 | `https://dashboard.braze.eu` or<br> `https://dashboard-01.braze.eu` | `https://rest.fra-01.braze.eu` # Using Braze's Postman Collection If you have a Postman account (MacOS, Windows, and Linux versions can be downloaded from their website located [here](https://www.getpostman.com)), you can go to our Postman documentation and click the orange `Run in Postman` button in the top, right corner. This will allow you to [create an environment](#setting-up-your-postman-environment), as well as edit the available `POST` and `GET` requests to suit your own needs. ## Setting Up Your Postman Environment The Braze Postman Collection uses a templating variable, `{{instance_url}}`, to substitute the REST API URL of your Braze instance into the pre-built requests. Rather than having to manually edit all requests in the Collection, you can set up this variable in your Postman environment. To do so, please follow the steps below: 1. Click on the gear icon in the top right corner of the Postman app. 2. Select "Manage Environments" to open a modal window which displays your active environments. 3. In the bottom right corner of the modal window, click "Add" to create a new environment. 4. Give this environment a name (e.g. "Braze API Requests") and add keys for `instance_url` and `api_key` with values corresponding to [your Braze instance](https://www.braze.com/docs/api/basics/#endpoints) and [Braze REST API Key](https://www.braze.com/docs/api/basics/#app-group-rest-api-keys), as pictured below. As of April, 2020 Braze has changed how we read App Group API keys. Instead of passing them in the request body or through url parameters, we now read the App Group Rest`api_key` through the HTTP Authorization header. API keys not passed through the HTTP Authorization Header will coninue to work until they have been sunset. ## Using the Pre-Built Requests from the Collection Once you have configured your environment. You can use any of the pre-built requests in the collection as a template for building new API requests. To start using one of the pre-built requests, simply click on it within the 'Collections' menu on the left side of Postman. This will open the request as a new tab in the main window of the Postman app. In general, there are two types of requests that Braze's API endpoints accept - `GET` and `POST`. Depending on which `HTTP` method the endpoint uses, you'll need to edit the pre-built request differently. ### Edit a POST Request When editing a `POST` request, you'll need to open the request and navigate to the `Body` section in the request editor. For readability, select the `raw` radio button to form
- [Freelancer](https://www.openparable.com/apis/freelancer): Hire freelancers to get work done
- [mailjet](https://www.openparable.com/apis/mailjet): Marketing email can be sent and mail templates made in MJML or HTML can be sent using API
- [Instatus](https://www.openparable.com/apis/instatus): Post to and update maintenance and incidents on your status page through an HTTP REST API
- [Mist API](https://www.openparable.com/apis/mist): > Version: **0.36.1** > > Date: **March 3, 2022** --- #### Available Documentation * [Postman](https://documenter.getpostman.com/view/224925/SzYgQufe) * [Open API](https://doc.mist-lab.fr/) --- #### Useful links * [Mist Homepage](https://www.mist.com) * [Mist Documentation](https://www.mist.com/documentation) * [Official API Documentation](https://api.mist.com/api/v1/docs/Home) (Mist account required) * [Mist Blog](https://www.mist.com/news/?md_post_type=post) * [Mist Updates](https://www.mist.com/documentation/category/product-updates/)
- [SalesLoft Platform](https://www.openparable.com/apis/salesloft-platform): SalesLoft helps transform sales teams into modern sales organizations - converting more target accounts into customer accounts

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/fitbit-plus (OpenParable). Cite the canonical URL above.
