Accept Connection Request
curl --request PUT \
--url https://api.replyke.com/api/v6/:projectId/connections/:connectionId/acceptimport requests
url = "https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept', 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.replyke.com/api/v6/:projectId/connections/:connectionId/accept",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
]);
$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.replyke.com/api/v6/:projectId/connections/:connectionId/accept"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "<string>",
"respondedAt": "<string>"
}Connection Endpoints
Accept Connection Request
Accept a pending connection request
PUT
/
:projectId
/
connections
/
:connectionId
/
accept
Accept Connection Request
curl --request PUT \
--url https://api.replyke.com/api/v6/:projectId/connections/:connectionId/acceptimport requests
url = "https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept', 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.replyke.com/api/v6/:projectId/connections/:connectionId/accept",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
]);
$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.replyke.com/api/v6/:projectId/connections/:connectionId/accept"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "<string>",
"respondedAt": "<string>"
}Accept a specific pending connection request. Only the receiver of the connection request can accept it.
Path Parameters
string
required
ID of the connection to accept
Response
string
Unique connection identifier
string
Connection status (will be “accepted”)
string
Timestamp when the request was accepted in ISO 8601 format
Error Responses
Invalid Connection ID - 400 Bad Request
Invalid Connection ID - 400 Bad Request
{
"error": "Invalid connectionId",
"code": "connection/invalid-connection-id"
}
Unauthorized - 403 Forbidden
Unauthorized - 403 Forbidden
{
"error": "Only receiver can accept requests",
"code": "connection/unauthorized"
}
Connection Not Found - 404 Not Found
Connection Not Found - 404 Not Found
{
"error": "Pending connection not found",
"code": "connection/not-found"
}
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
{
"error": "Internal server error",
"code": "connection/server-error"
}
Notes
- Requires authentication
- Only the receiver of the connection request can accept it
- Updates connection status from “pending” to “accepted”
- Sets the respondedAt timestamp
- Creates a bidirectional relationship between the users
- Triggers a notification to the original requester
- Rate limiting: 50 requests per 5 minutes

