Skip to content

Create a deep link

POSThttps://sandbox-api.tryflume.ai/partner/v1/deep-links

Creates a one-time link that opens the Flume app with the user signed in.

  • Create it when the user clicks, and open it at once. It works once, within 7 days.
  • search_session_uuid is required. Add sku_uuid to open a product from that search.
  • A replay of the same Idempotency-Key returns url: null.

Guide: Open Flume signed in

Request

Headers

HeaderRequiredDescription
X-Flume-Partner-KeyYesYour partner key. See Authentication and keys.
X-Flume-User-TokenYesThe access token of the user you call for. See Users and verification.
Idempotency-KeyNoOne value per user action, 1 to 255 characters. A retry with the same value returns the first response.

Body

Send application/json. A field the API does not list returns a 422 that names it.

  • search_session_uuidstring (UUID)Required

    One of the user's searches. Without sku_uuid, the link opens its results.

  • sku_uuidstring (UUID) or nullOptional

    A product to open. It must be a result of that search.

  • quote_uuidstring (UUID) or nullOptional

    An instant quote to open, with sku_uuid. It must be READY and belong to the user.

  • targetenum or nullOptional

    What the link opens: product, search or quote. Optional. Without it, the link opens the most specific id you send: quote_uuid, then sku_uuid, then the search. When set, it wins: product with a quote_uuid opens the product. quote needs quote_uuid, and product needs sku_uuid. Every id you send is checked, whatever target says.

  • utm_contentstring or nullOptional

    A name for the button that asked, for your own reporting.

    • Max 64 characters
  • redirect_uristring or nullOptional

    Where Flume sends the user back to. It must be an https URL on a redirect host agreed with Flume.

    • Max 2,048 characters

Returns

201 with these fields. Every field is always present. A field with no value is null.

  • urlstring or null

    The link. It works once, within 7 days. null when you replay an Idempotency-Key.

  • When the link stops working, in UTC.

Errors

Every error uses one envelope. Branch on error.code.

StatusCodeMeaning
401EMBED_TOKEN_INVALIDYou sent an Authorization header and no X-Flume-Partner-Key. Flume read the call as one from its own iframe.
401PARTNER_KEY_INVALIDThe partner key is missing, unknown, revoked, expired, or from the other environment. On live, also a platform Flume has not enabled yet.
401USER_TOKEN_INVALIDThe user access token is unknown, revoked, another partner's, or replaced by a later verification. A verification in the iframe replaces it too.
403USER_ACCOUNT_CLOSEDThe user's email belongs to a Flume account that Flume has closed.
403USER_NOT_CONNECTEDNo X-Flume-User-Token header was sent.
404NOT_FOUNDThe thing does not exist, or is not this user's. A search id that is not a UUID also returns this code.
404SESSION_NOT_FOUNDThe search does not exist, or is another user's.
409IDEMPOTENCY_IN_PROGRESSThe first call with this key is still running.
422IDEMPOTENCY_KEY_REUSEDThe key was already used with a different body.
422QUOTE_NOT_READYThe quote is not READY. On POST /save-item it also covers a quote that expired, is not this user's, lacks the option you named, or is under that option's minimum order.
422SKU_NOT_IN_SEARCHThe product was not a result of the search you named.
422VALIDATION_FAILEDA field is missing, unknown or has an unusable value. field names it as a dotted path. Some refusals carry the detail in details and leave field empty.
429RATE_LIMITEDToday's limit for this call is used up. Retry-After is the number of seconds until 00:00 UTC.
500INTERNALSomething failed on Flume's side.