English
Seyna
Finds and reads a Seyna insurance policy, fetches its documents, lists and reads quote requests.
The Seyna node connects an insurance broker’s or distributor’s mailbox to Seyna: it finds and reads a policy, fetches its documents (a certificate, for example) into the run, and lists or reads quote requests to follow a subscription.
The node is read-only: it writes nothing at Seyna, and declares no claim — Seyna API 2024-10 exposes none.
See Seyna to create the connection.
At a glance
- Type:
seyna.api· version 1 - Category: Data
- Kind: Step — one stage of a run
- Effect: No external effect (
none) — nothing is written outside Loop & Roll; safe to replay - Needs a carrier email: No
- Connection: Seyna
- Inputs:
main - Outputs:
main
Connection
This node needs a Seyna connection.
Parameters
connection
Seyna connection — The Seyna connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
action
Action
- Type: One choice (
options) - Required: Yes
- Default:
policy.find - Options:
policy.find— Find a policypolicy.get— Get a policypolicy.documents— Documents of a policyquoteRequest.list— List quote requestsquoteRequest.get— Get a quote request
search
Search — A policy reference, a name.
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 200 characters at most
- Example:
{{ data.read.policy_number }} - Shown when:
actionispolicy.find - Expressions:
{{ }}accepted
policyId
Policy (Seyna ID)
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 36 characters at most
- Shown when:
actionis one ofpolicy.get,policy.documents - Expressions:
{{ }}accepted
download
Fetch the files — Adds the documents (ten at most) to the run, so an email can attach them.
- Type: Yes / no (
boolean) - Required: No
- Default:
true - Shown when:
actionispolicy.documents
quoteRequestId
Quote request (Seyna ID)
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 36 characters at most
- Shown when:
actionisquoteRequest.get - Expressions:
{{ }}accepted
Outputs
main— Taken once the call to Seyna succeeds, whatever the action. An error response from Seyna fails the step instead.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.<step>.found }}—boolean. Find a policy: true when at least one policy matches.{{ data.<step>.policy }}—{ id, reference, coverStatus, startDate, endDate, coverStartsAt, coverEndsAt, terminationStatus, productId, createdAt }. Find a policy: the first one found (null otherwise). Get a policy: the policy.{{ data.<step>.policyId }}—string. Find a policy: the Seyna ID of the first one found, to pass to Documents of a policy. Empty when nothing is found.{{ data.<step>.policies }}—array of { id, reference, coverStatus, startDate, endDate, coverStartsAt, coverEndsAt, terminationStatus, productId, createdAt }. Find a policy: the policies found, ten at most.{{ data.<step>.documents }}—array of { id, fileName, type, createdAt }. Documents of a policy: the list of documents (without their download link).{{ data.<step>.attachments }}—array of { position, filename }. Documents of a policy with Fetch the files: the files added to the run.{{ data.<step>.attachmentPositions }}—array of number. Documents of a policy: the positions of the files added, to cite in Compose.{{ data.<step>.quoteRequests }}—array of { id, reference, status, type, productId, startsAt, endsAt, createdAt }. List quote requests: fifty at most.{{ data.<step>.count }}—number. List quote requests: the number of requests returned.{{ data.<step>.quoteRequest }}—{ id, reference, status, type, productId, startsAt, endsAt, createdAt }. Get a quote request: the request.{{ data.<step>.summary }}—string. The one-line summary in the member’s language (withsummaryKeyandsummaryParams).
Operations
The node has a single Action parameter (action). Each action calls the Seyna API with the connection’s key, in the chosen environment (sandbox or production).
- Find a policy (
policy.find, the default): Search by policy reference or name, ten results at most. - Get a policy (
policy.get) by its Seyna ID (a UUID). - Documents of a policy (
policy.documents): the list of documents; Fetch the files, ticked by default, adds ten at most to the run, 15 MB at most each. Files are downloaded through their link, without the key: it never goes to another host. - List quote requests (
quoteRequest.list), fifty at most; Get a quote request (quoteRequest.get) by its ID.
Example
A policyholder asks for their certificate. A read step extracted their policy number; a policy node finds it (policy.find), a docs node fetches its documents, then Compose replies attaching {{ data.docs.attachmentPositions }}:
text
action policy.documents
policyId {{ data.policy.policyId }}
download trueTips
- Testing. Every action is a read: they go out for real in a test run.
- Sandbox. A connection set to the sandbox only reads sandbox data: choose production for real policies.
- Errors.
integration.unauthorized: the key was refused, replace it in the connection.integration.not_found: the ID points to nothing for this account.integration.rate_limitedandintegration.unavailableare retried automatically. An empty required parameter or an ID that is not a UUID fails the step withnode_invalid_param, before any call. See Error handling.