Initial Configuration

Access Configuration

After activating the plugin, access the configuration:
  1. Go to LatePoint > API Settings in your WordPress dashboard
  2. You’ll see the API configuration panel
  3. If it’s your first time, the setup wizard will run

Configuration Panel

The main panel includes the following sections:

API Keys Management

Create a New API Key

1

Access Key Management

Go to LatePoint > API Settings > API Keys
2

Generate New Key

  1. Click “Generate New API Key”
  2. Assign a descriptive name (e.g., “iOS Mobile App”)
  3. Select environment (Test/Live)
3

Configure Permissions

Select necessary permissions:
  • Bookings: Read, Create, Update, Delete
  • Customers: Read, Create, Update
  • Agents: Read
  • Services: Read
  • Availability: Read
4

Save and Copy

  1. Click “Generate”
  2. Copy the API Key immediately
  3. Store it in a secure location

Permission Types

Security Configuration

Rate Limiting

Configure request limits to protect your server:
{
  "requests_per_minute": 60,
  "requests_per_hour": 3600,
  "requests_per_day": 86400
}

IP Restrictions

For additional security, you can restrict access by IP:
# Allow only these IPs
192.168.1.100
10.0.0.0/8
203.0.113.0/24

Database Configuration

Verify Tables

Verify all tables were created correctly:
-- Check API tables
SELECT table_name 
FROM information_schema.tables 
WHERE table_schema = 'your_database' 
AND table_name LIKE 'wp_latepoint_api_%';
Expected tables:
  • wp_latepoint_api_keys
  • wp_latepoint_api_logs
  • wp_latepoint_api_rate_limits
  • wp_latepoint_license_info

Final Verification

Checklist

  • ✅ API Keys generated and saved
  • ✅ Permissions configured correctly
  • ✅ Rate limiting established
  • ✅ Database tables created

Connectivity Test

Perform a final test:
curl -X GET "https://your-site.com/wp-json/latepoint-api/v1/status" \
  -H "X-API-Key: your_api_key_here"
Expected response:
{
  "status": "success",
  "message": "API is working correctly",
  "version": "1.0.0",
  "timestamp": "2024-01-15T10:30:00Z"
}

Next Steps

Support

If you need help with configuration:
  1. Documentation: wpdocs.latepoint.com
  2. Technical support: Through your LatePoint account
  3. Community: WordPress and LatePoint forums
  4. System Check: Use the integrated tool in API Settings > System Status