v1

latestOpenAPI 3.1.02026-07-2416666272.6 KB
Assistants

Create new AI assistant

Creates a new AI assistant with specified video bindings and configuration

post/assist-ai/buy_and_create

Request body

video_idsstring[] required

Array of video IDs to bind to the assistant

lang'pt-BR' | 'en' | 'es' required

Idioma do Tutor, usado para gerar resumos, sugestoes de perguntas e respostas do chat. Valores aceitos: pt-BR, en, es. Outros valores sao normalizados para o idioma mais proximo; valores nao reconhecidos usam pt-BR como padrao. Recomenda-se enviar exatamente um dos tres.

namestring required

Name of the assistant

open_new_tabboolean required

Whether to open chat in a new tab

question_suggestionsboolean

Whether to enable question suggestions

initial_questionstring required

Initial question to display in the chat

Example request

{
  "video_ids": [
    "video1",
    "video2"
  ],
  "lang": "pt-BR",
  "name": "My Video Assistant",
  "open_new_tab": true,
  "question_suggestions": true,
  "initial_question": "How can I help you with this video?"
}

Response

Assistant AI created successfully

messagestring

Example response

{
  "message": "Assistant AI created successfully",
  "assistant": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "My Video Assistant",
    "lang": "pt-BR",
    "open_new_tab": true,
    "question_suggestions": true,
    "initial_question": "How can I help you with this video?",
    "status": "active",
    "created_at": "2025-08-16T10:30:00Z",
    "updated_at": "2025-08-16T10:30:00Z"
  }
}