AI Sync

Authorization

Login

POSThttps://app.aisync.link/api/login
Login
curl --request POST \
  --url https://app.aisync.link/api/login \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "user@example.com",
  "password": "your-password"
}'
{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOi...",
  "message": "Login successful",
  "success": true
}

Login#

Sign in with the account email and password and get the Bearer token used by the other API Reference endpoints. No token is required to call this.

Content-Typestringheaderrequired

Must be set to application/json

emailstringbodyrequired

Account email address

passwordstringbodyrequired

Account password

curl --request POST \
  --url https://app.aisync.link/api/login \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "user@example.com",
    "password": "your-password"
  }'
successboolean

true when the email and password match an account

messagestring

Login successful on success

tokenstring

Bearer token. Send it on later requests as Authorization: Bearer {token}

A wrong email or password returns 404 with { "message": "invalid credentials." }. A missing email or password returns 422.