Health Icon

BeHeal API

Parameter Array API for Health Data Collection

๐ŸŸข Online

๐Ÿ“‹ 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