Complete REST API documentation for integrating LeadLink CRM into your applications
https://leadlinkcrm.net/apiGet started with our REST API in minutes. All API requests require authentication using a JWT token or API key.
Include your JWT token in the Authorization header of every request:
Authorization: Bearer YOUR_JWT_TOKENGet your JWT token by logging in via POST /auth/login or use an API key from your company settings.
curl -X POST https://leadlinkcrm.net/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "your-password",
"tenantId": "your-tenant-id"
}'{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "user_123",
"email": "user@example.com",
"name": "John Doe",
"role": "Admin",
"tenantId": "tenant_123"
},
"firebaseAuthToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}curl -X GET https://leadlinkcrm.net/api/users \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json"/auth/loginAuthenticate a user and receive a JWT token
Request Body:
{
"email": "string",
"password": "string",
"tenantId": "string (optional)"
}Response:
{
"token": "JWT token",
"user": "User object",
"firebaseAuthToken": "Firebase custom token (optional)"
}/auth/registerRegister a new user account
Request Body:
{
"email": "string",
"password": "string",
"name": "string",
"tenantId": "string"
}/auth/refresh-tokenRefresh an expired JWT token
Request Body:
{
"refreshToken": "string"
}Receive real-time notifications about events in your company. Configure webhooks in your company settings or via the API.
Get your API key and start building integrations today. All plans include API access.