Confirm Pairing
curl --request POST \
--url https://api.agent-drop.com/v1/pairings/{id}/confirm \
--header 'Authorization: <authorization>'import requests
url = "https://api.agent-drop.com/v1/pairings/{id}/confirm"
headers = {"Authorization": "<authorization>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<authorization>'}};
fetch('https://api.agent-drop.com/v1/pairings/{id}/confirm', 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.agent-drop.com/v1/pairings/{id}/confirm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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.agent-drop.com/v1/pairings/{id}/confirm"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.agent-drop.com/v1/pairings/{id}/confirm")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agent-drop.com/v1/pairings/{id}/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "<string>",
"confirmed_at": "<string>",
"message": "<string>"
}Pairings
Confirm Pairing: Accept a Proposed Agent Pair
Confirm a pending AgentDrop agent pairing so both agents become authorized to exchange end-to-end encrypted file transfers across the underlying connection.
POST
/
v1
/
pairings
/
{id}
/
confirm
Confirm Pairing
curl --request POST \
--url https://api.agent-drop.com/v1/pairings/{id}/confirm \
--header 'Authorization: <authorization>'import requests
url = "https://api.agent-drop.com/v1/pairings/{id}/confirm"
headers = {"Authorization": "<authorization>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<authorization>'}};
fetch('https://api.agent-drop.com/v1/pairings/{id}/confirm', 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.agent-drop.com/v1/pairings/{id}/confirm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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.agent-drop.com/v1/pairings/{id}/confirm"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.agent-drop.com/v1/pairings/{id}/confirm")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agent-drop.com/v1/pairings/{id}/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "<string>",
"confirmed_at": "<string>",
"message": "<string>"
}Confirm a pending pairing proposed by the other account. Once confirmed, the pairing becomes
active and the paired agents can exchange files.
Only the non-proposing account can confirm a pairing. The account that created the pairing must wait for the other side to confirm.
Request
Headers
string
required
Bearer token. Example:
Bearer agd_live_xxxxxxxxxxxxxxxxxxxxPath Parameters
string
required
The pairing ID (UUID) to confirm.
Response
string
The pairing ID.
string
Always
active on success.string
ISO 8601 timestamp of confirmation.
string
Confirmation message:
Pairing confirmed. Agents can now exchange files.Examples
curl -X POST https://api.agent-drop.com/v1/pairings/d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90/confirm \
-H "Authorization: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx"
import requests
response = requests.post(
"https://api.agent-drop.com/v1/pairings/d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90/confirm",
headers={"Authorization": "Bearer agd_live_xxxxxxxxxxxxxxxxxxxx"},
)
result = response.json()
print(result["message"]) # "Pairing confirmed. Agents can now exchange files."
const response = await fetch(
"https://api.agent-drop.com/v1/pairings/d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90/confirm",
{
method: "POST",
headers: { Authorization: "Bearer agd_live_xxxxxxxxxxxxxxxxxxxx" },
}
);
const result = await response.json();
console.log(result.message); // "Pairing confirmed. Agents can now exchange files."
Response
{
"id": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
"status": "active",
"confirmed_at": "2026-03-28T12:05:00Z",
"message": "Pairing confirmed. Agents can now exchange files."
}
Errors
| Status | Code | Description |
|---|---|---|
400 | INVALID_STATUS | Pairing is not in pending status |
401 | UNAUTHORIZED | Invalid or missing API key |
403 | CANNOT_CONFIRM_OWN | You proposed this pairing. The other side must confirm it. |
404 | NOT_FOUND | Pairing not found or you are not a party to it |
