API REFERENCE

Contacts API

A contact is a person at one of your clients — the human you email, call, and open tickets for. Use this API to create and update contacts, tie them to a client, and pull the list out for search or export.

Create a contact

full_name and email are required. Set client_id to attach the person to a company, and use phone_numbers and additional_email_addresses for the rest of their contact details. Use locations to link the contact to one or more of the client's locations: each element is { "location_id": "…", "is_primary": true }, at most one may be primary, and a location that belongs to another client is rejected with 400. Responses return locations with the primary first, and the primary location drives ticket location auto-fill. The optional work_arrangement field accepts "on_site", "hybrid", or "remote".

curl
curl https://algapsa.com/api/v1/contacts \
  -H "X-API-Key: $ALGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "full_name": "Priya Menon",
    "email": "priya@riversidedental.example",
    "client_id": "cl_3f9a2c",
    "role": "Office Manager",
    "locations": [{ "location_id": "loc_7a1b4d", "is_primary": true }],
    "work_arrangement": "hybrid"
  }'

Find and export

GET /api/v1/contacts lists and filters (including by location_id and work_arrangement), GET /api/v1/contacts/search runs a text query, and GET /api/v1/contacts/export pulls the set for a download; the CSV includes Work Arrangement, Locations, and Primary Location columns. GET /api/v1/contacts/stats returns aggregate counts. To list only the people at a single client, the Clients API exposes GET /api/v1/clients/{id}/contacts.

Endpoints

Every endpoint links through to its full parameters, request and response schemas, and code samples.

GET/api/v1/contactsAlgaPSAAlgaDeskList contactsPOST/api/v1/contactsAlgaPSAAlgaDeskCreate contactGET/api/v1/contacts/{id}AlgaPSAAlgaDeskGet contactPUT/api/v1/contacts/{id}AlgaPSAAlgaDeskUpdate contactDELETE/api/v1/contacts/{id}AlgaPSAAlgaDeskDelete contactPOST/api/v1/contacts/{id}/avatarAlgaPSAAlgaDeskUpload contact avatarDELETE/api/v1/contacts/{id}/avatarAlgaPSAAlgaDeskDelete contact avatarGET/api/v1/contacts/exportAlgaPSAAlgaDeskExport contactsGET/api/v1/contacts/searchAlgaPSAAlgaDeskSearch contactsGET/api/v1/contacts/statsAlgaPSAAlgaDeskGet contact stats