Retrieve account information
curl --request GET \
--url https://app.pipecorn.com/api/v2/account \
--header 'X-API-KEY: <api-key>'import requests
url = "https://app.pipecorn.com/api/v2/account"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://app.pipecorn.com/api/v2/account', 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://app.pipecorn.com/api/v2/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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://app.pipecorn.com/api/v2/account"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.pipecorn.com/api/v2/account")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"plan": "scale",
"email": "jane@acme.com"
},
"integrations": {
"linkedin_session_valid": true,
"sales_navigator_session_valid": true
},
"workspace": {
"members": [
{
"email": "reza@acme.com",
"integrations": {
"linkedin_session_valid": true,
"sales_navigator_session_valid": false
},
"linkedin_rate_limited": false
}
]
}
}Miscellaneous
Account Info
Get your plan, the email address behind your API key, and your integration session status
GET
/
account
Retrieve account information
curl --request GET \
--url https://app.pipecorn.com/api/v2/account \
--header 'X-API-KEY: <api-key>'import requests
url = "https://app.pipecorn.com/api/v2/account"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://app.pipecorn.com/api/v2/account', 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://app.pipecorn.com/api/v2/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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://app.pipecorn.com/api/v2/account"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.pipecorn.com/api/v2/account")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"plan": "scale",
"email": "jane@acme.com"
},
"integrations": {
"linkedin_session_valid": true,
"sales_navigator_session_valid": true
},
"workspace": {
"members": [
{
"email": "reza@acme.com",
"integrations": {
"linkedin_session_valid": true,
"sales_navigator_session_valid": false
},
"linkedin_rate_limited": false
}
]
}
}Example response
{
"account": {
"plan": "scale",
"email": "jane@acme.com"
},
"integrations": {
"linkedin_session_valid": true,
"sales_navigator_session_valid": true
}
}
account.email is the email address of the user the API key belongs to - use it
to confirm which Pipecorn account a key is authenticating as.
With a workspace key
A workspace key rotates across the LinkedIn accounts of your workspace members, soaccount.email and integrations describe the member that served this one
request. The response adds workspace.members, with the session status of
every member in the rotation:
{
"account": {
"plan": "scale",
"email": "jane@acme.com"
},
"integrations": {
"linkedin_session_valid": true,
"sales_navigator_session_valid": true
},
"workspace": {
"members": [
{
"email": "jane@acme.com",
"integrations": {
"linkedin_session_valid": true,
"sales_navigator_session_valid": true
},
"linkedin_rate_limited": false
},
{
"email": "reza@acme.com",
"integrations": {
"linkedin_session_valid": true,
"sales_navigator_session_valid": false
},
"linkedin_rate_limited": true
}
]
}
}
integrations.linkedin_session_validandintegrations.sales_navigator_session_validarefalseonce that member’s session has expired. The member reconnects LinkedIn from the Pipecorn app to fix it.linkedin_rate_limitedistruewhen LinkedIn rate limited that member in the last 12 hours. Workspace-key requests skip them until then, as long as another member is available.
Authorizations
Your API key
Was this page helpful?