Spruce Health

App · 12 actions

Read Spruce Health contacts, conversations, tags and contact fields.

Actions

ActionWhat it does
Create contactCreate contact.
Get contactGet contact.
Get conversationGet conversation.
List contact conversationsList contact conversations.
List contact fieldsList contact fields.
List contact linksList contact links.
List contact tagsList contact tags.
List contactsList contacts.
List conversationsList conversations.
List scheduled messagesList scheduled messages.
Search contactsSearch contacts.
Update contactUpdate contact.

Create contact

Create contact.

Inputs

Categorycategorytext
Category.One of: patient, professional.
Company namecompany_nametext
Company name.
Date of birthdate_of_birthdate
Date of birth.
Email addressesemail_addresseslist
Email addresses.
Family namefamily_nametext
Family name.
Fax numbersfax_numberslist
Fax numbers.
Gendergendertext
Gender.One of: unknown, male, female, other.
Gender detailgender_detailtext
Gender detail.
Given namegiven_nametext
Given name.
Internal member IDsinternal_member_idslist
Internal member ids.
Middle namemiddle_nametext
Middle name.
Organization contact fieldsorganization_contact_fieldslist
Organization contact fields.
Phone numbersphone_numberslist
Phone numbers.
Pronounspronounstext
Pronouns.
Tag IDstag_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

Contactcontact_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

Conversationconversation_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

Contactcontact_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 sizepage_sizenumber
Page size.From 1 to 500.
Pagination tokenpagination_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.

Inputs

Contactcontact_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 sizepage_sizenumber
Page size.From 1 to 500.
Pagination tokenpagination_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 sizepage_sizenumber
Page size.From 1 to 500.
Pagination tokenpagination_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 sizepage_sizenumber
Page size.From 1 to 200.
Pagination tokenpagination_tokentext
Pagination token.
Order byorder_bytextRequired
Order by.One of: created, last_message (Last message).
Start fromstart_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

Conversationconversation_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 sizepage_sizenumber
Page size.From 1 to 500.
Pagination tokenpagination_tokentext
Pagination token.
Free textfree_texttext
Free text.
Structuredstructuredobject
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

Contactcontact_idtextRequired
Contact id.
Categorycategorytext
Category.One of: patient, professional.
Company namecompany_nametext
Company name.
Date of birthdate_of_birthdate
Date of birth.
Email addressesemail_addresseslist
Email addresses.
Family namefamily_nametext
Family name.
Fax numbersfax_numberslist
Fax numbers.
Gendergendertext
Gender.One of: unknown, male, female, other.
Gender detailgender_detailtext
Gender detail.
Given namegiven_nametext
Given name.
Internal member IDsinternal_member_idslist
Internal member ids.
Middle namemiddle_nametext
Middle name.
Organization contact fieldsorganization_contact_fieldslist
Organization contact fields.
Phone numbersphone_numberslist
Phone numbers.
Pronounspronounstext
Pronouns.
Tag IDstag_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"
      }
    ]
  }
}

On this page