Skip to main content
POST
/
v2
/
people
/
sort
Sort People by Connection Strength
curl --request POST \
  --url https://api.village.do/v2/people/sort \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "people": [
    "https://linkedin.com/in/johndoe",
    "https://linkedin.com/in/janedoe"
  ]
}
'
{
  "data": {
    "sorted": [
      {
        "score": 123,
        "score_label": "<string>",
        "linkedin_url": "<string>",
        "url": "<string>"
      }
    ],
    "errors": [
      {
        "url": "<string>",
        "error": "<string>"
      }
    ]
  },
  "metadata": {
    "request_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT token obtained from authentication endpoint

Body

application/json

List of person URLs to sort by connection strength

people
string[]
required

Array of LinkedIn person profile URLs

Minimum array length: 1
Minimum string length: 1
Example:
[
"https://linkedin.com/in/johndoe",
"https://linkedin.com/in/janedoe"
]

Response

People sorted successfully

data
object
required

Response containing sorted people and any URL validation errors

metadata
object
required