Skip to main content
POST
/
api
/
run
/
matching
/
index
/
calculateCompatibilityScore
calculateCompatibilityScore
curl --request POST \
  --url https://connvo-dev.convex.cloud/api/run/matching/index/calculateCompatibilityScore \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "args": {
    "customWeights": {
      "experienceGap": 123,
      "industryMatch": 123,
      "interestOverlap": 123,
      "languageOverlap": 123,
      "orgConstraintMatch": 123,
      "roleComplementarity": 123,
      "timezoneCompatibility": 123,
      "vectorSimilarity": 123
    },
    "user1Constraints": {
      "interests": [
        "<string>"
      ],
      "orgConstraints": "<string>",
      "roles": [
        "<string>"
      ]
    },
    "user1Id": "<string>",
    "user2Constraints": {
      "interests": [
        "<string>"
      ],
      "orgConstraints": "<string>",
      "roles": [
        "<string>"
      ]
    },
    "user2Id": "<string>"
  }
}'
{
  "status": "success",
  "errorMessage": "<string>",
  "errorData": {},
  "value": {
    "explanation": [
      "<string>"
    ],
    "features": {
      "experienceGap": 123,
      "industryMatch": 123,
      "interestOverlap": 123,
      "languageOverlap": 123,
      "orgConstraintMatch": 123,
      "roleComplementarity": 123,
      "timezoneCompatibility": 123,
      "vectorSimilarity": 123
    },
    "score": 123
  }
}

Authorizations

Authorization
string
header
required

Standard user authentication token issued via WorkOS. Provide as Authorization: Bearer <user-token>.

Body

application/json
args
object
required

Response

Convex executed your request and returned a result

status
enum<string>
required
Available options:
success,
error
errorMessage
string
errorData
object
value
object