PF
PeopleFlow
HomeFeaturesPricingDocsAboutContact
Sign InStart Free Trial
PF
PeopleFlow

Modern HR & Payroll software for Caribbean and emerging market businesses.

Product

  • Features
  • Pricing
  • Get Started
  • Documentation

Company

  • About Us
  • Contact
  • Blog
  • Careers

Legal

  • Privacy Policy
  • Terms of Service
  • Security

2024-2026 PeopleFlow HR Suite. All rights reserved.

Serving Caribbean & LATAM businesses
Back to Documentation

API Quick Start

Developer

Get started with the PeopleFlow REST API in minutes

1. Get Your API Key
To start using the PeopleFlow API, you'll need an API key: 1. Log in to your PeopleFlow dashboard 2. Navigate to Settings → API Settings 3. Click "Generate API Key" 4. Copy and securely store your API key ⚠️ Keep your API key secret. Never expose it in client-side code or public repositories.
2. Make Your First Request
Test your API key with a simple GET request: curl -X GET "https://peopleflowhr.net/api/v1/employees" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" A successful response returns a JSON array of employees: { "data": [...], "meta": { "total": 42, "page": 1, "per_page": 25 } }
3. Authentication
The PeopleFlow API uses Bearer token authentication: • Include your API key in the Authorization header • All requests must use HTTPS • Tokens can be scoped to specific permissions (read, write, admin) • Rotate your keys periodically for security Example header: Authorization: Bearer pf_live_abc123...
4. Rate Limiting
API requests are rate-limited to ensure fair usage: • Standard Plan: 100 requests per minute • Professional Plan: 500 requests per minute • Enterprise Plan: Custom limits Rate limit headers are included in every response: X-RateLimit-Limit: 100 X-RateLimit-Remaining: 95 X-RateLimit-Reset: 1640000000 When rate-limited, you'll receive a 429 Too Many Requests response.
5. Common Endpoints
Here are the most commonly used API endpoints: GET /api/v1/employees — List all employees POST /api/v1/employees — Create a new employee GET /api/v1/employees/:id — Get employee details PUT /api/v1/employees/:id — Update an employee DELETE /api/v1/employees/:id — Remove an employee GET /api/v1/time/entries — List time entries POST /api/v1/time/clock-in — Clock in an employee POST /api/v1/time/clock-out — Clock out an employee GET /api/v1/leave/requests — List leave requests POST /api/v1/leave/requests — Submit a leave request GET /api/v1/payroll/runs — List payroll runs See the full API Reference for all available endpoints.
6. Error Handling
The API uses standard HTTP status codes: 200 — Success 201 — Created 400 — Bad Request (check your parameters) 401 — Unauthorized (invalid or missing API key) 403 — Forbidden (insufficient permissions) 404 — Not Found 422 — Validation Error 429 — Rate Limited 500 — Internal Server Error Error responses include a message and error code: { "error": { "code": "VALIDATION_ERROR", "message": "Email is required", "details": [...] } }

Related Documentation

Full API Reference
Complete endpoint documentation with examples
Security & Compliance
API security best practices
Settings & Configuration
Manage API keys and integrations