Skip to content
Support

API reference

Every endpoint, field and example.

Print this section · every page on one document

Tutorials

Reference

Questions about aPI reference

  • Customers or contacts, which endpoint do I use?

    They read the same records, in two views with their own scopes.

    Compare/customers/contacts
    Scoperead:customersread:contacts, and write:contacts to change
    Fieldsname, email, phone, address, notesfirst_name, last_name, company_name, job_title, email, billing_email, the phone numbers, preferred_contact_method, address, notes
    Create or updateNoPOST /contacts, PATCH /contacts/{id}
    SearchNone (paging and sync only)email, phone and search narrow the list

    Use /contacts to find, create and update people. Use /customers when you only need a name, email, phone and address.

    A job's customer_id is the id of this record, so a contact you create can be used straight away when you create a job. Find a contact before creating one: GET /contacts?email=…. See Create a job and book a visit.

    Find a contact by email

    To find a contact before you create one, filter /contacts by email. $SKEDULER_API is your Skeduler API address, and in the JavaScript and PHP tabs the same names in capitals are variables you set.

    curl

    curl -s "$SKEDULER_API/api/v1/contacts?email=sam@example.com" \
      -H "Authorization: Bearer $ACCESS_TOKEN"
    

    The answer lists matching contacts in data. If it's empty, create the contact with POST /contacts.

    Open “Customers or contacts, which endpoint do I use?” on its own page