POST
/
iam
/
clients
/
invite_user
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
user_invite = client.iam.users.invite(
    client_id=0,
    email="dev@stainless.com",
    user_role={},
)
print(user_invite.user_id)
{
  "status": "sent",
  "user_id": 19449
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json

Response

200
application/json

OK.

The response is of type object.