---
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

---

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