Skip to navigation

webflow.interactions.get(id)

Get a single interaction by id, with its timelines resolved inline.

Syntax

webflow.interactions.get(id: InteractionId): Promise<Interaction | null>

Parameters

  • id : string - The interaction id.

Returns

Promise<Interaction | null>

A Promise that resolves to the interaction, or null if it doesn’t exist (or is deleted).

Example

const interaction = await webflow.interactions.get('interaction-id');
if (interaction) {
console.log(interaction.name, interaction.timelines.length);
}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadInteractionsAnyMainAnyAny