{
  "name": "ApiSkills — OAuth2 Client Credentials",
  "nodes": [
    {
      "parameters": {},
      "id": "trigger-oauth2",
      "name": "When clicking Test workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [0, 0]
    },
    {
      "parameters": {
        "url": "https://api.aiwf.in/playground/data/stocks/candles",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            { "name": "shape", "value": "flat" },
            { "name": "page", "value": "1" },
            { "name": "page_size", "value": "20" }
          ]
        },
        "options": {}
      },
      "id": "http-oauth2",
      "name": "HTTP Request (OAuth2)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [240, 0]
    }
  ],
  "connections": {
    "When clicking Test workflow": {
      "main": [[{ "node": "HTTP Request (OAuth2)", "type": "main", "index": 0 }]]
    }
  },
  "settings": {},
  "meta": {
    "apiskills": "Create an OAuth2 API credential in n8n — Grant Type: Client Credentials, Access Token URL: https://api.aiwf.in/oauth/token, Client ID: your App ID, Client Secret: your App Secret, Scope: stocks:read. Replace api.aiwf.in with your API domain."
  }
}
