API de vídeosEndpoints

Iniciar um teste automático

POST
/v1/videos/{id}/experiments/{type}/run

Authorization

bearerAuth
AuthorizationBearer <token>

Cole seu token da API VTurb (vt_...). Enviado como Authorization: Bearer <token>.

In: header

Path Parameters

id*string
type*string

Value in

  • "turbo"
  • "headline"
  • "smart_autoplay"

Request Body

application/json

Só turbo recebe um corpo (speed_start / speed_end). headline e smart_autoplay configuram as variantes com PATCH antes e rodam sem corpo.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/v1/videos/652f2b1e8f1b2c3d4e5f6a7b/experiments/turbo/run" \  -H "Content-Type: application/json" \  -d '{    "speed_start": 1.2,    "speed_end": 1.4  }'
{  "id": "652f2b1e8f1b2c3d4e5f6a7b",  "experiment": {    "type": "turbo",    "status": "running"  }}