Using OAuth 2.0 Access Tokens

OAuth 2.0 access tokens are provided as a bearer token, in the Authorization http header.

The header format is:

Authorization: Bearer {token}

Note: Rhythm access tokens will fluctuate in size as we change the information that is encoded the tokens. We recommend allowing for tokens to be up to 300 characters to account for any changes we may make.

An example, using cURL, to get contacts, using the Authorization header:

➜ ~ curl -H "Authorization: Bearer ZThlN2ZkNTEtZWY2YS00YmQ4LWExOTUtOTFlNTdiMDZhYzFh" https://api.rhythm.cloud/api/public/goal/e19269d2-ad8c-4f26-9d13-fa43bfe9754d/status
{"year":2018, "quarter":4, "week":12, "color":"red", "projected":"13.2","actual":"5.2", "variance":"-7", "comment":"red comment"}

 In this example, the access token is ZThlN2ZkNTEtZWY2YS00YmQ4LWExOTUtOTFlNTdiMDZhYzFh