NeoSyntropyAPI

Training API / Samples

Submit a training sample

Store one project-scoped generation or reranking example with a stable sample ID.
POST/api/v1/training/samples

Request

Generation samples accept exactly one of prompt or messages and require an expected completion or expected tool calls. Rerank samples require state, action, and task_id.

cURLbash
curl -sS https://api.neosyntropy.com/api/v1/training/samples \
  -H "Authorization: Bearer $NEOSYNTROPY_API_KEY" \
  -H "X-NeoSyntropy-Project-ID: $PROJECT_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "node_id": "SupportReply",
    "sample_id": "ticket-1042-v1",
    "prompt": "Reply to ticket 1042",
    "expected_completion": "Reset instructions sent.",
    "split": "train"
  }'

Response

  • sample_id identifies the stored example.
  • duplicate is true when the same sample was already accepted.
  • Reusing a sample ID with different content returns 409.