ParasendDocs
Sign in Start free

Create a delivery

POST/v1/deliveries

Creates a delivery and sends its notice. The recipient needs at least an email or a phone; the address actually used is printed on the Delivery Certificate. Upload the files first with POST /files and pass their fil_ IDs in files. To let only one person open it, set recipient.conditional_authentication with their personal_code (eID, verification_level: high) or id_document_number (ID document check, substantial). Send an Idempotency-Key: a retry with the same key returns the first response and never sends twice.

Examples

Body

Required

  • recipientobjectrequired

    Who receives a delivery. At least one of email and phone; phone is required at verification_level: medium, where the SMS code goes. With conditional_authentication true, only the named person can open it: personal_code is required at high (only an eID with that kennitala passes) and id_document_number at substantial (only that identity document passes). Without it, the recipient still verifies at the level you set, and their verified identity is recorded and returned to you. A mismatch is the event delivery.auth_failed, with the reason personal_code_mismatch or id_document_mismatch.

    8 fields of recipient
    • How the recipient must identify themselves before they see the documents: high, eID; substantial, a passport or ID-card check with a selfie; medium, a one-time code sent by SMS when they open the link; low, the link alone. A stronger way is always accepted.

      One of high substantial medium low
    • recipient.namestring · nullable

      The recipient's name as you gave it, trimmed: up to 255 characters, no control characters. It is sealed into the evidence as given and never checked; null when none was given. verified_name holds the name from their eID or passport.

    • recipient.emailstring · email · nullable

      The recipient's e-mail address, where e-mail notices and reminders go; null when not given. At least one of email and phone is required.

    • recipient.phonestring · nullable

      E.164

    • recipient.addressobject · nullable
      6 fields of address
    • When true, only the person you name can open the delivery: at high their eID must carry personal_code, and at substantial their passport or ID card must carry id_document_number. Default false: the recipient still identifies themselves at the level, and you get back the identity they used.

      Default false
    • recipient.personal_codestring · nullable

      The recipient's Icelandic personal code (kennitala). Required when conditional_authentication is true at high.

    • The number of the recipient's passport or ID card. Required when conditional_authentication is true at substantial.

  • filesarray of stringrequired

    The files to send: the fil_ IDs that Upload a file returned.

Optional

  • optionsobject
    8 fields of options
    • How the recipient is told — the invitation and every reminder go to each channel listed; each needs its contact (recipient.email, recipient.phone). Default — e-mail when there is an address, else SMS. Told on both, a failure on one channel bounces the delivery only once the other cannot arrive either.

      One of email sms
    • options.auth_methodsarray of string

      Which ways of identifying the recipient to offer within recipient.verification_level, in your order of preference. The recipient may always use a way at least as strong as the weakest one you list. Left out: every way the level allows (an SMS code only when the recipient has a phone).

      One of audkenni smart_id sms_otp passkey videoid password link_only
    • options.reminder_policystring · nullable

      The follow-up policy's ID (rpol_…): the reminders this delivery sends while it waits.

    • options.brand_profile_idstring · nullable

      The brand profile's ID (bp_…). One set on the delivery wins over the batch's, and the batch's over the account's default.

    • How many days the recipient has to confirm receipt before the delivery expires: a whole number from 1 to 365. Default 30. For a delivery in a batch, the days count from when the batch is sent out.

    • What the recipient and the evidence show as the sender. legal_person (your organisation's default) shows the organisation, with an opaque reference to the person who sent it; that person's name, personal code and e-mail are not shown. individual names the person who sent it as well. Your choice per delivery or template; a personal account is always individual.

      One of legal_person individual
    • Which saved wording the first notice uses, per channel: a wording ID, null for Parasend's own, or left out for your organisation's default.

      2 fields of notice_wording
  • metadataobject

    Your own key–value pairs, kept with the object and returned as you sent them. Never put personal data here.

  • titlestring

    The subject the recipient sees in the notice and on their page.

    at most 200 characters
  • messagestring

    A plain-text note shown before sign-in. Line breaks are kept. It is not sealed into the evidence.

    at most 1000 characters
  • languagestring

    The language of the notice and of the recipient page.

    One of is en
    Default "is"

Returns

201 application/json. Created. Includes the signed delivery_url for the recipient. See the Delivery object.

Errors have one shape; see Errors for every code.