CRM Team Directory
List, search, and look up the employees (seats) in your Next Cap organization from your CRM. Owner / admin only.
Overview
The CRM Team Directory API lets you list, search, and look up the employees (team members / seats) in your Next Cap organization from your own CRM or internal tools. Use it to reconcile users between systems, show a picker of Next Cap agents inside your CRM UI, or audit seat usage.
team:invite permission, which in the default role map is restricted to owner and admin seats. Regular members, viewers, and channel-specific roles (live-chat agent, ticketing agent, etc.) receive 403 Forbidden.Authentication
Same as every other CRM API endpoint — a CRM key with the nextcap_ck_ prefix. Server-to-server only. See the CRM Integration page for how to obtain a key.
X-Api-Key: nextcap_ck_YOUR_KEY# orAuthorization: Bearer nextcap_ck_YOUR_KEY
Response Shape
Every member endpoint returns the same employee object. Sensitive fields (password hashes, OAuth identifiers, one-time-password flags) are never included.
{"id": "b1a2c3d4-5678-90ab-cdef-112233445566","email": "alice@acme.com","name": "Alice Chen","chat_display_name": "Alice","phone": "+1-555-0101","avatar_url": "https://...","role": "admin","role_id": "ddd...","role_name": "Support Admin","role_slug": "support-admin","role_color": "#f97316","role_is_system": false,"seat_type": "full","email_verified": true,"availability_status": "online","current_activity": "Viewing tickets","spoken_languages": ["en", "fa"],"last_active_at": "2026-04-19T14:05:11.000Z","last_login_at": "2026-04-19T09:12:44.000Z","disabled_at": null,"created_at": "2025-11-02T08:00:00.000Z","updated_at": "2026-04-19T14:05:11.000Z"}
Quick Start
curl "https://api.nextcap.ai/api/v1/external/crm/members?page=1&per_page=50" \-H "X-Api-Key: nextcap_ck_YOUR_KEY"
Endpoints
Lookup by Email — Example
# Email must be URL-encoded (@ → %40)curl "https://api.nextcap.ai/api/v1/external/crm/members/by-email/alice%40acme.com" \-H "X-Api-Key: nextcap_ck_YOUR_KEY"
Pagination Envelope
The GET /members list endpoint returns a standard envelope. Single-record endpoints return only data.
{"data": [ /* employee objects */ ],"meta": {"page": 1,"per_page": 50,"total": 137,"total_pages": 3}}
Permissions Reference
GET /membersteam:inviteList employees. Owners and admins in the default role map.
GET /members/:idteam:inviteFetch a single employee by ID.
GET /members/by-email/:emailteam:inviteFetch a single employee by email.
team:invite to read the directory (e.g. a reporting-only integration), create a custom role that includes team:invite in Settings → Roles and assign it to the CRM seat. Granting team:invite also lets that seat invite new members — scope it accordingly.