POST
/
redteam
/
model
/
model-health
curl --request POST \
  --url https://api.enkryptai.com/redteam/model/model-health \
  --header 'X-Enkrypt-Model: <x-enkrypt-model>' \
  --header 'X-Enkrypt-Model-Version: <x-enkrypt-model-version>' \
  --header 'apikey: <api-key>'
{
  "status": "healthy",
  "message": "Model health check completed successfully",
  "data": {
    "query": "What is the capital of India?",
    "response": "The capital of India is New Delhi."
  },
  "error": "Error while checking model health"
}

Authorizations

apikey
string
header
required

Headers

X-Enkrypt-Model
string
required

The model saved name. E.g. Test Model

Example:

"Test Model"

X-Enkrypt-Model-Version
string
required

The model version. Default is 'v1'

Example:

"v1"

Response

200 - application/json
Successful Response
status
enum<string>
required
Available options:
healthy,
unhealthy
message
string
Example:

"Model health check completed successfully"

data
object
error
string
Example:

"Error while checking model health"