{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Account Assistant — AI Comment Manager & Safe Outreach",
    "description": "AI comment manager for your own YouTube channel: spam auto-moderation, questions answered from your product profile, golden-hour replies, safe niche outreach and lead mining. Official API, you authorize with your own Google project. $0.02 per posted comment; failed actions free. · by TubeText",
    "version": "0.1",
    "x-build-id": "WHaV06XXcthbHstQu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tubetext~youtube-account-assistant/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tubetext-youtube-account-assistant",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/tubetext~youtube-account-assistant/runs": {
      "post": {
        "operationId": "runs-sync-tubetext-youtube-account-assistant",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/tubetext~youtube-account-assistant/run-sync": {
      "post": {
        "operationId": "run-sync-tubetext-youtube-account-assistant",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "authorize",
              "inspect",
              "preview",
              "execute"
            ],
            "type": "string",
            "description": "authorize = BYO-client OAuth setup (two runs). inspect = verify the connection. preview = validate without posting. execute = perform the operations.",
            "default": "inspect"
          },
          "oauthClientId": {
            "title": "Authorize: OAuth client ID",
            "type": "string",
            "description": "Your own Google Cloud project's OAuth client ID (mode=authorize)."
          },
          "oauthClientSecret": {
            "title": "Authorize: OAuth client secret",
            "type": "string",
            "description": "The matching client secret (mode=authorize, both runs)."
          },
          "oauthRedirectUri": {
            "title": "Authorize: redirect URI (optional)",
            "type": "string",
            "description": "Must match your OAuth client's registered redirect URI. Defaults to http://127.0.0.1/callback."
          },
          "authorizationResponse": {
            "title": "Authorize: pasted redirect URL (run 2)",
            "type": "string",
            "description": "The full address-bar URL after approving the consent screen (mode=authorize, second run)."
          },
          "credentialClientId": {
            "title": "Advanced: credential client ID (optional)",
            "type": "string",
            "description": "Direct credentials if you already hold a refresh token. Stored channel credentials from mode=authorize load automatically."
          },
          "credentialClientSecret": {
            "title": "Advanced: credential client secret (optional)",
            "type": "string",
            "description": "Direct credentials if you already hold a refresh token (client secret)."
          },
          "credentialRefreshToken": {
            "title": "Advanced: credential refresh token (optional)",
            "type": "string",
            "description": "Direct credentials if you already hold a refresh token (refresh token)."
          },
          "connectionKey": {
            "title": "Hosted connection key (optional)",
            "type": "string",
            "description": "Only for the hosted connection flow; takes precedence when set."
          },
          "sampleChannelIds": {
            "title": "Sample channel IDs",
            "type": "array",
            "description": "Channel IDs for external monitoring samples. The Actor itself does not read this field.",
            "items": {
              "type": "string"
            }
          },
          "expectedChannelId": {
            "title": "Your channel ID",
            "type": "string",
            "description": "UC… channel ID from inspect/authorize; prevents operating the wrong channel."
          },
          "operations": {
            "title": "Operations",
            "type": "array",
            "description": "Array of operations. Actions: upload, comment, reply, list_comments, ai_reply_own (AI drafts replies to your video's comments), ai_engage (AI drafts a comment on another video). Fields per action in the README. autoPost:true + mode:execute posts AI drafts; otherwise drafts are returned for review."
          },
          "intervalSeconds": {
            "title": "Delay between operations (seconds)",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "Delay between operations (seconds)",
            "default": 0
          },
          "googleProxyUrl": {
            "title": "Proxy URL (optional)",
            "type": "string",
            "description": "HTTP(S) proxy for Actor-side YouTube API requests."
          },
          "action": {
            "title": "Top-level action (campaign)",
            "type": "string",
            "description": "Set to run_campaign for the full-funnel marketing engine (requires campaignId, seedKeywords, expectedChannelId). Leave empty for normal comment operations via mode + operations."
          },
          "campaignId": {
            "title": "Campaign ID (run_campaign)",
            "type": "string",
            "description": "Named marketing campaign. The seen-comment journal, creator pool and keyword pool are stored per campaignId and persist across runs."
          },
          "seedKeywords": {
            "title": "Campaign: seed keywords",
            "type": "array",
            "description": "Niche seed words; AI expands them into related search keywords.",
            "items": {
              "type": "string"
            }
          },
          "expandTo": {
            "title": "Campaign: expanded keyword pool size",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Campaign: expanded keyword pool size",
            "default": 20
          },
          "maxTotal": {
            "title": "Campaign: max interactions per run",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Campaign: max interactions per run",
            "default": 100
          },
          "autoPost": {
            "title": "Auto-post interactions",
            "type": "boolean",
            "description": "When true, AI drafts and rule replies are posted automatically. When false, everything comes back as drafts for review.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}