API Reference

Create new AI Tutor

Creates a new AI assistant with specified video bindings and configuration

POST /assist-ai/buy_and_create

Detailed Description

Creates a new AI assistant with specified video bindings and configuration for the authenticated user.

HTTP Method & Path

POST /assist-ai/buy_and_create

Authentication Requirements

  • Security Scheme: PandaAuth (apiKey)
  • Header: Authorization: <your_api_token> (no Bearer prefix)

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesPanda API token (without Bearer prefix).

Request Body

Schema: BuyAndCreateRequest

NameTypeRequiredDescription
video_idsarray of stringYesArray of video IDs to bind to the assistant.
langstringYesLanguage code for the assistant.
namestringYesName of the assistant.
open_new_tabbooleanYesWhether chat opens in a new tab.
question_suggestionsbooleanNoEnable question suggestions.
initial_questionstringYesInitial question shown in the chat.

Example Request Body

{
  "video_ids": ["video1", "video2"],
  "lang": "en",
  "name": "My Video Assistant",
  "open_new_tab": true,
  "question_suggestions": true,
  "initial_question": "How can I help you with this video?"
}
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!