Search contact by Email, Mobile, Name

Overview

Any active contact within an Airship account can searched for, and returned via the REST API.

This allows third parties to identify contact details based on a key identifier, if multiple contacts exist against a query (i.e. Name = John Smith), then an array of contacts will be returned in the response.

All queries by Email or Mobile will only return a single result, as they are unique in an account.

Example Request

https://api.airship.co.uk/v1/contacts

Configuration

Headers

Body

Basic payload example

Contacts can be searched for by email address, there is some basic regex validation on the email to ensure it is in a valid format.

{
    "account_id": 3,
    "email": "john.smith@airship.co.uk"
}

Contacts can be searched for by Mobile number. All mobile numbers are stored in Airship with the country code (447....), and the API will automatically add this when you pass in a value.

{
    "account_id": 3,
    "mobile_number": "447810000001"
}

A contact can be searched for by;

  • First name

  • Surname

If either of these are left blank (i.e. just John searched for), an array of contacts matching that will be returned.

{
    "account_id": 3,
    "name": {
        "first_name": "John",
        "last_name": "Smith"
    }
}

Last updated