---
title: "Create Connection Link"
method: POST
path: "/v1/accounts/{account_id}/environments/{environment_id}/connections/links"
tags: ["Connections"]
---

# Create Connection Link

`POST /v1/accounts/{account_id}/environments/{environment_id}/connections/links`

## Request

- Base URL: `https://api.rivery.io`
- URL: `https://api.rivery.io/v1/accounts/{account_id}/environments/{environment_id}/connections/links`
- Auth: HTTP bearer

**Authorization scope:** `connection:share` 
 
 **Generate a single-use link that lets a third party work on one connection.**
****
**The link can be sent to someone outside the tenant (a customer, a partner) so they can fill in**
**connection credentials without being given access to the account. It expires after at most 24**
**hours and is spent as soon as it is used.**
****
**Two modes:**
****
*** To have a **new** connection created, provide either a ``source_name`` or an explicit**
**``connection_type``.**
*** To have an **existing** connection updated, provide its ``connection_id``. The link opens**
**that connection with its current values filled in - passwords shown as a mask - and can be**
**used on that connection only.**
****
**Both modes work for every connection type: the console opens whichever connection form the**
**data source belongs to.**
****
**Delivery: the ``url`` is a cryptographically signed string — it fails if even one character**
**changes. Do NOT extract or re-render the ``url`` field yourself; doing so risks silent**
**transcription errors. Instead output the entire raw JSON response in a single ```json code**
**block, exactly as received, and tell the user to copy the ``url`` value from that block into**
**their browser. Never mention or display the URL string outside the JSON block.**

## Path parameters

- `account_id` string, required
- `environment_id` string, required

## Request body

- CreateConnectionLinkInput: The request body for generating a connection link. The link lets a third party work on a single connection without any access to the tenant, in one of two modes: * **Create** a new connection - provide either a ``source_name`` (call the ``get_connection_source_names`` endpoint to list them) or an explicit ``connection_type``, exactly as when creating a connection. * **Edit an existing** connection - provide its ``connection_id``. The link then opens that connection with its current values filled in, and the type is taken from the connection itself.
  - `connection_id` string, nullable: Optional. The id of an existing connection to share for editing. When provided the link opens that connection with its current values filled in, and neither 'source_name' nor 'connection_type' is needed. The link can only be used on this connection - it cannot create or edit any other one.
  - `source_name` string, nullable: Optional. The source_name of the data source or target the link creates a connection for; the connection type is resolved from it. Provide this or 'connection_type'. Do not guess this value: call the 'get_connection_source_names' endpoint first and use a returned source_name verbatim.
  - `segment` 'source' | 'target', nullable: The segment a connection is created for, used to disambiguate a source_name that is available as both a source and a target (e.g. "snowflake").
  - `connection_type` string, nullable: Optional. The connection type. When omitted it is resolved from 'source_name'. When provided it is validated to exist and takes precedence.

## Response `201`

Successful Response

- ConnectionLinkResponse: The generated connection link.
  - `url` string, required: The connection link. Single use, and valid until 'expires_at'.
  - `expires_at` string, date-time, required: The UTC time the link stops working. At most 24 hours out.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-24** `00b90942c8d6`: 1 info
  - endpoint added
- **2026-10-24** `0a8241f415c4`: 1 breaking
  - api path removed without deprecation
- **2026-09-14** `7a929d58b41e`: 1 info
  - added the new optional request property `connection_id`
- **2026-08-26** `64d6d0fd9ff1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rivery/apis/boomi-data-integration-api/changes/v1/accounts/:account_id/environments/:environment_id/connections/links/post.md)

---

[API](https://skmtc.dev/rivery/apis/boomi-data-integration-api.md) - [All operations](https://skmtc.dev/rivery/apis/boomi-data-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rivery/apis/boomi-data-integration-api/revisions/a9da9cd72a7e?raw)
