API Reference
POSTlogin

Login

Login is a POST request to https://api.sharkcluster.com/login in the Authentication section of the SharkCluster API. Authenticates a user and returns a session token. It takes 3 parameters, 2 required (email and password).

Request URL

POSThttps://api.sharkcluster.com/login

How do you call Login?

  1. 1Send a POST request to https://api.sharkcluster.com/login.
  2. 2Include the required parameters: email and password.
  3. 3Add the optional parameter only if you need it: captchaToken.

Request parameters

ParameterTypeDescription
email
Required
stringRegistered email address.
password
Required
stringAccount password.
captchaTokenstringReCAPTCHA token for security verification.

What does Login return?

A successful call returns a JSON object with the fields result, message and data. Check that result is true in the body: like many SharkCluster endpoints, a failure can come back with HTTP 200 and result: false. A failed call explains the problem in the body, for example "User does not exist".

Request sample

const axios = require('axios');

const data = {
  email: "[email protected]",
  password: "YOUR_PASSWORD"
};

axios.post('https://api.sharkcluster.com/login', data)
  .then(res => console.log(res.data))
  .catch(err => console.error(err));

Response

{
    "result": true,
    "message": "Login successful",
    "data": [
        {
            "user": {
                "id": "00000000-0000-4000-8000-000000000002",
                "affilateId": "576324",
                "name": "John Doe",
                "email": "[email protected]",
                "mobile": null,
                "password": "<redacted>",
                "profile_img": null,
                "twoFaSecret": null,
                "twoFaEnabled": false,
                "provider": null,
                "provider_id": null,
                "referredBy": null,
                "commissionRate": 0,
                "totalEarnings": 0,
                "interestedCategories": [],
                "chatConnectionStatus": true,
                "currentRecipient": null,
                "role": "user",
                "pendingEarnings": 0,
                "referrals": 0,
                "products": [],
                "status": "active",
                "accountInfo": null,
                "clicks": 0,
                "affiliateLink": null,
                "conversions": 0,
                "paymentHistory": [],
                "email_verification": true,
                "confirm_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjAwMDAwMDAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDAwMSJ9.example-signature",
                "supportCategories": [],
                "assignedTickets": [],
                "openTickets": 0,
                "in_progressTickets": 0,
                "resolvedTickets": 0,
                "closedTickets": 0,
                "reopenedTickets": 0,
                "credit_balance": null,
                "account_suspended": false,
                "credit_expiry_date": null,
                "billing_details_added": false,
                "razorpay_customer_id": "cust_SViqJbl0IISTGq",
                "card_verified": true,
                "card_verified_at": "2026-03-26T04:30:27.886Z",
                "card_verification_payment_id": "pay_SVisQiBW0sAnF7",
                "card_verification_details": {
                    "email": "[email protected]",
                    "amount": 100,
                    "method": "upi",
                    "status": "captured",
                    "contact": "+918160880977",
                    "currency": "INR",
                    "verified_at": "2026-03-26T04:30:27.886Z",
                    "refund_status": "pending",
                    "card_reference": null,
                    "razorpay_order_id": "order_SViqJtXLHH16Pr",
                    "razorpay_payment_id": "pay_SVisQiBW0sAnF7"
                },
                "createdAt": "2025-02-18T09:57:28.869Z",
                "updatedAt": "2026-03-26T04:30:27.889Z",
                "_id": "00000000-0000-4000-8000-000000000002"
            },
            "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjAwMDAwMDAwLTAwMDAtNDAwMC04MDAwLTAwMDAwMDAwMDAwMSJ9.example-signature"
        }
    ]
}

Related Authentication endpoints

Stuck on an integration?

Raise a ticket from the panel with the endpoint and the response you got back — it reaches an engineer with your server already attached.

Contact us