{
  "info": {
    "_postman_id": "aifitnessapi-suunto",
    "name": "Suunto (aifitnessapi.com)",
    "description": "Suunto: OAuth 2.0 requests built from the vendor documentation aifitnessapi.com quotes. Generated by scripts/build-collections.mjs; no secrets included. https://aifitnessapi.com/collections",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "OAuth 2.0",
      "description": "Suunto's authorization-code flow as its documentation describes it, read 2026-11-05. Fill client_id, redirect_uri and scope in an environment of your own and keep client_secret there, never in a shared collection. No refresh request: The token response includes a refresh_token, but the pages read here document no refresh request, so this tool prints none.\n\nThe same facts, with each source sentence, at https://aifitnessapi.com/integrate/suunto-api and https://aifitnessapi.com/tools/oauth-playground.",
      "item": [
        {
          "name": "1. Authorization URL (open in a browser)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://cloudapi-oauth.suunto.com/oauth/authorize?response_type=code&client_id={{client_id}}&redirect_uri={{redirect_uri}}&scope={{scope}}&state={{state}}",
              "protocol": "https",
              "host": [
                "cloudapi-oauth",
                "suunto",
                "com"
              ],
              "path": [
                "oauth",
                "authorize"
              ],
              "query": [
                {
                  "key": "response_type",
                  "value": "code"
                },
                {
                  "key": "client_id",
                  "value": "{{client_id}}"
                },
                {
                  "key": "redirect_uri",
                  "value": "{{redirect_uri}}"
                },
                {
                  "key": "scope",
                  "value": "{{scope}}"
                },
                {
                  "key": "state",
                  "value": "{{state}}"
                }
              ]
            },
            "description": "https://cloudapi-oauth.suunto.com/oauth/authorize. Authorization URL. Open this URL in a browser (in Postman: copy it from the request bar); the user signs in and Suunto redirects to {{redirect_uri}} with ?code=… Put that value in the auth_code variable.\n\nSource: Suunto API Zone, “How to start”, https://apizone.suunto.com/how-to-start\n\nScope: No scope list is published on the pages read here and Suunto's authorization URL carries no scope parameter; its sample token response shows the scope workout. Source: Suunto API Zone, “How to start”, https://apizone.suunto.com/how-to-start\n\nPKCE: Not mentioned on Suunto's quick-start or FAQ."
          },
          "response": []
        },
        {
          "name": "2. Exchange the code for tokens",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/x-www-form-urlencoded",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://cloudapi-oauth.suunto.com/oauth/token",
              "protocol": "https",
              "host": [
                "cloudapi-oauth",
                "suunto",
                "com"
              ],
              "path": [
                "oauth",
                "token"
              ]
            },
            "description": "https://cloudapi-oauth.suunto.com/oauth/token. Token URL, with HTTP Basic client credentials.\n\nSource: Suunto API Zone, “How to start”, https://apizone.suunto.com/how-to-start\n\nClient credentials go as HTTP Basic: {{client_id}} as the user name, {{client_secret}} as the password.\n\nToken lifetime: Suunto's sample response shows expires_in 86400 (24 hours). The access token is a JWT whose user claim is the Suunto app user name. Source: Suunto API Zone, “How to start”, https://apizone.suunto.com/how-to-start\n\nNote: The token endpoint uses HTTP Basic: Base64(clientid:clientsecret). Source: Suunto API Zone, “FAQ”, https://apizone.suunto.com/faq\n\nNote: OAuth requests need no subscription key; Cloud API data calls do (Ocp-Apim-Subscription-Key). Source: Suunto API Zone, “FAQ”, https://apizone.suunto.com/faq",
            "auth": {
              "type": "basic",
              "basic": [
                {
                  "key": "username",
                  "value": "{{client_id}}",
                  "type": "string"
                },
                {
                  "key": "password",
                  "value": "{{client_secret}}",
                  "type": "string"
                }
              ]
            },
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "key": "grant_type",
                  "value": "authorization_code",
                  "type": "text"
                },
                {
                  "key": "code",
                  "value": "{{auth_code}}",
                  "type": "text"
                },
                {
                  "key": "redirect_uri",
                  "value": "{{redirect_uri}}",
                  "type": "text"
                }
              ]
            }
          },
          "response": []
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "client_id",
      "value": "",
      "type": "string",
      "description": "Your app's client ID, from the vendor's developer console."
    },
    {
      "key": "client_secret",
      "value": "",
      "type": "string",
      "description": "Keep it in a Postman or Bruno environment marked secret. This collection ships it empty."
    },
    {
      "key": "redirect_uri",
      "value": "",
      "type": "string",
      "description": "The redirect URI registered with the vendor."
    },
    {
      "key": "scope",
      "value": "",
      "type": "string",
      "description": "Scopes to request, joined as the vendor documents (see the authorization request)."
    },
    {
      "key": "state",
      "value": "",
      "type": "string",
      "description": "A random value you check on the redirect."
    },
    {
      "key": "auth_code",
      "value": "",
      "type": "string",
      "description": "The ?code= value from the redirect."
    }
  ]
}
