v1

latestOpenAPI 3.1.12026-07-2452287575.4 KB
Contacts

Create a Contact

Create a new Contact. Additional Contacts may only be added to Companies of type business.

post/v1/companies/{company_id}/contacts

Path parameters

company_idstring uuid required
Example:8c581d79-bb84-4bc1-b1c5-8c073264a569

The Company ID.

Request body

allow_for_multiple_companiesboolean

If set to true, Routable will bypass the validation of unique email addresses and allow the Contact to be created even if the email address is already used by a Contact on another Company. This value is not stored, so you will need to pass this value each time you want to create a Contact that may potentially have a duplicate email in the Routable system in order to disable email uniqueness validation and allow the Contact to be created.

default_contact_for_company_management'actionable' | 'read_only' | 'none'

This field controls how both the Routable Dashboard and API will autofill contacts for emails related to Company management such as inviting a Company to submit their payment information.

  • When set to actionable, the Contact will be able to take action on emails related to Company management.
  • When set to read_only, the Contact will only receive emails related to Company management.
  • When set to none, the Contact will not receive emails related to Company management.
default_contact_for_payable_and_receivable'actionable' | 'read_only' | 'none'

This field controls how both the Routable Dashboard and API will autofill contacts for emails related to Payables and Receivables.

  • When set to actionable, the Contact will be able to take action on emails related to Payables and Receivables.
  • When set to read_only, the Contact will only receive emails related to Payables and Receivables.
  • When set to none, the Contact will not receive emails related to Payables and Receivables.
emailstring email

The email for this Contact. Required if the Company is a customer. For Contacts attached to a business Company that is not a customer, at least one of email, first_name, last_name and phone_number is required.

first_namestring

The first name of this Contact. Required if the the Company is of type personal and/or is a customer. For Contacts attached to a business Company that is not a customer, at least one of email, first_name, last_name and phone_number is required.

last_namestring

The last name of this Contact. Required if the the Company is of type personal and/or is a customer. For Contacts attached to a business Company that is not a customer, at least one of email, first_name, last_name and phone_number is required.

phone_numberstring

An E.164-formatted telephone number.

acting_team_memberstring uuid required

The Team Member ID performing this action. This will be displayed in the Routable Dashboard.

Response

OK

object'Contact' required

The object’s type (Contact).

idstring uuid required

The Contact ID.

default_contact_for_company_management'actionable' | 'read_only' | 'none' | '' | 'self_managed' required

This field controls how both the Routable dashboard and API will autofill contacts for emails related to company management such as inviting a company to submit their payment information.

  • When set to actionable, the contact will be able to take action on emails related to company management.
  • When set to read_only, the contact will only receive emails related to company management.
  • When set to none, the contact will not receive emails related to company management.
default_contact_for_payable_and_receivable'actionable' | 'read_only' | 'none' | '' | 'self_managed' required

This field controls how both the Routable dashboard and API will autofill contacts for emails related to payables and receivables.

  • When set to actionable, the contact will be able to take action on emails related to payables and receivables.
  • When set to read_only, the contact will only receive emails related to payables and receivables.
  • When set to none, the contact will not receive emails related to payables and receivables.
emailstring email nullable

The email for this contact.

first_namestring

The first name of this contact.

is_archivedboolean required

Whether the contact is archived.

last_email_delivery_problem'auto_responder' | 'hard_bounce' | 'refused' | 'soft_bounce' | 'spam_complaint' | 'spam_notification' | 'transient' | 'unknown' nullable

Describes an error that was encountered the last time an email was sent to this Contact via the Routable application. If the last email had no errors, this value will be null.

ValueDescription
auto_responderAutomatic email responder (ex: "Out of Office" or "On Vacation").
hard_bounceThe server was unable to deliver your message (ex: unknown user, mailbox not found).
refusedEmail service has asked that the address not be used. Which could be because it is not a valid email address, or the recipient has requested an address change.
soft_bounceTemporarily unable to deliver the message (i.e. mailbox full, account disabled, exceeds quota, out of disk space).
spam_complaintThe subscriber explicitly marked this message as spam.
spam_notificationThe message was delivered, but was either blocked by the user, or classified as spam, bulk mail, or had rejected content.
transientThe server temporarily could not deliver your message (ex: Message is delayed due to network troubles). This may be re-tried and eventually resolve or become a different error.
unknownAn unknown error occurred when sending the previous email.
last_namestring

The last name of this contact.

phone_numberstring required

An E.164-formatted telephone number.

phone_number_country'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'XK' | 'XX' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' required

Country code in ISO 3166-1 Alpha-2 format.