Get account
curl --request GET \
--url https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}import requests
url = "https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}', 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://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c7de2c5-617c-4c1b-9c6f-b6e659b08d92",
"owner_id": "7b5740db-28bb-4e2c-89b0-bd4f19a37b10",
"service": "linkedin",
"metadata": {
"username": "simeon@example.com",
"name": "Simeon",
"status": "Healthy",
"tracking_preference": "all_conversations"
}
}
}{
"error": {
"code": "not_found",
"message": "Requested resource was not found."
}
}Accounts
Get account
Returns one account owned by the authenticated workspace, including its platform-specific metadata.
GET
/
api
/
v1
/
platforms
/
{platform}
/
accounts
/
{accountId}
Get account
curl --request GET \
--url https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}import requests
url = "https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}', 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://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://optareach.com/api/v1/platforms/{platform}/accounts/{accountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c7de2c5-617c-4c1b-9c6f-b6e659b08d92",
"owner_id": "7b5740db-28bb-4e2c-89b0-bd4f19a37b10",
"service": "linkedin",
"metadata": {
"username": "simeon@example.com",
"name": "Simeon",
"status": "Healthy",
"tracking_preference": "all_conversations"
}
}
}{
"error": {
"code": "not_found",
"message": "Requested resource was not found."
}
}