curl --request POST \
--url https://app2.freyavoice.ai/api/v2/workspaces/invitations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"role": "member",
"message": "<string>"
}
'{
"success": true,
"data": {
"message": "<string>",
"result": {
"invitation": {
"id": "<string>",
"workspaceId": "<string>",
"inviterId": "<string>",
"email": "[email protected]",
"role": "<string>",
"status": "<string>",
"token": "<string>",
"expiresAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"acceptedAt": "<string>",
"inviterEmail": "<string>",
"inviterDisplayName": "<string>"
},
"emailWarning": "<string>"
}
}
}Sends an email invitation to join the workspace. The invitee can accept within 7 days.
curl --request POST \
--url https://app2.freyavoice.ai/api/v2/workspaces/invitations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"role": "member",
"message": "<string>"
}
'{
"success": true,
"data": {
"message": "<string>",
"result": {
"invitation": {
"id": "<string>",
"workspaceId": "<string>",
"inviterId": "<string>",
"email": "[email protected]",
"role": "<string>",
"status": "<string>",
"token": "<string>",
"expiresAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"acceptedAt": "<string>",
"inviterEmail": "<string>",
"inviterDisplayName": "<string>"
},
"emailWarning": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.