Validation

Overview

Our validation endpoint allows you to test and verify your conversation data format before deploying to production. This helps ensure your integration will work smoothly when you go live.

Using the API

The validation endpoint is available without authentication, making it easy to test your implementation. Here’s how to use it:

# Send request
curl -X POST "https://data.acro.so/validate" \
  -H "Content-Type: application/json" \
  -d '{
    "conversationId": "123e4567-e89b-12d3-a456-426614174000",
    "source": "mywebsite.com",
    "customerId": "cust_123",
    "start": "2024-09-11T16:55:49.789Z",
    "lines": [
      {
        "role": "AI_ASSISTANT",
        "content": "Hello! How can I help you today?",
        "timestamp": "2024-09-11T16:55:49.789Z"
      },
      {
        "role": "USER",
        "content": "I need help with my order",
        "timestamp": "2024-09-11T16:55:50.789Z"
      }
    ]
  }'

Response Types

Success Response

{
    "validated": true,
}

Error Response

{
    "error": {
      "statusCode": 400,
      "message": "An error explaining what the issue is with the object sent"
    }
}

Need help? Join our Discord community or Schedule a meeting with us.