API 參考
Segments
User-marked segment timestamps on a media file
Authorization
bearerAuth AuthorizationBearer <token>
Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.
In: header
Path Parameters
fileId*string
Response Body
application/json
curl -X GET "https://example.com/api/v1/media/string/segments"[ { "id": "string", "type": "op", "start_time": 0, "end_time": 0, "source": "string" }]Authorization
bearerAuth AuthorizationBearer <token>
Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.
In: header
Path Parameters
fileId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v1/media/string/segments" \ -H "Content-Type: application/json" \ -d '{ "type": "op", "start_time": 0, "end_time": 0 }'Empty
Authorization
bearerAuth AuthorizationBearer <token>
Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.
In: header
Path Parameters
fileId*string
segmentId*string
Response Body
curl -X DELETE "https://example.com/api/v1/media/string/segments/string"Empty