Contact Create
Create a single contact
Request
- Base URL: https://api.mainstay.com
- URL: https://api.mainstay.com/contacts/
- Auth: API key in header Authorization
Request body
Opted In, Paused, or Opted Out for the SMS Channel; <code>null</code> if institution does not use SMS; Accepted values: 'opted-in', 'opted-out', 'opted in', 'opted out', 'paused'; case-insensitive
Opted In, Paused, or Opted Out for the Web Chat Channel; <code>null</code> if institution does not use Web Chat; Accepted values: 'opted-in', 'opted-out', 'opted in', 'opted out', 'paused'; case-insensitive
Opted In, Paused, or Opted Out for the Slack Channel; <code>null</code> if institution does not use Slack; Accepted values: 'opted-in', 'opted-out', 'opted in', 'opted out', 'paused'; case-insensitive
Unique per contact, 10 digits w/ no spaces or non-numerical characters
Prefix for phone number which indicates what country the phone number is located within
Contact's CRM ID - used as unique identifier in AdmitHub database
Contact's email address
Contact's Enrollment ID - not used as unique identifier in AdmitHub database
Comma-separated list of quote-wrapped labels in square brackets, e.g. ['transfer-student', 'scholar athlete']
<strong>Deprecated.</strong> Use <code>messaging_status_sms</code>, etc. instead.<br /><code>true</code> if a contact can receive messages from the bot<br /><code>false</code> if a contact cannot receive messages from the bot<br /><u>Note</u>: This value cannot be changed from <code>false</code> to <code>true</code> via API request.
<code>true</code> if contact is permitted to engage with bot; <code>false</code> if contact is not permitted to engage. This field is an indicator of a contact's archived status.
<code>true</code> if contact is not permitted to engage with bot; <code>false</code> if contact is permitted to engage. Inverse of <code>permitted_user</code>.
Only necessary on requests sent via integrations
<code>true</code>, automatically send the intro campaign on contact creation.<br /><code>false</code>, intro campaign not sent on contact creation.
Response
Created
AdmitHub contact ID<br />Can be found in the URL when viewing a contact's page in Mascot<br />Matches <code>id</code>. Will be removed in future API versions.<br />https://app.mainstay.com/contacts/admithub-id
Mainstay contact ID<br />Matches <code>admithub_id</code>.<br />Can be found in the URL when viewing a contact's page in Mascot<br />https://app.mainstay.com/contacts/admithub-id
Contact's CRM ID - used as unique identifier in AdmitHub database; <code>null</code> if field is missing from contact record
Any of SMS, Slack, and Web Bot institution has enabled.
Prefix for phone number which indicates what country the phone number is located within.
AI-generated summary of the conversation with the contact
Contact's preferred name. Only writable if blank.
Contact's Enrollment ID - not used as unique identifier in AdmitHub database; <code>null</code> if field is missing from contact record.
Contact's Email Address; <code>null</code> if field is missing from contact record.
Contact created date (UTC). Matches <code>date_added</code>. Will be removed in future API versions.
Contact created date (UTC). Matches <code>created</code>.
<code>true</code> if a contact has been contacted; <code>false</code> if contact has yet to be contacted; field not included in the response if field is missing from contact record.
<code>true</code> if contact is permitted to engage with bot; <code>false</code> if contact is not permitted to engage.
Determines whether or not a contact can receive messages.
If <code>false</code>, the contact cannot be texted; if <code>true</code>, other restrictions may still prevent the contact from being texted. Refer to <code>texting_status</code> field for clarification.
<code>true</code> if contact is not permitted to engage. <code>false</code> if contact is permitted to engage with bot; inverse of <code>permitted_user_status</code>.
List of all import labels associated with contact
List of all Contact Labels associated with contact
URL to view a contact's conversations: https://admithub.mascot.com/conversations/contact's-admithub-id
Dictionary of contact attributes
Channel of communication: web, twilio, slack, or unknown
Date/time of last message sent or received by contact.
Date/time of contact's last sent message.
Date/time of contact's last received message.
Body of last message sent or received by contact.
Body of last message sent by contact.
Body of last message received by contact.
Opted In, Paused, or Opted Out for the SMS Channel; <code>null</code> if institution does not use SMS
Opted In, Paused, or Opted Out for the Web Chat Channel; <code>null</code> if institution does not use Web Chat
Opted In, Paused, or Opted Out for the Slack Channel; <code>null</code> if institution does not use Slack
ID of the script the contact is currently engaged in on the SMS Channel; <code>null</code> if contact is not in a script or if institution does not use SMS
Expiration datetime of the script the contact is currently engaged in on the SMS Channel; <code>null</code> if contact is not in a script or if institution does not use SMS
Date/time of when contact was last modified by manual updates, imports, or API requests or by any messaging (Campaigns, Live Chat, cold-messaging via SMS or webchat).
Token used for authenticating webchat. Rotates every 7-12 days.
Changes
No recorded changes to this operation across all 1 revision of this API.