Authentication
Secure OAuth 2.0 authentication with JWT tokens and refresh token support
Build powerful integrations with our comprehensive API platform
Want to Build Your Own Login Screen?
If you want to implement a custom login interface instead of using the Engagifii default authentication page, check out our Custom Login Integration Guide.
#!/bin/bash
# Variables
EMAIL="your-email@example.com"
PASSWORD="your-password"
IDENTITY_API="https://engagifii-sandbox-identityservices.azurewebsites.net/api/v1"
CRM_API="https://engagifii-sandbox-crm.azurewebsites.net/api/v1"
# Step 1: Login and get workspaces
echo "Step 1: Logging in..."
LOGIN_RESPONSE=$(curl -s -X POST "${IDENTITY_API}/Services/Authrize" \
-H "Content-Type: application/json" \
-d "{\"userName\":\"${EMAIL}\",\"password\":\"${PASSWORD}\"}")
echo "$LOGIN_RESPONSE" | jq '.'
# Extract first workspace tenant code
TENANT_CODE=$(echo "$LOGIN_RESPONSE" | jq -r '.workSpaceList[0].tenantCode')
echo "\nSelected workspace: $TENANT_CODE"
# Step 2: Get access token for workspace
echo "\nStep 2: Getting access token for workspace..."
TOKEN_RESPONSE=$(curl -s -X POST "${IDENTITY_API}/Services/AuthorizeUserForWorkSpace" \
-H "Content-Type: application/json" \
-d "{\"tenantCode\":\"${TENANT_CODE}\",\"userName\":\"${EMAIL}\",\"password\":\"${PASSWORD}\"}")
ACCESS_TOKEN=$(echo "$TOKEN_RESPONSE" | jq -r '.accessToken')
echo "Access token obtained: ${ACCESS_TOKEN:0:50}..."
# Step 3: Make API call
echo "\nStep 3: Fetching organizations..."
curl -s -X GET "${CRM_API}/Organization/OrganizationListLite" \
-H "accept: application/json" \
-H "tenant-code: ${TENANT_CODE}" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" | jq '.'
echo "\nStep 4: Fetching people list..."
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
https://engagifii-sandbox-crm.azurewebsites.net/v1/people | jq '.'Navigate through our comprehensive documentation to discover all available endpoints and features.
Need help? We're here for you: