Reject an invitation
curl --request POST \
--url https://api.byzantine.fi/v1/submit/reject-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/reject-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/reject-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",
"status": "pending",
"rejectedAt": "2023-11-07T05:31:56Z"
}Add team member
Reject an invitation
Declines a pending invitation on behalf of the invitee. The invitation becomes rejected and can no longer be
accepted: init-otp, otp-auth and create-authenticators-otp answer 409 for this user on this account, and
their live OTP sessions on it are invalidated. Only a pending invitation within its 7-day window can be
rejected.
POST
/
v1
/
submit
/
reject-invitation
Reject an invitation
curl --request POST \
--url https://api.byzantine.fi/v1/submit/reject-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/reject-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/reject-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",
"status": "pending",
"rejectedAt": "2023-11-07T05:31:56Z"
}Headers
Body
application/json
The invitation to reject
Response
Invitation rejected
The rejected invitation

