Text Request

Text Request is a business texting platform that helps businesses turn conversations into customers.
This connector is available in the following products and regions:
Service | Class | Regions |
---|---|---|
Copilot Studio | Premium | All Power Automate regions except the following: - US Government (GCC) - US Government (GCC High) - China Cloud operated by 21Vianet - US Department of Defense (DoD) |
Logic Apps | Standard | All Logic Apps regions except the following: - Azure Government regions - Azure China regions - US Department of Defense (DoD) |
Power Apps | Premium | All Power Apps regions except the following: - US Government (GCC) - US Government (GCC High) - China Cloud operated by 21Vianet - US Department of Defense (DoD) |
Power Automate | Premium | All Power Automate regions except the following: - US Government (GCC) - US Government (GCC High) - China Cloud operated by 21Vianet - US Department of Defense (DoD) |
Contact | |
---|---|
Name | Text Request API Support |
URL | https://www.textrequest.com/contact |
[email protected] |
Connector Metadata | |
---|---|
Publisher | Text Request |
Website | https://www.textrequest.com/ |
Privacy policy | https://www.textrequest.com/privacy-policy/ |
Categories | Communication;Sales and CRM |
Aranda Service Management Suite (ASMS)
Boost your company's productivity and transform your users' experience with Aranda Service Management Suite, the multi-tenant solution that allows you to manage, integrate, and automate business processes and services. Create, search, and update records stored in any workspace (project) of ASMS, including incidents, requirements, and changes, among others.
Pre-requisites
Please keep in mind the following pre-requisites to continue:
- A subscription and an instance of Aranda Service Management Suite (ASMS). Start here: https://arandasoft.com/
- An active Microsoft Power Automate subscription with Premium connector capabilities.
Obtaining Credentials
- To perform authentication, use the integration token. In the following link you will find information on how to obtain the integration token
Get started with your connector
Requires a subscription to Aranda Service Management Suite (ASMS).
Obtain the Integration token
Get the Instance URL of the Aranda Service Management ASMS API (ApiAsms).
Establish a connection with the Aranda Service Management Suite connector.
Select one of the following functions offered by the connector:
For detailed documentation around the connector please refer to https://docs.arandasoft.com/connectors
You can use this connector in the following cases:
- Create, search, and update tickets, among other actions available.
- Obtain ticket traceability.
- Download attachments related to a ticket.
- Search for knowledge base (KB) articles in Aranda Service Management Suite.
- Download attachments from knowledge base (KB) articles.
- Create, search and update configuration items (CIs).
- It allows organizations to resolve their internal support requests, managing and streamlining the technical problem resolution process.
- Allows tracking of communications between requesters and support agents.
- Offer automated responses to inform requesters of the status of their ticket.
Successful response
Code | Name | Description |
---|---|---|
200 | OK | The request was successful |
204 | NoContent | No data found in the request |
Common errors and remedies
Code | Name | Description | Solution |
---|---|---|---|
400 | BadRequest | CriteriaNeedsSomeArguments | Check that the search parameters are not empty |
400 | BadRequest | InvalidAdditionalFieldId | Check that the IDs of the additional fields are correct |
400 | BadRequest | InvalidItemType | The case type is incorrect, change the case type id |
400 | BadRequest | InvalidProjectId | The project id is incorrect, change the project id to which you will associate the case |
400 | BadRequest | InvalidStateId | Check the added status when creating or updating a Ticket |
400 | BadRequest | InvalidUploadType | An error occurred when attaching a file, Request assistance from a System Administrator |
400 | BadRequest | RequestNeedsSomeArguments | Check the required fields of the ticket and add the corresponding value of these in the connector |
400 | BadRequest | SearchListIsRequired | Request assistance from a System Administrator |
400 | BadRequest | Parameter Name: {Name parameter} | Check that the properties mentioned in the error are not null |
400 | BadRequest | Is null parameter name: {Name parameter} | Check that the properties mentioned in the error are not null |
400 | BadRequest | ItemTypeIsRequired | Add case type |
400 | BadRequest | ModelIdIsEmpty | Add the modelId parameter. It is required. |
400 | BadRequest | StateIdIsEmpty | Add the stateId parameter. It is required. |
400 | BadRequest | ServiceIdIsEmpty | Add the serviceId parameter. It is required. |
400 | BadRequest | CategoryIdIsEmpty | Add the categoryId parameter. It is required. |
400 | BadRequest | TypesListNeedsSomeArguments | Requires adding the type of case when searching for tickets, Request assistance from a System Administrator |
400 | BadRequest | '{PARAMETER_NAME}' AdditionalFieldIsRequired | The additional field '{PARAMETER_NAME}' is mandatory |
400 | BadRequest | ModelNotActive | The model associated with the case is not active |
400 | BadRequest | FailedToCloseTaskPendingCloseTasksPredecessors | If you try to close the case and the parent case has pending tasks to close |
400 | BadRequest | DuplicatedObject | The Ci already exists in the database |
400 | BadRequest | EmptyValue Parameter name: {PARAMETER_NAME} | The {PARAMETER_NAME} parameter is required |
400 | BadRequest | EmptyEnumeration Parameter name: {PARAMETER_NAME} | The {PARAMETER_NAME} parameter is a list and is required |
403 | Forbidden | DoNotHavePermissionForThisAction | Talk to your System Administrator to assign permissions |
Code | Name | Description | Solution |
---|---|---|---|
500 | InternalServerError | Request assistance from a System Administrator | |
500 | InternalServerError | FailureExportExcel | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetAdditionalFields | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetCategoriesByService | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetChangeFSC | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetFields | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetFieldsList | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetFiles | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetLookupValues | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetMailTemplates | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetModelByCategory | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetOperators | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetReassignmentReasons | Request assistance from a System Administrator |
500 | InternalServerError | FailureGetSimilarItems | Request assistance from a System Administrator |
500 | InternalServerError | FailureSearchQuickManagement | Request assistance from a System Administrator |
FAQ
How to retrieve the IDs of the attributes required to use the different actions in the connector (e.g. project, service, category, group, specialist)?
The IDs can be retrieved in many ways:
- Using Aranda Query Manager, you can create a report that queries the Aranda Service Management Suite (ASMS) table where the required data is located. If you need guidance on the data objects in the solution, visit the following link https://docs.arandasoft.com/docs/database.html and identify the Aranda database version corresponding to your ASMS installation.
- If you are using an ASMS On Premise installation, you can query the ASMS table where the required data is located through a SQL client.
- Via Aranda Support Center, creating a support request through the contact channels indicated on the following website Support.
What is the maximum size of files to attach when using the "Add Attachment" action?
The maximum size depends on the specific configuration of your ASMS instance/installation. Please ask your ASMS Administrator.
What is the data access level required by the technician account whose token is used in the configuration of the ASMS connection required by the connector?
The access level is the same as the technician account as used in ASMS on a regular basis. In other words, based on the roles and permissions of the corresponding technician in ASMS, the data can be accessed with the connector.
Should the technician account whose token will be used in the connector be Named or Concurrent?
Since the connector can access the related ASMS instance multiple times per hour, it is strongly recommended that the account be a Named type.
Does the creation or modification of cases using the connector follow the same data validation rules present in the ASMS interface?
Yes, it follows the same validation rules. For instance, when creating a case for a specific project, service and category, if native and additional fields must be filled in, these data are also required when submitting the case through the connector.
Can the connector be used for ASMS instances in Cloud and On Premise environments?
Yes, it can be used in both Cloud and On Premise installations of ASMS. In On Premise installations, you must consider the connectivity between the ASMS server and your Power Automate environment.
I have a Power Automate license that only allows me to use Standard connectors. Can I use the ASMS connector?
It is not possible, the ASMS connector is Premium type.
I want to create flows in Power Automate that start from events in ASMS (e.g. when a case has been created, when a case is assigned to a specific group). Is it possible to use Triggers that start from events occurring in ASMS?
Yes, it is possible. The following steps are recommended:
- Initialize a trigger "When a HTTP request is received" and create a Request Body JSON Schema containing the data structure expected to be received from ASMS. Once the trigger is created, you will get an HTTP POST URL (WebHook URL) to use in your ASMS instance. Do not forget to consider the authentication mechanism to access the WebHook URL (e.g. Token).
- Create a business rule in ASMS for the set of conditions that, when met, should initiate the flow in Power Automate. As an action within the rule, select "Invoke Webhook" and in the invocation destination URL, enter the previously obtained WebHook URL, the parameters to send and the body of the request (which must match the Request Body JSON Schema). For more information on how to invoke a Webhook from a rule in ASMS, visit the following link: Webhook rule
- Test the created rule and validate an HTTP request is sent to the WebHook URL and initializes the flow in Power Automate.
Can I invoke ASMS REST API endpoints as actions from flows in Power Automate?
Yes, it is possible. Use the "HTTP" action and fill in the required data in it (URI, Method, Headers, Body, among others).
Creating a connection
The connector supports the following authentication types:
Default | Parameters for creating connection. | All regions | Not shareable |
Default
Applicable: All regions
Parameters for creating connection.
This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.
Name | Type | Description | Required |
---|---|---|---|
API Key | securestring | The API Key for this api | True |
Throttling Limits
Name | Calls | Renewal Period |
---|---|---|
API calls per connection | 100 | 60 seconds |
Actions
Archive a Conversation |
Archiving a conversation removes it from the results of all conversation retrieval endpoints. A conversation will be automatically unarchived if the customer sends a text to your Text Request number, or if you send the customer a text from your Text Request number. Archiving conversations is a good way to remove clutter from customers you don’t plan on talking to in the future. Note that if a customer texts in "STOP" to prevent you from sending them any further SMS messages, the conversation is automatically archived. |
Bulk update contacts |
Only the dashboard specified will have contacts added; contacts are organized by dashboard, and there is no account level search for a number available. |
Cancels the specified payment |
Cancels the specified payment, texting the user that the payment has been canceled. Payments cannot be edited, so canceling and issuing a new payment is the best way to correct a payment. |
Create a new dashboard with the given name and phone number |
Creates a new dashboard in the account. Once the dashboard is created, admins will be emailed about the change and can begin assigning users. This endpoint can make a dashboard for any provisioned numbers. You can search for provisioned numbers in a specific area code using GET /dashboards/provisioning. If the phone number is already in use, a Bad Request exception will be thrown. |
Create or update a contact |
Creates or updates a contact (depending on whether one already exists with the given phone number). |
Creates a new group |
Creates a new group with the provided name. |
Creates a new payment |
Creates a new payment with the provided message to the provided contact. |
Deletes the contact with the specified phone number |
If a contact does not exist with this phone number in this dashboard, no content will be returned. If a contact does exist, but has no message history, no content will be returned, and a successful status code will indicate it was deleted. If a contact has any message history, it cannot be deleted, then a Bad Request error will be returned. |
Deletes the group with the specified id |
Deletes the group with the specified id. This will succeed even if there are contacts that are members of the group (the contacts will not be deleted). |
Deletes the specified dashboard |
Deletes the specified dashboard. |
Get a conversation's messages by a contact's phone number |
Retrieves the conversation between the specified dashboard and phone number. |
Get all dashboards in an account |
Returns all dashboards in an account. |
Get info on this specific dashboard |
Returns the name and phone of the dashboard. |
Mark a payment as paid |
Closes a payment as "paid". Use this endpoint for when the payment is paid through a means other than the payment request portal. This will close the payment and add its payment amount to your statistics. This endpoint is not required for payments paid through the payments-portal sent through Text Request; that will automatically mark a payment as paid. |
Retrieves a group by its id |
Retrieves the group with the specified id. |
Retrieves all contacts that match the specified filtering criterion |
Retrieves all contacts that match the specified filtering criterion. Only the dashboard specified will be searched; there is no account level search for a number available. |
Retrieves all conversations for this dashboard |
Retrieves all conversations for this dashboard, and includes info on the last message for each conversation. |
Retrieves all custom fields |
Retrieves all custom fields for this dashboard. Custom fields are unique between dashboards. |
Retrieves all groups |
Retrieves all groups for the user's account. |
Retrieves all payments |
Retrieves all payments, including canceled and paid payments. These can be filtered using the query parameters. |
Retrieves all tags |
Retrieves all the tags for this dashboard. Tags are unique between dashboards. |
Retrieves the contact with the specified phone number |
If a contact does not yet exist with this phone number in this dashboard, no content will be returned, and no error will be thrown. Only the dashboard specified will be searched; contacts are organized by dashboard, and there is no account level search for a number available. |
Retrieves the payment with the specified id |
Retrieves the payment with the specified id. |
Send a follow-up text reminding the user to pay the specified payment |
Sends a reminder to the contact to pay the specified payment. The content of the message is auto-generated. To avoid spam, only one reminder can be sent per payment |
Send a message to the contact with the given phone number |
Sends a message (starting a new conversation if the given phone number has no message history). |
Unarchive a Conversation |
Unarchive a conversation. Once a conversation is unarchived, it will once again appear in the queue. it will also appear in conversations returned by the /conversations endpoint. If a conversation is already unarchived, this method has no effect. |
Update a specific dashboard's name |
Updates a dashboard. This does not change a dashboard's phone number. If you want a new number with another dashboard's contacts, you will have to create a new dashboard with a POST and add the contacts with a bulk export/import. |
Updates a group with the given id |
Updates a group's name using the group's numerical id. If the passed in group id does not exist, the call will fail. |
Archive a Conversation
Archiving a conversation removes it from the results of all conversation retrieval endpoints. A conversation will be automatically unarchived if the customer sends a text to your Text Request number, or if you send the customer a text from your Text Request number. Archiving conversations is a good way to remove clutter from customers you don’t plan on talking to in the future. Note that if a customer texts in "STOP" to prevent you from sending them any further SMS messages, the conversation is automatically archived.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Phone Number of conversation
|
phone_number | True | string |
Phone number of the conversation to archive. |
Returns
- response
- string
Bulk update contacts
Only the dashboard specified will have contacts added; contacts are organized by dashboard, and there is no account level search for a number available.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Phone Number of contact
|
phone_number | string |
Phone number of the contact to create or update. |
|
First name of contact
|
first_name | string |
The new first name of the contact. |
|
Last name of contact
|
last_name | string |
The new last name of the contact. |
|
Full name of contact
|
display_name | string |
The new full name of the contact. This is the default name displayed in the web app when viewing contacts. |
|
Whether messages from this contact are suppressed
|
is_suppressed | boolean |
Determines whether conversations with this contact are suppressed, and therefore not pushed to the top of the message queue when received. |
|
Whether messages from this contact are archived
|
is_archived | boolean |
Determines whether conversations with this contact are archived, and therefore cannot be seen when querying conversations (by default). |
|
Whether messages from this contact are blocked
|
is_blocked | boolean |
Determines whether conversations with this contact are blocked, and therefore not received or stored. |
|
Reason for suppressing this contact
|
suppressed_reason | string |
Phrase describing the reason for suppressing contact. |
|
Contact note
|
note | string |
Short phrase describing contact. Used for convenience. This is never shown to the contact. |
|
Contact groups
|
groups | array of integer |
Array of integer ids referring to groups this contact will belong to. |
|
Contact tags
|
contact_tags | array of string |
Array of guids referring to tags attached to this contact. |
|
Custom field id
|
id | string |
Guid referring to a custom field. |
|
Custom field value
|
value | string |
This contact's value for this custom field. |
|
Whether the current conversation with this contact has been resolved
|
is_resolved | boolean |
Determines whether the current conversation with this contact is resolved. Any new texts received by this contact will set this false. |
Returns
Name | Path | Type | Description |
---|---|---|---|
|
array of object | ||
phone_number
|
phone_number | string |
Phone number of this contact. |
first_name
|
first_name | string |
First name of this contact. |
last_name
|
last_name | string |
Last name of this contact. |
display_name
|
display_name | string |
Full name of this contact. This is the default name displayed in the web app when viewing contacts. |
is_suppressed
|
is_suppressed | boolean |
Whether the conversation with this contact are suppressed, and therefore not pushed to the top of the message queue when received. |
is_archived
|
is_archived | boolean |
Whether the conversation with this contact are archived, and therefore cannot be seen when querying conversations (by default). |
is_blocked
|
is_blocked | boolean |
Whether the conversation with this contact are blocked, and therefore not received or stored. |
suppressed_reason
|
suppressed_reason | string |
Phrase describing the reason for suppressing contact. If is_suppressed is false, this will be null. |
note
|
note | string |
Short phrase describing contact. Used for convenience. This is never shown to the contact. |
groups
|
groups | array of integer |
Array of integer ids referring to groups this contact belongs to. |
contact_tags
|
contact_tags | array of string |
Array of guids referring to tags attached to this contact. |
custom_fields
|
custom_fields | array of object |
Array of custom field ids and values defined for this contact. |
id
|
custom_fields.id | string |
Guid referring to a custom field. |
value
|
custom_fields.value | string |
This contact's value for this custom field. |
is_resolved
|
is_resolved | boolean |
Whether the conversation with this contact is resolved. Any new texts received by this contact will set this false. |
first_contact_utc
|
first_contact_utc | string |
Timestamp of when the first message was sent to this contact. |
opted_out_utc
|
opted_out_utc | string |
Timestamp of when this contact opted out to receiving messages. |
last_msg_sent_utc
|
last_msg_sent_utc | string |
Timestamp of when the last message was sent to this contact. |
last_msg_received_utc
|
last_msg_received_utc | string |
Timestamp of when the last message was received from this contact. |
total_msgs_sent
|
total_msgs_sent | integer |
The number of total messages sent to this contact. |
total_msgs_received
|
total_msgs_received | integer |
The number of total messages received from this contact. |
response_count
|
response_count | integer |
Total number of response messages from the contact. |
date_created_utc
|
date_created_utc | string |
Timestamp of when ths contact was created. |
last_contact_date_utc
|
last_contact_date_utc | string |
Timestamp of when the last message was sent or received from this contact. |
message_id
|
last_message.message_id | string |
Id of the message. This value is unique for each message. |
body
|
last_message.body | string |
Content of this message. |
message_direction
|
last_message.message_direction | string |
Singular character, either R or S, denoting whether this message was received from the contact or sent to them, respectively. |
response_by_username
|
last_message.response_by_username | string |
Username of the Text Request user that last sent a message to this user. |
message_timestamp_utc
|
last_message.message_timestamp_utc | string |
Timestamp of when the message was sent or received by Text Request. |
delivery_status
|
last_message.delivery_status | string |
Current status of this message. This can be 'sending', 'delivered', 'error', or 'send'. |
delivery_error
|
last_message.delivery_error | string |
Error that caused this message to not be delivered. If the delivery_status is not 'error', this value will be null. |
mms_media
|
last_message.mms_media | array of string |
List of urls pointing to this message's attachments. All urls will be text-request generated urls. |
Cancels the specified payment
Cancels the specified payment, texting the user that the payment has been canceled. Payments cannot be edited, so canceling and issuing a new payment is the best way to correct a payment.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Id of the payment
|
payment_id | True | integer |
The numerical id of the payment to update. |
Returns
Name | Path | Type | Description |
---|---|---|---|
payment_id
|
payment_id | integer |
The numerical id of the payment. |
request_date
|
request_date | string |
The timestamp of when this payment's initial message was queued to be sent. |
recipient
|
recipient | string |
The name of the payment recipient. This may be null if the contact does not have a name associated with their phone number. |
description
|
description | string |
The description of the payment. This is not shown to the contact. It is only used by internal users for context about payments. |
customer_phone
|
customer_phone | string |
The phone number of the contact who is being sent this payment. |
amount_requested
|
amount_requested | float |
The amount in dollars requested by this payment. |
is_past_due
|
is_past_due | boolean |
Whether this payment is past the request date. |
reminder_was_sent
|
reminder_was_sent | boolean |
Whether a text reminder has already been sent for this payment. |
transaction_status
|
transaction_status | string |
The status of the transaction in authvia. This value starts as Unknown. |
textrequest_payment_status
|
textrequest_payment_status | string |
The status of the transaction in Text Request. This represents that status shown in the payments page on the Text Request app. It starts as Sent. |
reference_number
|
reference_number | string |
The user-defined id defined when payments are created that can be used to quickly find payments. Reference numbers are not unique; many payments can have the same reference. |
Create a new dashboard with the given name and phone number
Creates a new dashboard in the account. Once the dashboard is created, admins will be emailed about the change and can begin assigning users. This endpoint can make a dashboard for any provisioned numbers. You can search for provisioned numbers in a specific area code using GET /dashboards/provisioning. If the phone number is already in use, a Bad Request exception will be thrown.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
name
|
name | string |
The name of the dashboard. |
|
phone
|
phone | string |
The texting number associated with this dashboard. |
Returns
Name | Path | Type | Description |
---|---|---|---|
id
|
id | integer |
The numerical id of the dashboard. |
name
|
name | string |
The name of the dashboard. |
phone
|
phone | string |
The texting number associated with this dashboard. |
Create or update a contact
Creates or updates a contact (depending on whether one already exists with the given phone number).
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Phone Number of contact
|
phone_number | True | string |
Phone number of the contact to create or update. |
First name of contact
|
first_name | string |
The new first name of the contact. |
|
Last name of contact
|
last_name | string |
The new last name of the contact. |
|
Full name of contact
|
display_name | string |
The new full name of the contact. This is the default name displayed in the web app when viewing contacts. |
|
Whether messages from this contact are suppressed
|
is_suppressed | boolean |
Determines whether conversations with this contact are suppressed, and therefore not pushed to the top of the message queue when received. |
|
Whether messages from this contact are archived
|
is_archived | boolean |
Determines whether conversations with this contact are archived, and therefore cannot be seen when querying conversations (by default). |
|
Whether messages from this contact are blocked
|
is_blocked | boolean |
Determines whether conversations with this contact are blocked, and therefore not received or stored. |
|
Reason for suppressing this contact
|
suppressed_reason | string |
Phrase describing the reason for suppressing contact. |
|
Contact Note
|
note | string |
Short phrase describing contact. Used for convenience. This is never shown to the contact. |
|
Contact Groups
|
groups | array of integer |
Array of integer ids referring to groups this contact will belong to. |
|
Contact Tags
|
contact_tags | array of string |
Array of guids referring to tags attached to this contact. |
|
Custom field id
|
id | string |
Guid referring to a custom field. |
|
Custom field value
|
value | string |
This contact's value for this custom field. |
|
Whether the current conversation with this contact has been resolved
|
is_resolved | boolean |
Determines whether the current conversation with this contact is resolved. Any new texts received by this contact will set this false. |
Returns
Name | Path | Type | Description |
---|---|---|---|
phone_number
|
phone_number | string |
Phone number of this contact. |
first_name
|
first_name | string |
First name of this contact. |
last_name
|
last_name | string |
Last name of this contact. |
display_name
|
display_name | string |
Full name of this contact. This is the default name displayed in the web app when viewing contacts. |
is_suppressed
|
is_suppressed | boolean |
Whether the conversation with this contact are suppressed, and therefore not pushed to the top of the message queue when received. |
is_archived
|
is_archived | boolean |
Whether the conversation with this contact are archived, and therefore cannot be seen when querying conversations (by default). |
is_blocked
|
is_blocked | boolean |
Whether the conversation with this contact are blocked, and therefore not received or stored. |
suppressed_reason
|
suppressed_reason | string |
Phrase describing the reason for suppressing contact. If is_suppressed is false, this will be null. |
note
|
note | string |
Short phrase describing contact. Used for convenience. This is never shown to the contact. |
groups
|
groups | array of integer |
Array of integer ids referring to groups this contact belongs to. |
contact_tags
|
contact_tags | array of string |
Array of guids referring to tags attached to this contact. |
custom_fields
|
custom_fields | array of object |
Array of custom field ids and values defined for this contact. |
id
|
custom_fields.id | string |
Guid referring to a custom field. |
value
|
custom_fields.value | string |
This contact's value for this custom field. |
is_resolved
|
is_resolved | boolean |
Whether the conversation with this contact is resolved. Any new texts received by this contact will set this false. |
first_contact_utc
|
first_contact_utc | string |
Timestamp of when the first message was sent to this contact. |
opted_out_utc
|
opted_out_utc | string |
Timestamp of when this contact opted out to receiving messages. |
last_msg_sent_utc
|
last_msg_sent_utc | string |
Timestamp of when the last message was sent to this contact. |
last_msg_received_utc
|
last_msg_received_utc | string |
Timestamp of when the last message was received from this contact. |
total_msgs_sent
|
total_msgs_sent | integer |
The number of total messages sent to this contact. |
total_msgs_received
|
total_msgs_received | integer |
The number of total messages received from this contact. |
response_count
|
response_count | integer |
Total number of response messages from the contact. |
date_created_utc
|
date_created_utc | string |
Timestamp of when ths contact was created. |
last_contact_date_utc
|
last_contact_date_utc | string |
Timestamp of when the last message was sent or received from this contact. |
message_id
|
last_message.message_id | string |
Id of the message. This value is unique for each message. |
body
|
last_message.body | string |
Content of this message. |
message_direction
|
last_message.message_direction | string |
Singular character, either R or S, denoting whether this message was received from the contact or sent to them, respectively. |
response_by_username
|
last_message.response_by_username | string |
Username of the Text Request user that last sent a message to this user. |
message_timestamp_utc
|
last_message.message_timestamp_utc | string |
Timestamp of when the message was sent or received by Text Request. |
delivery_status
|
last_message.delivery_status | string |
Current status of this message. This can be 'sending', 'delivered', 'error', or 'send'. |
delivery_error
|
last_message.delivery_error | string |
Error that caused this message to not be delivered. If the delivery_status is not 'error', this value will be null. |
mms_media
|
last_message.mms_media | array of string |
List of urls pointing to this message's attachments. All urls will be text-request generated urls. |
Creates a new group
Creates a new group with the provided name.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Group name
|
name | string |
The new name of the group. |
|
Group note
|
notes | string |
Short phrase describing group. Used for convenience. |
Returns
Name | Path | Type | Description |
---|---|---|---|
id
|
id | integer |
The numerical id of the group. |
group_member_count
|
group_member_count | integer |
The number of members of the group. |
is_keyword
|
is_keyword | boolean |
Wheter this group is a keyword group. Such groups are autogenerated when a user sets up a keyword. Contacts are automatically added when they enroll. |
name
|
name | string |
The name of this group. |
notes
|
notes | string |
Any notes on this group. |
last_message_sent_utc
|
last_message_sent_utc | string |
Timestamp of when the last group message was sent for this group. |
Creates a new payment
Creates a new payment with the provided message to the provided contact.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Payment description
|
description | string |
Description of the payment. Description is not shown to the contact and is only used by internal users for context about payments. |
|
Recipient phone number
|
customer_phone | string |
Phone number of the contact this payment will be sent to. |
|
Amount requested in dollars
|
amount_requested | float |
The amount in dollars requested by this payment. |
|
Payment message text body
|
message | string |
Message text to send to contact along with payment link. |
|
Reference string of the payment
|
reference_number | string |
User-defined id defined when payments are created that can be used to quickly find payments. Reference numbers are not unique; many payments can have the same reference. |
Returns
Name | Path | Type | Description |
---|---|---|---|
payment_id
|
payment_id | integer |
The numerical id of the payment. |
request_date
|
request_date | string |
The timestamp of when this payment's initial message was queued to be sent. |
recipient
|
recipient | string |
The name of the payment recipient. This may be null if the contact does not have a name associated with their phone number. |
description
|
description | string |
The description of the payment. This is not shown to the contact. It is only used by internal users for context about payments. |
customer_phone
|
customer_phone | string |
The phone number of the contact who is being sent this payment. |
amount_requested
|
amount_requested | float |
The amount in dollars requested by this payment. |
is_past_due
|
is_past_due | boolean |
Whether this payment is past the request date. |
reminder_was_sent
|
reminder_was_sent | boolean |
Whether a text reminder has already been sent for this payment. |
transaction_status
|
transaction_status | string |
The status of the transaction in authvia. This value starts as Unknown. |
textrequest_payment_status
|
textrequest_payment_status | string |
The status of the transaction in Text Request. This represents that status shown in the payments page on the Text Request app. It starts as Sent. |
reference_number
|
reference_number | string |
The user-defined id defined when payments are created that can be used to quickly find payments. Reference numbers are not unique; many payments can have the same reference. |
Deletes the contact with the specified phone number
If a contact does not exist with this phone number in this dashboard, no content will be returned. If a contact does exist, but has no message history, no content will be returned, and a successful status code will indicate it was deleted. If a contact has any message history, it cannot be deleted, then a Bad Request error will be returned.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Phone Number of contact
|
phone_number | True | string |
Phone number of the contact to delete. |
Returns
- response
- string
Deletes the group with the specified id
Deletes the group with the specified id. This will succeed even if there are contacts that are members of the group (the contacts will not be deleted).
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Id of the group
|
group_id | True | integer |
The numerical id of the group to delete. |
Returns
- response
- string
Deletes the specified dashboard
Deletes the specified dashboard.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Returns
- response
- string
Get a conversation's messages by a contact's phone number
Retrieves the conversation between the specified dashboard and phone number.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Number page to get
|
page | True | integer |
The page of entities to get. When getting values, there is a max size per page, defined by page_size. If page is greater than the last page, an empty array will be returned. |
Amount of each entity to get per page
|
page_size | True | integer |
The size of each page to get. When getting values, this is a max size per page, with accessing subsequent pages done by the page parameter. |
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Contact's phone number to search by
|
phone_number | True | string |
Phone number of the contact to get messages for. |
Returns
Name | Path | Type | Description |
---|---|---|---|
page
|
meta.page | integer |
The page of entities gotten. The amount of entities in this page is defined by page_size. |
page_size
|
meta.page_size | integer |
The number of entities gotten in this page. |
total_items
|
meta.total_items | integer |
The number of entities available in the database, regardless of the page size or number. To see the other pages, change the page number in the request. |
items
|
items | array of object |
List of message entities gotten from Text Request. |
message_id
|
items.message_id | string |
Id of the message. This value is unique for each message. |
body
|
items.body | string |
Content of this message. |
message_direction
|
items.message_direction | string |
Singular character, either R or S, denoting whether this message was received from the contact or sent to them, respectively. |
response_by_username
|
items.response_by_username | string |
Username of the Text Request user that last sent a message to this user. |
message_timestamp_utc
|
items.message_timestamp_utc | string |
Timestamp of when the message was sent or received by Text Request. |
delivery_status
|
items.delivery_status | string |
Current status of this message. This can be 'sending', 'delivered', 'error', or 'send'. |
delivery_error
|
items.delivery_error | string |
Error that caused this message to not be delivered. If the delivery_status is not 'error', this value will be null. |
mms_media
|
items.mms_media | array of string |
List of urls pointing to this message's attachments. All urls will be text-request generated urls. |
Get all dashboards in an account
Returns all dashboards in an account.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Number page to get
|
page | True | integer |
The page of entities to get. When getting values, there is a max size per page, defined by page_size. If page is greater than the last page, an empty array will be returned. |
Amount of each entity to get per page
|
page_size | True | integer |
The size of each page to get. When getting values, this is a max size per page, with accessing subsequent pages done by the page parameter. |
Returns
Name | Path | Type | Description |
---|---|---|---|
page
|
meta.page | integer |
The page of entities gotten. The amount of entities in this page is defined by page_size. |
page_size
|
meta.page_size | integer |
The number of entities gotten in this page. |
total_items
|
meta.total_items | integer |
The number of entities available in the database, regardless of the page size or number. To see the other pages, change the page number in the request. |
items
|
items | array of object |
List of dashboard entities gotten from Text Request. |
id
|
items.id | integer |
The numerical id of the dashboard. |
name
|
items.name | string |
The name of the dashboard. |
phone
|
items.phone | string |
The texting number associated with this dashboard. |
Get info on this specific dashboard
Returns the name and phone of the dashboard.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Returns
Name | Path | Type | Description |
---|---|---|---|
id
|
id | integer |
The numerical id of the dashboard. |
name
|
name | string |
The name of the dashboard. |
phone
|
phone | string |
The texting number associated with this dashboard. |
Mark a payment as paid
Closes a payment as "paid". Use this endpoint for when the payment is paid through a means other than the payment request portal. This will close the payment and add its payment amount to your statistics. This endpoint is not required for payments paid through the payments-portal sent through Text Request; that will automatically mark a payment as paid.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Id of the payment
|
payment_id | True | integer |
The numerical id of the payment to update. |
Returns
Name | Path | Type | Description |
---|---|---|---|
payment_id
|
payment_id | integer |
The numerical id of the payment. |
request_date
|
request_date | string |
The timestamp of when this payment's initial message was queued to be sent. |
recipient
|
recipient | string |
The name of the payment recipient. This may be null if the contact does not have a name associated with their phone number. |
description
|
description | string |
The description of the payment. This is not shown to the contact. It is only used by internal users for context about payments. |
customer_phone
|
customer_phone | string |
The phone number of the contact who is being sent this payment. |
amount_requested
|
amount_requested | float |
The amount in dollars requested by this payment. |
is_past_due
|
is_past_due | boolean |
Whether this payment is past the request date. |
reminder_was_sent
|
reminder_was_sent | boolean |
Whether a text reminder has already been sent for this payment. |
transaction_status
|
transaction_status | string |
The status of the transaction in authvia. This value starts as Unknown. |
textrequest_payment_status
|
textrequest_payment_status | string |
The status of the transaction in Text Request. This represents that status shown in the payments page on the Text Request app. It starts as Sent. |
reference_number
|
reference_number | string |
The user-defined id defined when payments are created that can be used to quickly find payments. Reference numbers are not unique; many payments can have the same reference. |
Retrieves a group by its id
Retrieves the group with the specified id.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Id of the group
|
group_id | True | integer |
The numerical id of the group to get. |
Returns
Name | Path | Type | Description |
---|---|---|---|
id
|
id | integer |
The numerical id of the group. |
group_member_count
|
group_member_count | integer |
The number of members of the group. |
is_keyword
|
is_keyword | boolean |
Wheter this group is a keyword group. Such groups are autogenerated when a user sets up a keyword. Contacts are automatically added when they enroll. |
name
|
name | string |
The name of this group. |
notes
|
notes | string |
Any notes on this group. |
last_message_sent_utc
|
last_message_sent_utc | string |
Timestamp of when the last group message was sent for this group. |
Retrieves all contacts that match the specified filtering criterion
Retrieves all contacts that match the specified filtering criterion. Only the dashboard specified will be searched; there is no account level search for a number available.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Contact's phone number to search by
|
contact_phone_number | string |
Phone number to filter contacts by. |
|
'Last-message-time sent before' search timestamp in UTC time
|
last_message_timestamp_before_utc | date-time |
Cutoff time for searching contacts by the last message sent or received. No contacts who sent messages after this time will be shown. |
|
'Last-message-time sent after' search timestamp in UTC time
|
last_message_timestamp_after_utc | date-time |
Cutoff time for searching contacts by the last message sent or received. No contacts whose last sent message is before this time will be shown. |
|
'Created before' search timestamp
|
contact_created_before | date-time |
Cutoff time for searching contacts by when they were created. No contacts created after this time will be shown. |
|
'Created after' search timestamp
|
contact_created_after | date-time |
Cutoff time for searching contacts by when they were created. No contacts created before this time will be shown. |
|
Whether contact's conversation is resolved
|
is_resolved | boolean |
Whether to search for contacts whose conversations have been resolved. |
|
Whether contact is blocked
|
is_blocked | boolean |
Whether to search for contacts who have been blocked. |
|
Whether contact is archived
|
is_archived | boolean |
Whether to search for contacts who have been archived. |
|
Whether contact is suppressed
|
is_suppressed | boolean |
Whether to search for contacts who have been suppressed. |
|
Whether contact has opted out
|
has_opted_out | boolean |
Whether to search for contacts who have opted out of receiving texts. |
|
'Last-message-time sent before' search timestamp
|
last_message_sent_before | date-time |
Cutoff time for searching contacts by when the last message was sent to the customer. No contacts who sent messages after this time will be shown. Uses timestamp as local time. To filter by time stamp in UTC time, use last_message_sent_before_utc |
|
'Last-message-time sent after' search timestamp
|
last_message_sent_after | date-time |
Cutoff time for searching contacts by when the last message was sent to the customer. No contacts whose last sent message is before this time will be shown. Uses timestamp as local time. To filter by time stamp in UTC time, use last_message_sent_after_utc |
|
'Last-message-time received before' search timestamp
|
last_message_received_before | date-time |
Cutoff time for searching contacts by the last message received from the customer. No contacts who received messages after this time will be shown. Uses timestamp as local time. To filter by time stamp in UTC time, use last_message_sent_before_utc |
|
'Last-message-time received after' search timestamp
|
last_message_received_after | date-time |
Cutoff time for searching contacts by the last message received from the customer. No contacts whose last sent message is before this time will be shown. Uses timestamp as local time. To filter by time stamp in UTC time, use last_message_sent_before_utc |
|
Contact Tags
|
tags | string |
Comma-separated list of guids referring to tags to filter contacts by. |
|
Contact Groups
|
groups | string |
Comma-separated list of integer ids referring to groups to filter contacts by. |
|
Id of custom field to filter by
|
custom_field_id_1 | string |
Guid referring to custom field to filter contacts by. |
|
Value of custom field to filter by
|
custom_field_value_1 | string |
Value referring to custom field to filter contacts by. |
|
Id of second custom field to filter by
|
custom_field_id_2 | string |
Guid referring to second custom field to filter contacts by. |
|
Value of second custom field to filter by
|
custom_field_value_2 | string |
Value referring to second custom field to filter contacts by. |
|
Id of third custom field to filter by
|
custom_field_id_3 | string |
Guid referring to third custom field to filter contacts by. |
|
Value of third custom field to filter by
|
custom_field_value_3 | string |
Value referring to third custom field to filter contacts by. |
|
Number page to get
|
page | True | integer |
The page of entities to get. When getting values, there is a max size per page, defined by page_size. If page is greater than the last page, an empty array will be returned. |
Amount of each entity to get per page
|
page_size | True | integer |
The size of each page to get. When getting values, this is a max size per page, with accessing subsequent pages done by the page parameter. |
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Returns
Name | Path | Type | Description |
---|---|---|---|
page
|
meta.page | integer |
The page of entities gotten. The amount of entities in this page is defined by page_size. |
page_size
|
meta.page_size | integer |
The number of entities gotten in this page. |
total_items
|
meta.total_items | integer |
The number of entities available in the database, regardless of the page size or number. To see the other pages, change the page number in the request. |
items
|
items | array of object |
List of contact entities gotten from Text Request. |
phone_number
|
items.phone_number | string |
Phone number of this contact. |
first_name
|
items.first_name | string |
First name of this contact. |
last_name
|
items.last_name | string |
Last name of this contact. |
display_name
|
items.display_name | string |
Full name of this contact. This is the default name displayed in the web app when viewing contacts. |
is_suppressed
|
items.is_suppressed | boolean |
Whether the conversation with this contact are suppressed, and therefore not pushed to the top of the message queue when received. |
is_archived
|
items.is_archived | boolean |
Whether the conversation with this contact are archived, and therefore cannot be seen when querying conversations (by default). |
is_blocked
|
items.is_blocked | boolean |
Whether the conversation with this contact are blocked, and therefore not received or stored. |
suppressed_reason
|
items.suppressed_reason | string |
Phrase describing the reason for suppressing contact. If is_suppressed is false, this will be null. |
note
|
items.note | string |
Short phrase describing contact. Used for convenience. This is never shown to the contact. |
groups
|
items.groups | array of integer |
Array of integer ids referring to groups this contact belongs to. |
contact_tags
|
items.contact_tags | array of string |
Array of guids referring to tags attached to this contact. |
custom_fields
|
items.custom_fields | array of object |
Array of custom field ids and values defined for this contact. |
id
|
items.custom_fields.id | string |
Guid referring to a custom field. |
value
|
items.custom_fields.value | string |
This contact's value for this custom field. |
is_resolved
|
items.is_resolved | boolean |
Whether the conversation with this contact is resolved. Any new texts received by this contact will set this false. |
first_contact_utc
|
items.first_contact_utc | string |
Timestamp of when the first message was sent to this contact. |
opted_out_utc
|
items.opted_out_utc | string |
Timestamp of when this contact opted out to receiving messages. |
last_msg_sent_utc
|
items.last_msg_sent_utc | string |
Timestamp of when the last message was sent to this contact. |
last_msg_received_utc
|
items.last_msg_received_utc | string |
Timestamp of when the last message was received from this contact. |
total_msgs_sent
|
items.total_msgs_sent | integer |
The number of total messages sent to this contact. |
total_msgs_received
|
items.total_msgs_received | integer |
The number of total messages received from this contact. |
response_count
|
items.response_count | integer |
Total number of response messages from the contact. |
date_created_utc
|
items.date_created_utc | string |
Timestamp of when ths contact was created. |
last_contact_date_utc
|
items.last_contact_date_utc | string |
Timestamp of when the last message was sent or received from this contact. |
message_id
|
items.last_message.message_id | string |
Id of the message. This value is unique for each message. |
body
|
items.last_message.body | string |
Content of this message. |
message_direction
|
items.last_message.message_direction | string |
Singular character, either R or S, denoting whether this message was received from the contact or sent to them, respectively. |
response_by_username
|
items.last_message.response_by_username | string |
Username of the Text Request user that last sent a message to this user. |
message_timestamp_utc
|
items.last_message.message_timestamp_utc | string |
Timestamp of when the message was sent or received by Text Request. |
delivery_status
|
items.last_message.delivery_status | string |
Current status of this message. This can be 'sending', 'delivered', 'error', or 'send'. |
delivery_error
|
items.last_message.delivery_error | string |
Error that caused this message to not be delivered. If the delivery_status is not 'error', this value will be null. |
mms_media
|
items.last_message.mms_media | array of string |
List of urls pointing to this message's attachments. All urls will be text-request generated urls. |
Retrieves all conversations for this dashboard
Retrieves all conversations for this dashboard, and includes info on the last message for each conversation.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Contact Tags
|
tags | string |
Comma-separated list of guids referring to tags to filter conversations by. |
|
Whether to show only resolved conversations
|
show_unresolved_only | string |
Whether to only search for contacts whose conversations have been resolved. If this is false, both resolved and unresolved conversations will be shown. |
|
Whether to include archived conversations
|
include_archived | string |
Whether to include conversations with contacts that have been archived. |
|
Term to filter by for phone numbers and contact name
|
search | string |
Search term for filtering conversations by phone number or display name. If the search term is less than a full name or phone number, the search will return all conversations that partially match it. |
|
Number page to get
|
page | integer |
The page of entities to get. When getting values, there is a max size per page, defined by page_size. If page is greater than the last page, an empty array will be returned. |
|
Amount of each entity to get per page
|
page_size | integer |
The size of each page to get. When getting values, this is a max size per page, with accessing subsequent pages done by the page parameter. |
|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Returns
Name | Path | Type | Description |
---|---|---|---|
page
|
meta.page | integer |
The page of entities gotten. The amount of entities in this page is defined by page_size. |
page_size
|
meta.page_size | integer |
The number of entities gotten in this page. |
total_items
|
meta.total_items | integer |
The number of entities available in the database, regardless of the page size or number. To see the other pages, change the page number in the request. |
items
|
items | array of object |
List of conversation entities gotten from Text Request. |
phone_number
|
items.phone_number | string |
The contact's phone number. |
message_id
|
items.last_message.message_id | string |
Id of the message. This value is unique for each message. |
body
|
items.last_message.body | string |
Content of this message. |
message_direction
|
items.last_message.message_direction | string |
Singular character, either R or S, denoting whether this message was received from the contact or sent to them, respectively. |
response_by_username
|
items.last_message.response_by_username | string |
Username of the Text Request user that last sent a message to this user. |
message_timestamp_utc
|
items.last_message.message_timestamp_utc | string |
Timestamp of when the message was sent or received by Text Request. |
delivery_status
|
items.last_message.delivery_status | string |
Current status of this message. This can be 'sending', 'delivered', 'error', or 'send'. |
delivery_error
|
items.last_message.delivery_error | string |
Error that caused this message to not be delivered. If the delivery_status is not 'error', this value will be null. |
mms_media
|
items.last_message.mms_media | array of string |
List of urls pointing to this message's attachments. All urls will be text-request generated urls. |
Retrieves all custom fields
Retrieves all custom fields for this dashboard. Custom fields are unique between dashboards.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Returns
Name | Path | Type | Description |
---|---|---|---|
|
array of object | ||
id
|
id | string |
The numerical id of the field. |
name
|
name | string |
The name of the custom field. |
Retrieves all groups
Retrieves all groups for the user's account.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Number page to get
|
page | True | integer |
The page of entities to get. When getting values, there is a max size per page, defined by page_size. If page is greater than the last page, an empty array will be returned. |
Amount of each entity to get per page
|
page_size | True | integer |
The size of each page to get. When getting values, this is a max size per page, with accessing subsequent pages done by the page parameter. |
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Returns
Name | Path | Type | Description |
---|---|---|---|
page
|
meta.page | integer |
The page of entities gotten. The amount of entities in this page is defined by page_size. |
page_size
|
meta.page_size | integer |
The number of entities gotten in this page. |
total_items
|
meta.total_items | integer |
The number of entities available in the database, regardless of the page size or number. To see the other pages, change the page number in the request. |
items
|
items | array of object |
List of group entities gotten from Text Request. |
id
|
items.id | integer |
The numerical id of the group. |
group_member_count
|
items.group_member_count | integer |
The number of members of the group. |
is_keyword
|
items.is_keyword | boolean |
Wheter this group is a keyword group. Such groups are autogenerated when a user sets up a keyword. Contacts are automatically added when they enroll. |
name
|
items.name | string |
The name of this group. |
notes
|
items.notes | string |
Any notes on this group. |
last_message_sent_utc
|
items.last_message_sent_utc | string |
The timestamp of when the last group message was sent for this group. |
Retrieves all payments
Retrieves all payments, including canceled and paid payments. These can be filtered using the query parameters.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Reference string of the payment
|
reference_number | string |
User-defined id defined when payments are created that can be used to quickly find payments. Reference numbers are not unique; many payments can have the same reference. |
|
Payment phone number
|
phone_number | string |
Phone number of the contact this payment was sent to. |
|
Sort-by
|
sort_type | string |
Property to sort payments by. Can be "amount", "contact", "date", "status". |
|
Sort direction
|
sort_direction | string |
Direction to sort payments in. Can be "desc" for greatest to smallest, or "asc" for smallest to greatest. |
|
Number page to get
|
page | True | integer |
The page of entities to get. When getting values, there is a max size per page, defined by page_size. If page is greater than the last page, an empty array will be returned. |
Amount of each entity to get per page
|
page_size | True | integer |
The size of each page to get. When getting values, this is a max size per page, with accessing subsequent pages done by the page parameter. |
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Returns
Name | Path | Type | Description |
---|---|---|---|
page
|
meta.page | integer |
The page of entities gotten. The amount of entities in this page is defined by page_size. |
page_size
|
meta.page_size | integer |
The number of entities gotten in this page. |
total_items
|
meta.total_items | integer |
The number of entities available in the database, regardless of the page size or number. To see the other pages, change the page number in the request. |
items
|
items | array of object |
List of payment entities gotten from Text Request. |
payment_id
|
items.payment_id | integer |
The numerical id of the payment. |
request_date
|
items.request_date | string |
The timestamp of when this payment's initial message was queued to be sent. |
recipient
|
items.recipient | string |
The name of the payment recipient. This may be null if the contact does not have a name associated with their phone number. |
description
|
items.description | string |
The description of the payment. This is not shown to the contact. It is only used by internal users for context about payments. |
customer_phone
|
items.customer_phone | string |
The phone number of the contact who is being sent this payment. |
amount_requested
|
items.amount_requested | float |
The amount in dollars requested by this payment. |
is_past_due
|
items.is_past_due | boolean |
Whether this payment is past the request date. |
reminder_was_sent
|
items.reminder_was_sent | boolean |
Whether a text reminder has already been sent for this payment. |
transaction_status
|
items.transaction_status | string |
The status of the transaction in authvia. This value starts as Unknown. |
textrequest_payment_status
|
items.textrequest_payment_status | string |
The status of the transaction in Text Request. This represents that status shown in the payments page on the Text Request app. It starts as Sent. |
reference_number
|
items.reference_number | string |
The user-defined id defined when payments are created that can be used to quickly find payments. Reference numbers are not unique; many payments can have the same reference. |
Retrieves all tags
Retrieves all the tags for this dashboard. Tags are unique between dashboards.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Number page to get
|
page | True | integer |
The page of entities to get. When getting values, there is a max size per page, defined by page_size. If page is greater than the last page, an empty array will be returned. |
Amount of each entity to get per page
|
page_size | True | integer |
The size of each page to get. When getting values, this is a max size per page, with accessing subsequent pages done by the page parameter. |
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Returns
Name | Path | Type | Description |
---|---|---|---|
page
|
meta.page | integer |
The page of entities gotten. The amount of entities in this page is defined by page_size. |
page_size
|
meta.page_size | integer |
The number of entities gotten in this page. |
total_items
|
meta.total_items | integer |
The number of entities available in the database, regardless of the page size or number. To see the other pages, change the page number in the request. |
items
|
items | array of object |
List of tag entities gotten from Text Request. |
id
|
items.id | string |
The numerical id of the tag. |
tag_color
|
items.tag_color | string |
The color of the tag. This should be a valid hexadecimal color code. |
tag
|
items.tag | string |
The name of the tag. |
Retrieves the contact with the specified phone number
If a contact does not yet exist with this phone number in this dashboard, no content will be returned, and no error will be thrown. Only the dashboard specified will be searched; contacts are organized by dashboard, and there is no account level search for a number available.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Phone Number of the contact
|
phone_number | True | string |
Phone number of the contact to get. |
Returns
Name | Path | Type | Description |
---|---|---|---|
phone_number
|
phone_number | string |
Phone number of this contact. |
first_name
|
first_name | string |
First name of this contact. |
last_name
|
last_name | string |
Last name of this contact. |
display_name
|
display_name | string |
Full name of this contact. This is the default name displayed in the web app when viewing contacts. |
is_suppressed
|
is_suppressed | boolean |
Whether the conversation with this contact are suppressed, and therefore not pushed to the top of the message queue when received. |
is_archived
|
is_archived | boolean |
Whether the conversation with this contact are archived, and therefore cannot be seen when querying conversations (by default). |
is_blocked
|
is_blocked | boolean |
Whether the conversation with this contact are blocked, and therefore not received or stored. |
suppressed_reason
|
suppressed_reason | string |
Phrase describing the reason for suppressing contact. If is_suppressed is false, this will be null. |
note
|
note | string |
Short phrase describing contact. Used for convenience. This is never shown to the contact. |
groups
|
groups | array of integer |
Array of integer ids referring to groups this contact belongs to. |
contact_tags
|
contact_tags | array of string |
Array of guids referring to tags attached to this contact. |
custom_fields
|
custom_fields | array of object |
Array of custom field ids and values defined for this contact. |
id
|
custom_fields.id | string |
Guid referring to a custom field. |
value
|
custom_fields.value | string |
This contact's value for this custom field. |
is_resolved
|
is_resolved | boolean |
Whether the conversation with this contact is resolved. Any new texts received by this contact will set this false. |
first_contact_utc
|
first_contact_utc | string |
Timestamp of when the first message was sent to this contact. |
opted_out_utc
|
opted_out_utc | string |
Timestamp of when this contact opted out to receiving messages. |
last_msg_sent_utc
|
last_msg_sent_utc | string |
Timestamp of when the last message was sent to this contact. |
last_msg_received_utc
|
last_msg_received_utc | string |
Timestamp of when the last message was received from this contact. |
total_msgs_sent
|
total_msgs_sent | integer |
The number of total messages sent to this contact. |
total_msgs_received
|
total_msgs_received | integer |
The number of total messages received from this contact. |
response_count
|
response_count | integer |
The total number of response messages from the contact. |
date_created_utc
|
date_created_utc | string |
The timestamp of when ths contact was created. |
last_contact_date_utc
|
last_contact_date_utc | string |
The timestamp of when the last message was sent or received from this contact. |
message_id
|
last_message.message_id | string |
Id of the message. This value is unique for each message. |
body
|
last_message.body | string |
Content of this message. |
message_direction
|
last_message.message_direction | string |
Singular character, either R or S, denoting whether this message was received from the contact or sent to them, respectively. |
response_by_username
|
last_message.response_by_username | string |
Username of the Text Request user that last sent a message to this user. |
message_timestamp_utc
|
last_message.message_timestamp_utc | string |
Timestamp of when the message was sent or received by Text Request. |
delivery_status
|
last_message.delivery_status | string |
Current status of this message. This can be 'sending', 'delivered', 'error', or 'send'. |
delivery_error
|
last_message.delivery_error | string |
Error that caused this message to not be delivered. If the delivery_status is not 'error', this value will be null. |
mms_media
|
last_message.mms_media | array of string |
List of urls pointing to this message's attachments. All urls will be text-request generated urls. |
Retrieves the payment with the specified id
Retrieves the payment with the specified id.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Id of the payment
|
payment_id | True | integer |
The numerical id of the payment to get. |
Returns
Name | Path | Type | Description |
---|---|---|---|
payment_id
|
payment_id | integer |
The numerical id of the payment. |
request_date
|
request_date | string |
The timestamp of when this payment's initial message was queued to be sent. |
recipient
|
recipient | string |
The name of the payment recipient. This may be null if the contact does not have a name associated with their phone number. |
description
|
description | string |
The description of the payment. This is not shown to the contact. It is only used by internal users for context about payments. |
customer_phone
|
customer_phone | string |
The phone number of the contact who is being sent this payment. |
amount_requested
|
amount_requested | float |
The amount in dollars requested by this payment. |
is_past_due
|
is_past_due | boolean |
Whether this payment is past the request date. |
reminder_was_sent
|
reminder_was_sent | boolean |
Whether a text reminder has already been sent for this payment. |
transaction_status
|
transaction_status | string |
The status of the transaction in authvia. This value starts as Unknown. |
textrequest_payment_status
|
textrequest_payment_status | string |
The status of the transaction in Text Request. This represents that status shown in the payments page on the Text Request app. It starts as Sent. |
reference_number
|
reference_number | string |
The user-defined id defined when payments are created that can be used to quickly find payments. Reference numbers are not unique; many payments can have the same reference. |
Send a follow-up text reminding the user to pay the specified payment
Sends a reminder to the contact to pay the specified payment. The content of the message is auto-generated. To avoid spam, only one reminder can be sent per payment
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Id of the payment
|
payment_id | True | integer |
The numerical id of the payment to update. |
Returns
Name | Path | Type | Description |
---|---|---|---|
payment_id
|
payment_id | integer |
The numerical id of the payment. |
request_date
|
request_date | string |
The timestamp of when this payment's initial message was queued to be sent. |
recipient
|
recipient | string |
The name of the payment recipient. This may be null if the contact does not have a name associated with their phone number. |
description
|
description | string |
The description of the payment. This is not shown to the contact. It is only used by internal users for context about payments. |
customer_phone
|
customer_phone | string |
The phone number of the contact who is being sent this payment. |
amount_requested
|
amount_requested | float |
The amount in dollars requested by this payment. |
is_past_due
|
is_past_due | boolean |
Whether this payment is past the request date. |
reminder_was_sent
|
reminder_was_sent | boolean |
Whether a text reminder has already been sent for this payment. |
transaction_status
|
transaction_status | string |
The status of the transaction in authvia. This value starts as Unknown. |
textrequest_payment_status
|
textrequest_payment_status | string |
The status of the transaction in Text Request. This represents that status shown in the payments page on the Text Request app. It starts as Sent. |
reference_number
|
reference_number | string |
The user-defined id defined when payments are created that can be used to quickly find payments. Reference numbers are not unique; many payments can have the same reference. |
Send a message to the contact with the given phone number
Sends a message (starting a new conversation if the given phone number has no message history).
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Phone Number to Message
|
phone_number | True | string |
Phone number of the contact to send a message to. |
Message body
|
body | string |
Content of the message to send. |
|
Name of the sender
|
sender_name | string |
The name of the message sender. This is shown in the TextRequest web app and api when retrieving this message. |
|
Callback url for when the message status updates
|
status_callback | string |
Url for the web app to hit with a POST command whenever this message's status goes from undelivered to sent (or error). |
|
Callback url for location requests if this message includes one
|
location_callback | string |
Location callback url to hit with a POST command when the user accesses and approves sharing their location with the sender. To include the link, add [Location Request] to the message body. This callback is not required for location requests, but it can be useful for APIs. |
|
MMS Media attachments for this message
|
mms_media | array of string |
Array of MMS Media attachments for this message. Attachments must be urls gotten from the post /mms endpoint (not included in this connector). External attachment links will not be accepted. |
Returns
Name | Path | Type | Description |
---|---|---|---|
message_id
|
message_id | string |
Id of the message. This value is unique for each message. |
body
|
body | string |
Content of this message. |
message_direction
|
message_direction | string |
Singular character, either R or S, denoting whether this message was received from the contact or sent to them, respectively. |
response_by_username
|
response_by_username | string |
Username of the Text Request user that last sent a message to this user. |
message_timestamp_utc
|
message_timestamp_utc | string |
Timestamp of when the message was sent or received by Text Request. |
delivery_status
|
delivery_status | string |
Current status of this message. This can be 'sending', 'delivered', 'error', or 'send'. |
delivery_error
|
delivery_error | string |
Error that caused this message to not be delivered. If the delivery_status is not 'error', this value will be null. |
mms_media
|
mms_media | array of string |
List of urls pointing to this message's attachments. All urls will be text-request generated urls. |
Unarchive a Conversation
Unarchive a conversation. Once a conversation is unarchived, it will once again appear in the queue. it will also appear in conversations returned by the /conversations endpoint. If a conversation is already unarchived, this method has no effect.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Phone Number of conversation
|
phone_number | True | string |
Phone number of the conversation to archive. |
Returns
- response
- string
Update a specific dashboard's name
Updates a dashboard. This does not change a dashboard's phone number. If you want a new number with another dashboard's contacts, you will have to create a new dashboard with a POST and add the contacts with a bulk export/import.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Dashboard name
|
name | string |
The new name of the dashboard. |
Returns
Name | Path | Type | Description |
---|---|---|---|
id
|
id | integer |
The numerical id of the dashboard. |
name
|
name | string |
The name of the dashboard. |
phone
|
phone | string |
The texting number associated with this dashboard. |
Updates a group with the given id
Updates a group's name using the group's numerical id. If the passed in group id does not exist, the call will fail.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Id of the dashboard to make this call on
|
dashboard_id | True | integer |
The phone number dashboard to work on. A single account can have several dashboards, representing different phone lines for customers. |
Id of the group
|
group_id | True | integer |
The numerical id of the group to update. |
Group name
|
name | string |
The new name of the group. |
|
Group note
|
notes | string |
Short phrase describing group. Used for convenience. |
Returns
Name | Path | Type | Description |
---|---|---|---|
id
|
id | integer |
The numerical id of the group. |
group_member_count
|
group_member_count | integer |
The number of members of the group. |
is_keyword
|
is_keyword | boolean |
Wheter this group is a keyword group. Such groups are autogenerated when a user sets up a keyword. Contacts are automatically added when they enroll. |
name
|
name | string |
The name of this group. |
notes
|
notes | string |
Any notes on this group. |
last_message_sent_utc
|
last_message_sent_utc | string |
Timestamp of when the last group message was sent for this group. |
Definitions
string
This is the basic data type 'string'.