curl --request POST \
--url https://api.vida.dev/api/v2/tokens \
--header 'Content-Type: application/json' \
--data '{
"type": "admin",
"description": "Main app"
}'
{
"success": true,
"message": "Token created successfully",
"token": {
"token": "9fe4f9....",
"description": "Main app",
"type": "admin",
"timestamp": "167882907",
"userId": 3
}
}
Create a new token for your account
curl --request POST \
--url https://api.vida.dev/api/v2/tokens \
--header 'Content-Type: application/json' \
--data '{
"type": "admin",
"description": "Main app"
}'
{
"success": true,
"message": "Token created successfully",
"token": {
"token": "9fe4f9....",
"description": "Main app",
"type": "admin",
"timestamp": "167882907",
"userId": 3
}
}
Vida API Token
Successful response
The response is of type object
.