Quick Start
Get up and running in three steps. Get your credentials, authenticate, and create your first appointment.
Step 1 — Get your API credentials
Contact your ALICE account manager to register an API application. You'll receive a ClientLogin (numeric ID) and ClientSecret.
Step 2 — Authenticate
Send your ClientLogin and ClientSecret to get a JWT token:
curl -X POST https://your-api-url/api/login \
-H "Content-Type: application/json" \
-d '{
"ClientLogin": 12345,
"ClientSecret": "your-api-secret"
}'
You'll receive a JWT token in the response:
{
"Token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Step 3 — Create your first appointment
Use the token in the Authorization header to create a visitor appointment:
curl -X POST https://your-api-url/api/appointments \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
-H "Content-Type: application/json" \
-d '{
"FirstName": "Jane",
"LastName": "Smith",
"Email": "jane.smith@example.com",
"EmployeeId": 100,
"DirectoryId": 10,
"ScheduledArrival": "2026-03-15T09:00:00"
}'
C# Example
The same flow using HttpClient:
using var client = new HttpClient();
// Step 1: Authenticate
var loginResponse = await client.PostAsJsonAsync(
"https://your-api-url/api/login",
new { ClientLogin = 12345, ClientSecret = "your-api-secret" });
var token = (await loginResponse.Content
.ReadFromJsonAsync<JsonElement>())
.GetProperty("Token").GetString();
// Step 2: Create an appointment
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", token);
var appointment = await client.PostAsJsonAsync(
"https://your-api-url/api/appointments",
new {
FirstName = "Jane",
LastName = "Smith",
Email = "jane.smith@example.com",
EmployeeId = 100,
DirectoryId = 10,
ScheduledArrival = "2026-03-15T09:00:00"
});
Replace your-api-url with your environment's base URL and use your real credentials. See Environments below.