{
  "opencollection": "1.0.0",
  "info": {
    "name": "Gleap AI content API",
    "version": "14.0.0"
  },
  "items": [
    {
      "info": {
        "name": "AI content",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create AI content",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.gleap.io/v3/aicontent",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create or update AI content"
        },
        {
          "info": {
            "name": "Get AI content by contentId",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.gleap.io/v3/aicontent/:contentId",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "contentId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get AI content by contentId"
        },
        {
          "info": {
            "name": "Update AI content by contentId",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.gleap.io/v3/aicontent/:contentId",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "contentId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update AI content by contentId"
        },
        {
          "info": {
            "name": "Delete AI content by contentId",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.gleap.io/v3/aicontent/:contentId",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "contentId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete AI content by contentId"
        },
        {
          "info": {
            "name": "Delete old AI content batches",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.gleap.io/v3/aicontent/oldbatches",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete all AI content except the current batch"
        },
        {
          "info": {
            "name": "Delete AI content by batchId",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.gleap.io/v3/aicontent/batch/:batchId",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "batchId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete all AI content by batchId"
        },
        {
          "info": {
            "name": "List YouTube content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.gleap.io/v3/youtube-source",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List all YouTube video content for the project"
        },
        {
          "info": {
            "name": "Import YouTube video",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.gleap.io/v3/youtube-source",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Import a single YouTube video for AI content analysis"
        },
        {
          "info": {
            "name": "Preview YouTube URL",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.gleap.io/v3/youtube-source/preview",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Preview a YouTube URL before importing. Fetches metadata + an exact\ncost estimate (in cents) for the video or full playlist/channel.\nFor large playlists this can take a few seconds — the client is\nexpected to show a spinner."
        },
        {
          "info": {
            "name": "Import YouTube playlist/channel",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.gleap.io/v3/youtube-source/batch",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Import a YouTube playlist or channel for bulk AI content analysis"
        },
        {
          "info": {
            "name": "Delete YouTube video content",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.gleap.io/v3/youtube-source/:videoId",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "videoId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a single YouTube video's content"
        },
        {
          "info": {
            "name": "Delete YouTube batch content",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.gleap.io/v3/youtube-source/batch/:batchId",
            "headers": [
              {
                "name": "project",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "batchId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete all YouTube content from a batch"
        }
      ]
    }
  ],
  "bundled": true
}