curl --request DELETE \
--url https://api.osaconnection.com/v1/adjusters/invitations/{osa_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyWithdraw a pending invitation
Withdraws a pending invitation. The adjuster can no longer accept it, and its status
becomes withdrawn. You can invite the same adjuster again later.
If the adjuster has already accepted, the request fails with 409 already_member.
If there is no pending invitation for that OSAID in your firm, it fails with
404 not_found.
curl --request DELETE \
--url https://api.osaconnection.com/v1/adjusters/invitations/{osa_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.osaconnection.com/v1/adjusters/invitations/{osa_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyAuthorizations
Send your API key as a bearer token: Authorization: Bearer osa_live_….
Keys are opaque; each belongs to exactly one firm and one purpose. Keys starting with
osa_test_ reach only test claims and test accounts. The scopes listed on each
operation are the permissions the key needs; GET /v1/me shows the ones your key has.
Path Parameters
The OSAID of the adjuster whose invitation you are withdrawing. An adjuster's OSAID: their OSA account id. It exists once the adjuster has signed in to the OSA app, and they can read it from the app.
1 - 128"Xk3pQ9vT2mN8rL5wB7yC1dF4gH6j"
Response
The invitation was withdrawn.
An adjuster in your firm, or an invitation you sent.
The adjuster's OSAID.
pending: invited, not yet answered. active: accepted and a member of your firm.
declined: the adjuster declined. expired: not answered within 7 days.
withdrawn: you withdrew the invitation.
pending, active, declined, expired, withdrawn true for one of your firm's OSA-created test accounts.
The adjuster's name; null until they accept.
The adjuster's email; null until they accept.
When the invitation was sent; null for members added without an invitation record.
When a pending invitation expires; null unless pending.
When the adjuster accepted or declined; null otherwise.
Who your firm said it was inviting; null when not sent. This is your firm's own
note, so after acceptance it can differ from the account's real name.
Who at your firm sent the invitation, as you sent it; null when not sent.
What the invitation is for, as you sent it; null when not sent.
Your firm's note on the invitation, as you sent it; null when not sent.