Contacts

The following endpoints refer to Contacts.

📘

Industrial license

Contacts are only available for accounts with an Industrial license or higher. In accounts without it, the endpoints return 402 Payment Required to the account Owner and Admins and 404 Not Found to End Users. Please contact [email protected] for further information.

A Contact is a person outside your list of Ubidots users that should be notified when something happens, for example a technician or an on-call supervisor. Each Contact keeps:

  • One or more contact methods: an email address or a phone number reachable by SMS, WhatsApp, Telegram or voice call.
  • Optional schedulers that say when each contact method is on call, in a given time zone.
  • Tags, used to notify every Contact with a given tag at once.

See the Contact object for the full structure.

How Contacts are used

Contacts don't send anything by themselves; they are the recipients of other features:

  • Incidents. When an Incident is escalated, the matching Contacts are notified through their active contact methods that are on call at that moment.
  • Events. An Event action of type contact can also notify Contacts, by id or by tag.

Contact method ids

The server gives every contact method an id built from its type and value. Schedulers use these ids to say which methods they cover:

TypeId formatExample
emailemail:<email>email:[email protected]
sms, whatsapp, telegram, voice<type>:<country>-<number>sms:+57-+573001234567

<country> is the dialing code of the method's country (country.value) and <number> is the phone number as sent.

Access

  • Contacts belong to the account. The account Owner and Admins manage all of them; other users need the Contact permissions (view, add, change, delete) of their role.
  • Every endpoint that takes a contact_key accepts the Contact id or its label with the prefix ~.
  • Every route accepts the path with or without a trailing slash.