This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates and sends invite emails to a list of potential team members, inviting them to become team members of the requesting account. The invites may be limited to a specific resource (site or other asset). Maximum 50 invitees can be specified per call.
Important: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
Array of potential team members' email addresses and their corresponding assignments (how they will be assigned when they accept the invite).
Language of emails to send. Relevant only for recipients that don't currently have a Wix user ID. Default: Site owner's language.
Invites that were sent successfully.
Invites that failed.
curl -X POST \
'https://www.wixapis.com/invites/account-invite/create' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"subjectsAssignments": [
{
"assignments": [
{
"policyId": "6600344420111308827",
"assignments": []
}
],
"subjectEmail": "some@email.com"
}
],
}'
{
"successfulInvites": [
{
"id": "bfb00082-28bd-4da9-b234-9c60e6b821ed",
"accountId": "<ACCOUNT-ID-FROM-AUTH-HEADER>",
"email": "some@email.com",
"inviterId": "fed9597b-0015-4cc2-b531-aff2ec248e7a",
"acceptLink": "https://manage.wix.com/team/accept?....",
"inviterAccountId": "fed9597b-0015-4de2-f530-aff2ec248e7a",
"dateCreated": "2024-11-11T12:15:18Z",
"dateUpdated": "2024-11-11T12:15:18Z",
"assignments": [
{
"policyId": "6600344420111308827"
}
],
"expirationDate": "2024-12-11T12:15:18Z"
}
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.