Oooh got it this is clear now - yea, this I’m able to reproduce now.
I’m able to send regular invites to brand new emails from the API with a post request:
I get the following response as expected:
REQUEST: https://example.dev/invites.json?email=example%2Bsomething@hey.com
ACTUAL RESPONSE
{
"id": 7,
"invite_key": "inviteKEY",
"link": "https://example.dev/invites/inviteKEY",
"email": "example+something@hey.com",
"emailed": true,
"custom_message": null,
"created_at": "2021-04-26T23:57:08.602Z",
"updated_at": "2021-04-26T23:57:08.602Z",
"expires_at": "2021-05-26T23:57:08.594Z",
"expired": false,
"topics": [],
"groups": []
}
- then I log in elsewhere and accept the invite for that user.
- then i log back in as the admin & delete the user with email: example+something@hey.com
- next I re-send the same POST request to the API to invite that user again
REQUEST: https://example.dev/invites.json?email=example%2Bsomething@hey.com
EXPECTED RESPONSE
{
"id": 8,
"invite_key": "newinviteKEY",
"link": "https://example.dev/invites/newinviteKEY",
"email": "example+something@hey.com",
"emailed": true,
"custom_message": null,
"created_at": "2021-04-26T23:59:08.602Z",
"updated_at": "2021-04-26T23:59:08.602Z",
"expires_at": "2021-05-26T23:59:08.594Z",
"expired": false,
"topics": [],
"groups": []
}
ACTUAL RESPONSE
{
"failed": "FAILED"
}