GET
/
wp-json
/
latepoint-api
/
v1
/
agents

Query Parameters

status
string
Filter by agent status. Available values: active, disabled
Search by first name, last name, or email address
email
string
Filter by exact email address
phone
string
Filter by phone number (partial match supported)
location_id
integer
Filter agents by location ID (shows only agents available at this location)
service_id
integer
Filter agents by service ID (shows only agents who provide this service)
created_after
string
Filter agents created after this date (YYYY-MM-DD format)
created_before
string
Filter agents created before this date (YYYY-MM-DD format)
include
string
Include related data. Available values: services
page
integer
default:"1"
Page number for pagination
per_page
integer
default:"10"
Number of results per page (1-100)
order_by
string
default:"first_name"
Sort field. Available values: id, first_name, last_name, email, created_at, updated_at, status
order
string
default:"asc"
Sort direction. Available values: asc, desc

Basic Request

GET /wp-json/latepoint-api/v1/agents
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Advanced Filtering Examples

Filter by Status

GET /wp-json/latepoint-api/v1/agents?status=active
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Search by Name or Email

GET /wp-json/latepoint-api/v1/agents?search=john
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Include Services Data

GET /wp-json/latepoint-api/v1/agents?include=services&per_page=5
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Date Range Filter

GET /wp-json/latepoint-api/v1/agents?created_after=2024-01-01&created_before=2024-12-31
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Pagination and Sorting

GET /wp-json/latepoint-api/v1/agents?page=2&per_page=25&order_by=last_name&order=desc
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Filter by Location

GET /wp-json/latepoint-api/v1/agents?location_id=2
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Filter by Service

GET /wp-json/latepoint-api/v1/agents?service_id=1
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Combined Location and Service Filter

GET /wp-json/latepoint-api/v1/agents?location_id=2&service_id=1&status=active
X-API-Key: lp_n1k6BVf3h7JRyjXkWMSoXi0BBZYRaOLL4QohDPQJ

Response

{
  "success": true,
  "data": [
    {
      "id": "2",
      "first_name": "Joselo",
      "last_name": "Jose",
      "display_name": "",
      "email": "dadadd",
      "phone": "",
      "bio": "",
      "features": "[{\"value\":\"\",\"label\":\"\"},{\"value\":\"\",\"label\":\"\"}]",
      "status": "active",
      "created_at": "2025-01-20 10:30:00",
      "updated_at": "2025-01-20 10:30:00",
      "services": [
        {
          "id": "1",
          "name": "Consultation",
          "is_custom_hours": false,
          "is_custom_price": false,
          "is_custom_duration": false
        }
      ]
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 10,
    "total": 1,
    "total_pages": 1
  }
}