# Video Upload

Upload video to project

POST

/api/projects/{project_id}/videos

KEY TYPE DESCRIPTION
title string If not provided it will use file name
video file Video file to upload
poster file optional Poster image file. If you do not provide any,
it will be automatically created from video
description string optional Video description

Response:

{
    "message": "Video added.",
    "video": {
        "id": 15,
        "hash": "aErJBrzD",
        "title": "Radiohead  - No Suprise",
        "description": "Video spot - Radiohead",
        "name": "file-example-mp4-1920-18mg",
        "size": 17839845,
        "length": 30.033333,
        "iso8601_duration": "PT30S",
        "width": 1920,
        "height": 1080,
        "video": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2023/3/10/aErJBrzD/index.m3u8",
        "uploaded_at": "2023-03-10T11:32:49.000000Z",
        "completed_at": null,
        "created_at": "2023-03-10T11:32:48.000000Z",
        "updated_at": "2023-03-10T11:33:02.000000Z",
        "published": false,
        "published_at": null,
        "resolutions": [
            {
                "resolution": "1080p",
                "resolution_id": 3,
                "transcoded": 0,
                "vertical_value": 1080,
                "horizontal_value": 1920,
                "size": null,
                "transcode_duration": null
            },
            {
                "resolution": "720p",
                "resolution_id": 4,
                "transcoded": 0,
                "vertical_value": 720,
                "horizontal_value": 1280,
                "size": null,
                "transcode_duration": null
            },
            {
                "resolution": "480p",
                "resolution_id": 5,
                "transcoded": 0,
                "vertical_value": 480,
                "horizontal_value": 854,
                "size": null,
                "transcode_duration": null
            }
        ],
        "tags": [],
        "category": null,
        "countries": [],
        "media_resource": "pmrP5kAO/pmrP5kAO/video/aErJBrzD",
        "image": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2023/3/10/aErJBrzD/posters/720p.jpg?1678447971",
        "image_urls": {
            "360p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2023/3/10/aErJBrzD/posters/360p.jpg?1678447971",
            "720p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2023/3/10/aErJBrzD/posters/720p.jpg?1678447971",
            "1080p": "https://api.mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2023/3/10/aErJBrzD/posters/1080p.jpg?1678447971"
        },
        "project_json": "https://mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/project.json",
        "video_json": "https://mov.mediaoutcast.test/storage/pmrP5kAO/pmrP5kAO/2023/3/10/aErJBrzD/video.json"
    },
    "web_socket_broadcaster": "pusher",
    "web_socket_key": "e35893989a0fe4e0c1ae",
    "web_socket_cluster": "eu"
}