API Reference

Read the shortest path to authenticate, submit a request, and interpret a response.

Starter Scaffold

Start with the SCOP customer shape using use case, context, and metrics. Use the legacy vector example only for advanced direct-runtime integrations.

Quick start

A minimal server-side request example for EvaluatorDPT. Keep the key out of browser code and send it from a trusted backend.

$headers = @{
  "Ocp-Apim-Subscription-Key" = "<YOUR_SUBSCRIPTION_KEY>"
  "Content-Type" = "application/json"
}

$body = @{ texts = @("The World is Beautiful") } | ConvertTo-Json -Depth 6

Invoke-RestMethod -Method POST -Uri "https://api.smsquared.ai/v1/predict" -Headers $headers -Body $body