Create an AI video for campaign - POC for Vidyard
Code | Description |
---|---|
400 | Bad Request: body has wrong syntax or unable to handle request |
401 | Unauthorized: auth_token omitted or authentication failed |
403 | Forbidden: This action cannot be performed |
404 | Not Found: The requested resource could not be found |
406 | Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
REQUEST POST /v1/campaigns/video Content-Type: application/json BODY { "campaign": { "campaign_id": "foo-bar" }, "webhook_url": "http://foo.bar/video/created", "lead_owner": { "email": "ricky@something.com" }, "lead_info": { "info": [ ["key1", "val1"], ["key2", "val2"] ] } } RESPONSE 201 Created { "job_id": 1234 }
Param name | Description |
---|---|
auth_token optional |
API token needed to authorize requests Validations:
|
campaign required |
Campaign within which video will be created Validations:
|
campaign[campaign_id] required |
UUID identifying campaign Validations:
|
webhook_url optional |
URL to call when video is created, player UUID will be provided in the body Validations:
|
lead_owner required |
Owner of the lead, refers to an account within organization running the campaign Validations:
|
lead_owner[email] required |
Lead owner email Validations:
|
lead_info required |
Lead info container Validations:
|
lead_info[info] required |
Lead info key/value pairs Validations:
|