---
title: "Create data-link"
method: POST
path: "/data-links"
tags: ["data-links"]
---

# Create data-link

`POST /data-links`

Creates a new data-link in a user context. Append `?workspaceId=` to create the data-link in a workspace context.

## Query parameters

- `workspaceId` integer

## Request body

- DataLinkCreateRequest
  - `credentialsId` string
  - `description` string
  - `name` string
  - `provider` 'aws' | 'google' | 'azure' | 'azure_entra' | 'azure-cloud' | 'seqeracompute' | 's3'
  - `publicAccessible` boolean
  - `resourceRef` string
  - `type` 'bucket'

## Response `200`

Success

- DataLinkDto
  - `credentials` DataLinkCredentials[]
    - `id` string, required
    - `name` string, required
    - `provider` 'aws' | 'google' | 'azure' | 'azure_entra' | 'azure-cloud' | 'seqeracompute' | 's3', required
  - `description` string
  - `hidden` boolean
  - `id` string
  - `message` string
  - `name` string
  - `provider` 'aws' | 'google' | 'azure' | 'azure_entra' | 'azure-cloud' | 'seqeracompute' | 's3'
  - `publicAccessible` boolean
  - `region` string
  - `resourceRef` string
  - `status` 'VALID' | 'INVALID'
  - `type` 'bucket'

## Other responses

- `400` — BadRequest
- `403` — Operation not allowed
- `404` — NotFound — workspace or credentials not found, API disabled in the workspace, or data-link or path not found

## Changes

> 14 revisions in range; 1 not diffed, 3 could not be searched.

- **2026-03-10** `49c99a6944de` — 1 breaking
  - the `status` response's property type/format changed from `string`/`` to ``/`` for status `200`
- **2026-01-20** `98d6b538c88e` — 1 breaking, 2 warning, 3 info
  - the `status` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - added the new `s3` enum value to the `credentials/items/provider` response property for the response status `200`
  - added the new `s3` enum value to the `provider` response property for the response status `200`
  - added the new `s3` enum value to the request property `provider`
  - …2 more

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/data-links/post.md)

---

[API](https://skmtc.dev/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.dev/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/97f7655d105a/schema)
