cURL
curl --request POST \ --url https://console.vast.ai/api/v0/team/invite/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "user@example.com", "role": "developer" } '
{ "success": true, "msg": "New invitation sent to ${email}" }
Sends an invitation email to the specified user to join the team with the given role.
CLI Usage: vastai invite team-member --email <email> --role <role>
vastai invite team-member --email <email> --role <role>
API key must be provided in the Authorization header
Email address of the user to invite
"user@example.com"
Role to assign to the new team member
"developer"
Invitation sent successfully
true
"New invitation sent to ${email}"