Use the TwelveLabs Video Understanding API to extract information from your videos and make it available to your applications. The API is organized around REST and returns responses in JSON format. It is compatible with most programming languages, and you can use one of the available SDKs, Postman, or other REST clients to interact with the API.
To call an endpoint, you must construct a URL similar to the following one:
{Method} {BaseURL}/{version}/{resource}/{path_parameters}?{query_parameters}
The list below describes each component of a request:
GET: Reads data.POST: Creates a new object or performs an action.PUT: Updates an object.DELETE: Deletes an object.POST and PUT methods require you to pass a request body containing additional parameters.https://api.twelvelabs.io.v1.3.Note that the API requires you to pass a header parameter containing your API key to authenticate each request. For details, see the Authentication page.
TwelveLabs Video Understanding API follows the RFC 9110 standard to indicate the success or failure of a request. Each response contains a field named X-Api-Version that indicates the version of the API against which the operation was performed.
The following list is a summary of the HTTP status codes returned by the platform:
200: The request was successful.201: The request was successful and a new resource was created.400: The API service cannot process the request. See the code and message fields in the response for more details about the error.401: The API key you provided is not valid.404: The requested resource was not found.429: Indicates that a rate limit has been reached.HTTP status codes in the 4xx range indicate an error caused by the parameters you provided in the request. For each error, the API service returns the following fields in the body of the response:
code: A string representing the error code.message: A human-readable string describing the error, intended to be suitable for display in a user interface.docs_url: The URL of the relevant documentation page.For more details, see the Error codes page.