POST
/
api
/
v0
/
team
/
invite
/
invite team member
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",
  "api_key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}'
{
  "msg": "New invitation sent to ${email}"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<email>
required

Email address of the user to invite

Example:

"user@example.com"

role
string
required

Role to assign to the new team member

Example:

"developer"

api_key
string

API key of the inviting user

Example:

"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Response

Invitation sent successfully

msg
string
Example:

"New invitation sent to ${email}"