Import Video Files

Supametas.ai allows users to upload custom files. Through the API, you can upload source data to your data storage in Supametas.ai. Based on your needs, the file will be stored and parsed accordingly.

Endpoint: POST: {{BaseUrl}}/video-task

Request body:

{
  "file" : {},
  "data" : {
    "getDemandFormat": "",
    "customKeys": [
   	{
      	  "key": "",
          "desc": ""
    	}
    ]
  }
}

Response (Data Part):

{
  "num": 0,
  "taskId": "xxxx010"
}

Request:

Parameter
Type
Required
Description

file

FILE

YES

Supported types:

mov,mp4,mpv

data

OBJECT

YES

-getDemandFormat

OBJECT

YES

Output document format:

1 : json

2 : markdown

-timeline

INTEGER

NO

Video timeline:

1 : get

0 : don't get

-textDetails

INTEGER

NO

Video text:

1 : get

0 : don't get

textLanguage

INTEGER

NO

Video language:

1 : get

0 : don't get

-customKeys

ARRAY

NO

Custom fields

--key

STRING

NO

Custom field key

--desc

STRING

NO

Custom field description

Response (Data Part):

Parameter
Type
Description

num

INTEGER

Number of files processed

taskId

STRING

Import task ID, which can be used to query task status


Last updated