Skip to main content

Make your first API call

Test that the API is running by calling the health endpoint:
curl https://api-verifier-2.onrender.com/health
You should receive:
{
  "status": "ok",
  "timestamp": "2024-01-15T12:00:00.000Z",
  "service": "MT5 Monitor API"
}

Create an account

Register a new user account:
curl -X POST https://api-verifier-2.onrender.com/web-register \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "John",
    "lastName": "Doe",
    "email": "john@example.com",
    "password": "securepassword123"
  }'

Login and get your token

curl -X POST https://api-verifier-2.onrender.com/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "john@example.com",
    "password": "securepassword123"
  }'
The response includes your user info and sets an authentication cookie.

Fetch sentiment data

Get the latest market sentiment (no authentication required):
curl https://api-verifier-2.onrender.com/api/sentiment

Next steps

MT5 integration

Learn how to send MT5 trading data to the API

Blog management

Create and manage blog posts

Sentiment data

Work with market sentiment data

API reference

Explore all available endpoints