curl --request DELETE \
--url https://api.osaconnection.com/v1/members/invitations/{osa_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.osaconnection.com/v1/members/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/members/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/members/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/members/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/members/invitations/{osa_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.osaconnection.com/v1/members/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_body{
"osa_id": "Hp2sK8dL4fJ6gA1zX9cV3bN7mQ5w",
"status": "withdrawn",
"roles": [
"adjuster"
],
"test": false,
"name": null,
"email": null,
"invited_at": "2026-09-28T13:02:45Z",
"expires_at": null,
"responded_at": null,
"invited_as": null,
"invited_by": null,
"purpose": null,
"note": null
}Withdraw a pending invitation
Withdraws a pending invitation. The person can no longer accept it, and its status
becomes withdrawn. You can invite the same person again later.
If the person has already accepted, the request fails with 409 already_member.
If there is no pending invitation for that OSAID in your organisation, it fails with
404 not_found.
curl --request DELETE \
--url https://api.osaconnection.com/v1/members/invitations/{osa_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.osaconnection.com/v1/members/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/members/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/members/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/members/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/members/invitations/{osa_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.osaconnection.com/v1/members/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_body{
"osa_id": "Hp2sK8dL4fJ6gA1zX9cV3bN7mQ5w",
"status": "withdrawn",
"roles": [
"adjuster"
],
"test": false,
"name": null,
"email": null,
"invited_at": "2026-09-28T13:02:45Z",
"expires_at": null,
"responded_at": null,
"invited_as": null,
"invited_by": null,
"purpose": null,
"note": null
}Authorizations
Send your API key as a bearer token: Authorization: Bearer osa_live_….
Keys are opaque; each belongs to exactly one partner. Keys starting with osa_test_
reach only test claims and test accounts. The scopes listed on each operation are the
permissions the key needs. A key's permissions are set when it is issued and can be
changed by OSA on request, never beyond what your plan and add-ons include.
GET /v1/me always shows the current set.
Path Parameters
Response
The invitation was withdrawn.
A member of your organisation, or an invitation you sent.
pending: invited, not yet answered. active: accepted and a member of your
organisation. declined: the person declined. expired: not answered within 7 days.
withdrawn: you withdrew the invitation. Open list: new values may be added; treat
an unknown value as an unknown state.
pending, active, declined, expired, withdrawn The role kinds the person holds in your organisation; empty when none of their roles has a kind. These are OSA's role kinds, not your own titles for the roles.
A role kind: adjuster today. Open list: new values may be added; treat an
unknown value as a role you don't specifically handle.
adjuster