List sources
GEThttps://api.one.blendvision.com/bv/aisk/v1/sources
This API is used to list the source resources.
Request
Query Parameters
Optional. The name of the source to be filtered. It will return the results which contain the specified name.
Possible values: [SOURCE_STATUS_INGESTING
, SOURCE_STATUS_PREPARING
, SOURCE_STATUS_READY
, SOURCE_STATUS_UPDATING
, SOURCE_STATUS_FAILED
, SOURCE_STATUS_DELETING
]
Optional. The list of the source status to be filtered. It will return the results whose status in the specified list of statuses. It will return all of the status results if left empty.
Possible values: [SOURCE_TYPE_WEBSITE
, SOURCE_TYPE_LOCAL_DRIVE
, SOURCE_TYPE_VOD
, SOURCE_TYPE_VIDEO
, SOURCE_TYPE_SUBTITLE
, SOURCE_TYPE_TEXT
, SOURCE_TYPE_AOD
]
Optional. The list of the source type to be filtered. It will return the results whose type in the specified list of types. It will return all of the type results if left empty.
Input only. Indicates the current page to shows. Default: 1.
Input only. Indicates the number of items to shows per page. Default: 1. Max: 100.
Responses
- 200
- 400
- 401
- 403
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
sources object[]
pagination object
{
"sources": [
{
"id": "string",
"type": "SOURCE_TYPE_WEBSITE",
"name": "string",
"status": "SOURCE_STATUS_INGESTING",
"format": "SOURCE_FORMAT_WEBSITE",
"size_in_bytes": "string",
"file": {
"id": "string",
"type": "FILE_TYPE_VIDEO",
"name": "string",
"size_in_bytes": "string"
},
"vod": {
"id": "string"
},
"video": {
"id": "string"
},
"text": {
"content": "string"
},
"aod": {
"id": "string"
},
"metadata": {
"keyword_1": {
"data": [
{
"value": "string"
}
]
},
"keyword_2": {
"data": [
{
"value": "string"
}
]
},
"keyword_3": {
"data": [
{
"value": "string"
}
]
},
"keyword_4": {
"data": [
{
"value": "string"
}
]
},
"keyword_5": {
"data": [
{
"value": "string"
}
]
},
"integer_range_1": {
"data": [
{
"gte": "string",
"lte": "string"
}
]
},
"integer_range_2": {
"data": [
{
"gte": "string",
"lte": "string"
}
]
},
"integer_range_3": {
"data": [
{
"gte": "string",
"lte": "string"
}
]
},
"boolean_1": {
"data": {
"value": true
}
},
"boolean_2": {
"data": {
"value": true
}
},
"boolean_3": {
"data": {
"value": true
}
},
"text_1": {
"data": {
"value": "string"
}
},
"text_2": {
"data": {
"value": "string"
}
},
"text_3": {
"data": {
"value": "string"
}
}
},
"next_update_time": "2024-07-29T15:51:28.071Z",
"character_count": "string",
"summary": {
"content": "string",
"status": "SUMMARY_STATUS_WAITING",
"error_infos": [
{
"reason": "string",
"domain": "string",
"metadata": {}
}
]
},
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"error_infos": [
{
"reason": "string",
"domain": "string",
"metadata": {}
}
]
}
],
"pagination": {
"total_items": 0,
"items_per_page": 0,
"current_page": 0
}
}
A bad request response.
The code
is 3
means got an invalid argument. There are more HTTP status code mappings listed on here and gRPC code on here.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A unauthenticated response.
The header authorization
was missing or unidentified.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A forbidden response.
It means that the provided authorization
did not have enough permission to access the resource or the API.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A server error response. There are more HTTP status code mappings listed on here.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Authorization: authorization
name: authorizationtype: apiKeydescription: Enter the token with Bearer schema prefix, eg. `Bearer <token-string>`in: header
- curl
- python
- go
- nodejs
- php
- CURL
curl -L 'https://api.one.blendvision.com/bv/aisk/v1/sources' \
-H 'Accept: application/json' \
-H 'authorization: <API_KEY_VALUE>'