Methods
Users
Retrieve a full profile from a profile id or a public LinkedIn URL.
Resolve a person to a full profile, using a connected account's session.
Retrieve a profile
GET /v1/users/{identifier}?account_id={account_id}
The identifier is either a profile id returned by search or a public identifier from a LinkedIn URL (the in/<identifier> slug).
| Query param | Type | Required | Description |
|---|---|---|---|
account_id |
string | yes | The account whose session resolves the profile. |
curl "https://api.correctinbox.com/v1/users/priya-menon?account_id=acc_8f21c0" \
-H "X-API-KEY: $CORRECTINBOX_API_KEY"
const user = await (
await fetch(
"https://api.correctinbox.com/v1/users/priya-menon?account_id=acc_8f21c0",
{ headers: { "X-API-KEY": process.env.CORRECTINBOX_API_KEY } },
)
).json();
user = requests.get(
"https://api.correctinbox.com/v1/users/priya-menon",
headers={"X-API-KEY": os.environ["CORRECTINBOX_API_KEY"]},
params={"account_id": "acc_8f21c0"},
).json()
Response
{
"id": "ACoAAB1x...",
"name": "Priya Menon",
"headline": "Head of Sales at Northwind",
"location": "Bengaluru, India",
"profile_url": "https://www.linkedin.com/in/priya-menon/"
}
Use the returned id to send a connection invitation or add the person to a campaign.