๐ API Information
Version: 1.0.0
Framework: Slim 4 + Eloquent ORM
Authentication: OAuth2 Bearer Token
Database: MySQL
๐ Available Endpoints
POST /api/v1/tests
Accepts an array of test parameters with names, values and a common date.
Authentication: Required (Bearer Token)
๐ OAuth2 Authentication
First, get an access token:
curl -X POST /oauth/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=beheal-client&client_secret=secret&scope=tests"
๐ Example API Request
curl -X POST /api/v1/tests \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{
"date": "2025-06-08",
"parameters": [
{
"testName": "username",
"testValue": "john_doe"
},
{
"testName": "email",
"testValue": "john@example.com"
}
]
}'
โ Example Response
{
"status": "success",
"batch_id": "batch_675d1234567890abc",
"client_id": "beheal-client",
"scopes": ["tests"]
}
๐งช Test the API
Use these tools to test the API endpoints:
๐ User Login Interactive Test Form API Documentation Code Examples BeHeal Assistant