Cygnal
Cygnal Anthropic Messages
Create Anthropic-compatible messages with Cygnal protection.
Docs: Guide | API Reference
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.grayswan.ai/cygnal/v1/messages"{
"id": "string",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "string"
}
],
"model": "string",
"stop_reason": "end_turn",
"usage": {
"input_tokens": 0,
"output_tokens": 0
}
}{
"error": true,
"message": "string",
"detail": "string",
"error_code": "string",
"details": {
"property1": "string",
"property2": "string"
}
}{
"error": true,
"message": "string",
"detail": "string",
"error_code": "string",
"details": {
"property1": "string",
"property2": "string"
}
}{
"error": true,
"message": "string",
"detail": "string",
"error_code": "string",
"details": {
"property1": "string",
"property2": "string"
}
}{
"error": true,
"message": "string",
"detail": "string",
"error_code": "string",
"details": {
"property1": "string",
"property2": "string"
}
}