How do I get a Case by a phone number?
Because multiple Cases in Charity Tracker / Oasis Insight can have the same Phone Number - and because we attach some carrier data to numbers when we reach out to our broadcast services - Phone Numbers are their own data model accessible via the /api/v1/phone_numbers endpoint.
You can do a general search for a phone number via the endpoint like so - /api/v1/phone_numbers?number=5551112345 to search for the number “(555) 111-2345”.
Please note, this may return an array with more than one Case, as the number may be associated with multiple Cases!
