> ## Documentation Index
> Fetch the complete documentation index at: https://docs.repdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload video

> # Description

Upload the video to the service to process it before send it to Dacast external service.

# Payload

FormData with the file of the video to be send with `file` as key.

# Response

## 200 OK

```json
{
  "id": string
}
```

where:

* `id`: Uploaded video identifier.

## 401 Unauthorized

> If user don't have permission to use this endpoint.

## 400 Bad Request

> If FormData doesn't have a key named `file`.

## 500 Internal Server Error

> If there is a problem with the service

# Description

Upload the video to the service to process it before send it to Dacast external service.

# Payload

FormData with the file of the video to be send with `file` as key.

# Response

## 200 OK

```json theme={null}
{
  "id": string
}
```

where:

* `id`: Uploaded video identifier.

## 401 Unauthorized

> If user don't have permission to use this endpoint.

## 400 Bad Request

> If FormData doesn't have a key named `file`.

## 500 Internal Server Error

> If there is a problem with the service


## OpenAPI

````yaml POST /api/video
openapi: 3.0.3
info:
  title: SightX API
  version: 1.0.0
  description: >-
    SightX REST API documentation. Most responses are JSON; some export
    endpoints return files. API access is a paid add-on — contact
    sales@sightx.io for details.
servers:
  - url: https://auth.admin.sightx.io
    description: Authentication (Production)
  - url: https://auth.staging-admin.sightx.io
    description: Authentication (Staging)
security:
  - AuthorizationHeader: []
paths:
  /api/video:
    post:
      summary: Upload video
      description: >-
        # Description


        Upload the video to the service to process it before send it to Dacast
        external service.


        # Payload


        FormData with the file of the video to be send with `file` as key.


        # Response


        ## 200 OK


        ```json

        {
          "id": string
        }

        ```


        where:


        * `id`: Uploaded video identifier.


        ## 401 Unauthorized


        > If user don't have permission to use this endpoint.


        ## 400 Bad Request


        > If FormData doesn't have a key named `file`.


        ## 500 Internal Server Error


        > If there is a problem with the service
      operationId: upload-video-post-api-video
      parameters:
        - name: Authorization
          in: header
          required: true
          description: Authorization token
          schema:
            type: string
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '500':
          description: Internal server error
      servers:
        - url: https://upload-video.sightx.io
components:
  securitySchemes:
    AuthorizationHeader:
      type: apiKey
      in: header
      name: Authorization
      description: Access token obtained from the m2m-token endpoint.

````