curl --request POST \
--url https://api.byzantine.fi/v1/submit/resend-invitation \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"invitationId": "550e8400-e29b-41d4-a716-446655440000"
}
'import requests
url = "https://api.byzantine.fi/v1/submit/resend-invitation"
payload = { "invitationId": "550e8400-e29b-41d4-a716-446655440000" }
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({invitationId: '550e8400-e29b-41d4-a716-446655440000'})
};
fetch('https://api.byzantine.fi/v1/submit/resend-invitation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"invitationId": "550e8400-e29b-41d4-a716-446655440000",
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "550e8400-e29b-41d4-a716-446655440000",
"invitedBy": "550e8400-e29b-41d4-a716-446655440000",
"status": "pending",
"invitedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}Resend an invitation
Invites again a user who rejected their invitation, let it expire, or has not answered yet. No passkey stamp is
needed: the user created in the Turnkey sub-organization by the first invite-users is reused. A new pending
invitation is created with a new 7-day window, on behalf of the same inviter; a still pending invitation is set
to cancelled.
No email is sent: the new invitation emits the account.member_invited webhook event, on which the integrator
notifies the invitee again.
Answers 409 when the user already accepted an invitation to the account, when the invitation is not their latest
one, when the original inviter is not a root user of the account anymore, or when the user was removed from the
account (cancelled): the latter goes through invite-users again.
Unlike invite-users, this call is not approved by a root passkey: the integrator decides who may trigger it.
curl --request POST \
--url https://api.byzantine.fi/v1/submit/resend-invitation \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"invitationId": "550e8400-e29b-41d4-a716-446655440000"
}
'import requests
url = "https://api.byzantine.fi/v1/submit/resend-invitation"
payload = { "invitationId": "550e8400-e29b-41d4-a716-446655440000" }
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({invitationId: '550e8400-e29b-41d4-a716-446655440000'})
};
fetch('https://api.byzantine.fi/v1/submit/resend-invitation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"invitationId": "550e8400-e29b-41d4-a716-446655440000",
"accountId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "550e8400-e29b-41d4-a716-446655440000",
"invitedBy": "550e8400-e29b-41d4-a716-446655440000",
"status": "pending",
"invitedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}Headers
Body
The invitation to send again
Response
Invitation sent again
The new invitation

