This API is now deprecated and will be removed in the future. Please use API Token tab in the dropdown menu of the upper right corner of the web UI to get your API token.
Provide the "login token" returned by using "api/login/account", as the Bearer token in Authorization HeaderObtain the API token that you will use as the Bearer token in Authorization Header to use other apisSet the alias of the api token.You do not need to generate the API token everything. Please store the API token in a safe place. Treat it as your password.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
alias
stringÂ
required
a string to help memorize why do you generate this api token
Example
{"alias":"any string for your record"}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://video.a2e.ai/api/v1/token/generate' \
--header'Content-Type: application/json' \
--data-raw'{
"alias":"any string for your record"
}'
Responses
🟢200generate
application/json
Body
code
integerÂ
required
0 is OK
data
objectÂ
required
_id
stringÂ
required
id of the api token
token
stringÂ
required
api token for all the AUTH field in header. You do not need to generate the API token everything. Please store the API token in a safe place. Treat it as your password.