{
  "opencollection": "1.0.0",
  "info": {
    "name": "Puzzle Api Accounts OAuth API",
    "version": "0"
  },
  "items": [
    {
      "info": {
        "name": "OAuth",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Authorize (OAuth 2.0 + PKCE)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/oauth/authorize",
            "params": [
              {
                "name": "response_type",
                "value": "",
                "type": "query",
                "description": "Must be `code` for the Authorization Code flow."
              },
              {
                "name": "client_id",
                "value": "",
                "type": "query",
                "description": "The client identifier issued to the app."
              },
              {
                "name": "redirect_uri",
                "value": "",
                "type": "query",
                "description": "One of the app's registered redirect URIs. REQUIRED if it was included during the initial authorization request registration."
              },
              {
                "name": "scope",
                "value": "",
                "type": "query",
                "description": "Space-delimited scopes being requested."
              },
              {
                "name": "state",
                "value": "",
                "type": "query",
                "description": "Opaque value to maintain state between the request and callback. Returned unchanged to the `redirect_uri`."
              },
              {
                "name": "code_challenge",
                "value": "",
                "type": "query",
                "description": "PKCE code challenge derived from the `code_verifier`. REQUIRED for public clients and recommended for all clients."
              },
              {
                "name": "code_challenge_method",
                "value": "",
                "type": "query",
                "description": "The method used to derive `code_challenge` (recommended `S256`)."
              }
            ]
          },
          "docs": "Starts the OAuth 2.0 Authorization Code flow. Redirects the user's browser to the login/consent UI and, if approved, back to the client's `redirect_uri` with an authorization code. Supports PKCE."
        },
        {
          "info": {
            "name": "Get Token (OAuth 2.0)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/oauth/token",
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "client_id",
                  "value": ""
                },
                {
                  "name": "client_secret",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Exchanges an authorization code for tokens, or refreshes an access token. Uses application/x-www-form-urlencoded as required by OAuth 2.0. Clients may authenticate via HTTP Basic (recommended for confidential clients) or by including `client_id` (and, if applicable, `client_secret`) in the body."
        }
      ]
    }
  ],
  "bundled": true
}