Spruce Health
App · 12 actions
Read Spruce Health contacts, conversations, tags and contact fields.
Actions
| Action | What it does |
|---|---|
| Create contact | Create contact. |
| Get contact | Get contact. |
| Get conversation | Get conversation. |
| List contact conversations | List contact conversations. |
| List contact fields | List contact fields. |
| List contact links | List contact links. |
| List contact tags | List contact tags. |
| List contacts | List contacts. |
| List conversations | List conversations. |
| List scheduled messages | List scheduled messages. |
| Search contacts | Search contacts. |
| Update contact | Update contact. |
Create contact
Create contact.
Inputs
- Category
categorytext - Category.One of:
patient,professional. - Company name
company_nametext - Company name.
- Date of birth
date_of_birthdate - Date of birth.
- Email addresses
email_addresseslist - Email addresses.
- Family name
family_nametext - Family name.
- Fax numbers
fax_numberslist - Fax numbers.
- Gender
gendertext - Gender.One of:
unknown,male,female,other. - Gender detail
gender_detailtext - Gender detail.
- Given name
given_nametext - Given name.
- Internal member IDs
internal_member_idslist - Internal member ids.
- Middle name
middle_nametext - Middle name.
- Organization contact fields
organization_contact_fieldslist - Organization contact fields.
- Phone numbers
phone_numberslist - Phone numbers.
- Pronouns
pronounstext - Pronouns.
- Tag IDs
tag_idslist - Tag ids.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"apiURL": "example",
"appURL": "example",
"canDelete": true,
"canEdit": true,
"category": "patient",
"companyName": "example",
"created": "example",
"customContactFields": [
{
"id": "example",
"name": "example",
"value": "example"
}
],
"dateOfBirth": "example",
"displayName": "example",
"emailAddresses": [
{
"id": "example",
"label": "example",
"value": "example"
}
],
"embedded": true,
"familyName": "example",
"faxNumbers": [
{
"displayValue": "example",
"id": "example",
"label": "example",
"value": "example"
}
],
"gender": "unknown",
"genderDetail": "example",
"givenName": "example",
"hasAccount": true,
"hasPendingInvite": true,
"id": "example",
"integrationLinks": [
{
"contactId": "example",
"externalId": "example",
"type": "elation",
"url": "example"
}
],
"internalMemberIds": [
"example"
],
"middleName": "example",
"object": "example",
"organizationContactFields": [
{
"id": "example",
"name": "example",
"value": "example"
}
],
"phoneNumbers": [
{
"displayValue": "example",
"id": "example",
"label": "example",
"value": "example"
}
],
"pronouns": "example",
"tags": [
{
"id": "example",
"object": "example",
"value": "example"
}
]
}
}Get contact
Get contact.
Inputs
- Contact
contact_idtextRequired - Contact id.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"apiURL": "example",
"appURL": "example",
"canDelete": true,
"canEdit": true,
"category": "patient",
"companyName": "example",
"created": "example",
"customContactFields": [
{
"id": "example",
"name": "example",
"value": "example"
}
],
"dateOfBirth": "example",
"displayName": "example",
"emailAddresses": [
{
"id": "example",
"label": "example",
"value": "example"
}
],
"embedded": true,
"familyName": "example",
"faxNumbers": [
{
"displayValue": "example",
"id": "example",
"label": "example",
"value": "example"
}
],
"gender": "unknown",
"genderDetail": "example",
"givenName": "example",
"hasAccount": true,
"hasPendingInvite": true,
"id": "example",
"integrationLinks": [
{
"contactId": "example",
"externalId": "example",
"type": "elation",
"url": "example"
}
],
"internalMemberIds": [
"example"
],
"middleName": "example",
"object": "example",
"organizationContactFields": [
{
"id": "example",
"name": "example",
"value": "example"
}
],
"phoneNumbers": [
{
"displayValue": "example",
"id": "example",
"label": "example",
"value": "example"
}
],
"pronouns": "example",
"tags": [
{
"id": "example",
"object": "example",
"value": "example"
}
]
}
}Get conversation
Get conversation.
Inputs
- Conversation
conversation_idtextRequired - Conversation id.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"conversation": {
"apiURL": "example",
"appURL": "example",
"archived": true,
"assignedToMemberId": "example",
"associatedContactIds": [
"example"
],
"createdAt": "example",
"externalParticipants": [
{}
],
"id": "example",
"internalEndpoint": {
"channel": "email",
"displayValue": "example",
"id": "example",
"isInternal": true,
"label": "example",
"object": "example",
"rawValue": "example"
},
"internalMemberIds": [
"example"
],
"isReadOnly": true,
"lastMessageAt": "example",
"object": "example",
"subtitle": "example",
"tags": [
{}
],
"title": "example",
"type": "email"
}
}
}List contact conversations
List contact conversations.
Inputs
- Contact
contact_idtextRequired - Contact id.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"conversations": [
{
"apiURL": "example",
"appURL": "example",
"archived": true,
"assignedToMemberId": "example",
"associatedContactIds": [
"example"
],
"createdAt": "example",
"externalParticipants": [
{}
],
"id": "example",
"internalEndpoint": {},
"internalMemberIds": [
"example"
],
"isReadOnly": true,
"lastMessageAt": "example",
"object": "example",
"subtitle": "example",
"tags": [
{}
],
"title": "example",
"type": "email"
}
]
}
}List contact fields
List contact fields.
Inputs
- Page size
page_sizenumber - Page size.From 1 to 500.
- Pagination token
pagination_tokentext - Pagination token.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"fields": [
{
"id": "example",
"name": "example"
}
],
"hasMore": true,
"paginationToken": "example",
"totalCount": 1
}
}List contact links
List contact links.
Inputs
- Contact
contact_idtextRequired - Contact id.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"integrationLinks": [
{
"contactId": "example",
"externalId": "example",
"type": "elation",
"url": "example"
}
]
}
}List contact tags
List contact tags.
Inputs
- Page size
page_sizenumber - Page size.From 1 to 500.
- Pagination token
pagination_tokentext - Pagination token.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"hasMore": true,
"paginationToken": "example",
"tags": [
{
"id": "example",
"object": "example",
"value": "example"
}
],
"totalCount": 1
}
}List contacts
List contacts.
Inputs
- Page size
page_sizenumber - Page size.From 1 to 500.
- Pagination token
pagination_tokentext - Pagination token.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"contacts": [
{
"apiURL": "example",
"appURL": "example",
"canDelete": true,
"canEdit": true,
"category": "patient",
"companyName": "example",
"created": "example",
"customContactFields": [
{}
],
"dateOfBirth": "example",
"displayName": "example",
"emailAddresses": [
{}
],
"embedded": true,
"familyName": "example",
"faxNumbers": [
{}
],
"gender": "unknown",
"genderDetail": "example",
"givenName": "example",
"hasAccount": true,
"hasPendingInvite": true,
"id": "example",
"integrationLinks": [
{}
],
"internalMemberIds": [
"example"
],
"middleName": "example",
"object": "example",
"organizationContactFields": [
{}
],
"phoneNumbers": [
{}
],
"pronouns": "example",
"tags": [
{}
]
}
],
"hasMore": true,
"paginationToken": "example",
"totalCount": 1
}
}List conversations
List conversations.
Inputs
- Page size
page_sizenumber - Page size.From 1 to 200.
- Pagination token
pagination_tokentext - Pagination token.
- Order by
order_bytextRequired - Order by.One of:
created,last_message(Last message). - Start from
start_fromdate and time - Start from.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"conversations": [
{
"apiURL": "example",
"appURL": "example",
"archived": true,
"assignedToMemberId": "example",
"associatedContactIds": [
"example"
],
"createdAt": "example",
"externalParticipants": [
{}
],
"id": "example",
"internalEndpoint": {},
"internalMemberIds": [
"example"
],
"isReadOnly": true,
"lastMessageAt": "example",
"object": "example",
"subtitle": "example",
"tags": [
{}
],
"title": "example",
"type": "email"
}
],
"hasMore": true,
"paginationToken": "example",
"totalCount": 1
}
}List scheduled messages
List scheduled messages.
Inputs
- Conversation
conversation_idtextRequired - Conversation id.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"scheduledMessages": [
{
"conversationId": "example",
"createdAt": "example",
"id": "example",
"isInternalNote": true,
"message": {},
"modifiedAt": "example",
"object": "example",
"scheduledToSendAt": "example",
"sendAsInternalMemberId": "example",
"sentConversationItemId": "example"
}
]
}
}Search contacts
Search contacts.
Inputs
- Page size
page_sizenumber - Page size.From 1 to 500.
- Pagination token
pagination_tokentext - Pagination token.
- Free text
free_texttext - Free text.
- Structured
structuredobject - Structured.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"contacts": [
{
"apiURL": "example",
"appURL": "example",
"canDelete": true,
"canEdit": true,
"category": "patient",
"companyName": "example",
"created": "example",
"customContactFields": [
{}
],
"dateOfBirth": "example",
"displayName": "example",
"emailAddresses": [
{}
],
"embedded": true,
"familyName": "example",
"faxNumbers": [
{}
],
"gender": "unknown",
"genderDetail": "example",
"givenName": "example",
"hasAccount": true,
"hasPendingInvite": true,
"id": "example",
"integrationLinks": [
{}
],
"internalMemberIds": [
"example"
],
"middleName": "example",
"object": "example",
"organizationContactFields": [
{}
],
"phoneNumbers": [
{}
],
"pronouns": "example",
"tags": [
{}
]
}
],
"hasMore": true,
"paginationToken": "example",
"totalCount": 1,
"totalCountRelation": "eq"
}
}Update contact
Update contact.
Inputs
- Contact
contact_idtextRequired - Contact id.
- Category
categorytext - Category.One of:
patient,professional. - Company name
company_nametext - Company name.
- Date of birth
date_of_birthdate - Date of birth.
- Email addresses
email_addresseslist - Email addresses.
- Family name
family_nametext - Family name.
- Fax numbers
fax_numberslist - Fax numbers.
- Gender
gendertext - Gender.One of:
unknown,male,female,other. - Gender detail
gender_detailtext - Gender detail.
- Given name
given_nametext - Given name.
- Internal member IDs
internal_member_idslist - Internal member ids.
- Middle name
middle_nametext - Middle name.
- Organization contact fields
organization_contact_fieldslist - Organization contact fields.
- Phone numbers
phone_numberslist - Phone numbers.
- Pronouns
pronounstext - Pronouns.
- Tag IDs
tag_idslist - Tag ids.
Outputs
dataobject- The response from Spruce Health.
Example output
{
"data": {
"apiURL": "example",
"appURL": "example",
"canDelete": true,
"canEdit": true,
"category": "patient",
"companyName": "example",
"created": "example",
"customContactFields": [
{
"id": "example",
"name": "example",
"value": "example"
}
],
"dateOfBirth": "example",
"displayName": "example",
"emailAddresses": [
{
"id": "example",
"label": "example",
"value": "example"
}
],
"embedded": true,
"familyName": "example",
"faxNumbers": [
{
"displayValue": "example",
"id": "example",
"label": "example",
"value": "example"
}
],
"gender": "unknown",
"genderDetail": "example",
"givenName": "example",
"hasAccount": true,
"hasPendingInvite": true,
"id": "example",
"integrationLinks": [
{
"contactId": "example",
"externalId": "example",
"type": "elation",
"url": "example"
}
],
"internalMemberIds": [
"example"
],
"middleName": "example",
"object": "example",
"organizationContactFields": [
{
"id": "example",
"name": "example",
"value": "example"
}
],
"phoneNumbers": [
{
"displayValue": "example",
"id": "example",
"label": "example",
"value": "example"
}
],
"pronouns": "example",
"tags": [
{
"id": "example",
"object": "example",
"value": "example"
}
]
}
}