Skip to main content
POST
/
api
/
run
/
matching
/
analytics
/
optimizeMatchingWeights
optimizeMatchingWeights
curl --request POST \
  --url https://connvo-dev.convex.cloud/api/run/matching/analytics/optimizeMatchingWeights \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "args": {
    "minSamples": 123
  }
}'
{
  "status": "success",
  "errorMessage": "<string>",
  "errorData": {},
  "value": {
    "improvement": 123,
    "optimizedWeights": {
      "experienceGap": 123,
      "industryMatch": 123,
      "interestOverlap": 123,
      "languageOverlap": 123,
      "orgConstraintMatch": 123,
      "roleComplementarity": 123,
      "timezoneCompatibility": 123,
      "vectorSimilarity": 123
    },
    "sampleSize": 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