Skip to main content
POST

Invite a user to the account

Scope:system:users.write
https://api.holded.com/api/v2/account/users

Sends an invitation email to the specified address and creates a pending membership for the account.

Request body

object
emailstring<email>required

Email address of the user to invite

role_idstringrequired

Role identifier to assign to the invited user

Request

python
import requests

url = "https://api.holded.com/api/v2/account/users"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "email": "user@example.com",
    "role_id": "507f1f77bcf86cd799439011"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011"
}

Success responses

201Invitation createdapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
409User is already a member or has a pending invitation
422No seats available for the requested role
429Rate limit exceededapplication/json