{
  "opencollection": "1.0.0",
  "info": {
    "name": "Cal.diy API v2 Api Keys OAuth2 API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "OAuth2",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get OAuth2 client",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v2/auth/oauth2/clients/:clientId",
            "params": [
              {
                "name": "clientId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the OAuth2 client information for the given client ID"
        },
        {
          "info": {
            "name": "Exchange authorization code or refresh token for tokens",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v2/auth/oauth2/token",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "RFC 6749-compliant token endpoint. Pass client_id in the request body (Section 2.3.1). Use grant_type 'authorization_code' to exchange an auth code for tokens, or 'refresh_token' to refresh an access token. Accepts both application/x-www-form-urlencoded (standard per RFC 6749 Section 4.1.3) and application/json content types."
        }
      ]
    }
  ],
  "bundled": true
}