Skip to main content

InteractionsService

A list of all methods in the InteractionsService service. Click on the method name to view detailed information about that method.

MethodsDescription
interaction_get_interactionRetrieve a specific Interaction by providing the interactionId.
interaction_delete_interactionDelete a specific Interaction by providing the interactionId.
interaction_get_interactionsRetrieve multiple Interactions of a specified type connected to a specific contactId. Both schemaId and contactId are required.
The continuation parameter can be used to access the next page when there are more than 50 records available. This token can be found in the response.
interaction_create_interactionCreate a new Interaction connected to a specific contactId.

interaction_get_interaction

Retrieve a specific Interaction by providing the interactionId.

  • HTTP Method: GET
  • Endpoint: /api/v2/interactions/{interactionId}

Parameters

NameTypeRequiredDescription
interaction_idstr

Return Type

InteractionModel

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.interactions.interaction_get_interaction(interaction_id="interactionId")

print(result)

interaction_delete_interaction

Delete a specific Interaction by providing the interactionId.

  • HTTP Method: DELETE
  • Endpoint: /api/v2/interactions/{interactionId}

Parameters

NameTypeRequiredDescription
interaction_idstr

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.interactions.interaction_delete_interaction(interaction_id="interactionId")

print(result)

interaction_get_interactions

Retrieve multiple Interactions of a specified type connected to a specific contactId. Both schemaId and contactId are required. The continuation parameter can be used to access the next page when there are more than 50 records available. This token can be found in the response.

  • HTTP Method: GET
  • Endpoint: /api/v2/interactions

Parameters

NameTypeRequiredDescription
contact_idstr
schema_idstr
continuationstr

Return Type

InteractionPage

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.interactions.interaction_get_interactions(
contact_id="contactId",
schema_id="schemaId",
continuation="continuation"
)

print(result)

interaction_create_interaction

Create a new Interaction connected to a specific contactId.

  • HTTP Method: POST
  • Endpoint: /api/v2/interactions

Parameters

NameTypeRequiredDescription
request_bodyanyThe request body.

Return Type

InteractionCreateResponse

Example Usage Code Snippet

from voyado_engage import VoyadoEngage, Environment
from voyado_engage.models import any

sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = ""

result = sdk.interactions.interaction_create_interaction(request_body=request_body)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →