---
title: "Upload a Video"
method: POST
path: "/video/upload"
tags: ["Video"]
---

# Upload a Video

`POST /video/upload`

## Request

- Base URL: `https://api-upload.blog2social.com/api/rest/v1.0`
- URL: `https://api-upload.blog2social.com/api/rest/v1.0/video/upload`
- Auth: none declared
- TypeScript: <https://skmtc.dev/blog2social/apis/blog2social-api/docs/video/upload/post.ts> (a function with typed inputs; its response is checked against the schema)

Upload the video file to our Video Server<br> After recieving a video_token, you will be able to upload your video in chunks to our video server. Make sure that the bytesize of the single chunks can be divided by 8 and that all chunks must have the same size (Except for the last chunk).

## Request body `multipart/form-data`

- object
  - `video_token` string: The token you recieved for a video upload
  - `max_count_chunks` integer: The count of chunks you split your video in
  - `current_chunk` integer: The current chunk you want to upload
  - `chunk` string, binary: The binary video chunk file.

## Response `200`

OK - The networks array only contains the errors for the networks your trying to post on, if the video failed to meet a specific requirement of that network

- object[]
  - `error` integer
  - `networks` object[]
    - `error` integer
    - `b2s_error_code` string
    - `network_id` integer
    - `client_user_network_id` integer
    - `instant_sharing` integer
    - `post_id` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Interal Server Error

---

[API](https://skmtc.dev/blog2social/apis/blog2social-api.md) - [All operations](https://skmtc.dev/blog2social/apis/blog2social-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blog2social/apis/blog2social-api/revisions/25eaecaa1acb?raw)
