This document is generated by Aladia.
spaceId
: Space Id to which the member blongs.membersWithId
and membersWIthEmail
which are the invitees inside the platform and outside the platform.email
is required but if the user is inside the platform profileId
and the role
it's being assigned as an array of objects. The role can be space-member
, space-supervisor
and space-coordinator
.curl --location --request POST 'https://api.aladia.io/v2/spaces/6617c00ed3179eccf598d5fd/members/invite' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"membersWithId": [
{
"profileId": "661165cc1060d8cb9f73954f",
"role": "space-member"
}
],
"membersWithEmail": [
{
"email": "leulabay@gmail.com"
}
]
}'
[
{
"id": "67ad9c19727ca0f0f0d9d582",
"user": {
"id": "67ab1b37c33b8007d9d1009e",
"type": "profile"
},
"role": "space-member",
"spaceId": "67ac523f76ff0a90fd11f913",
"invited": true,
"invitedAt": "2025-02-13T07:19:38.996Z",
"licenses": [],
"email": "duressajemal3@gmail.com",
"expiresAt": "2025-02-15T07:19:38.000Z"
}
]