---
title: "Preview content from a URL"
method: POST
path: "/datasets/preview-url"
tags: ["datasets"]
---

# Preview content from a URL

`POST /datasets/preview-url`

Fetches a partial content preview from an arbitrary HTTP/HTTPS URL, without creating a dataset. Intended for the dataset form preview after URL validation.

## Query parameters

- `workspaceId` integer, nullable

## Request body

- ValidateUrlRequest
  - `url` string

## Response `200`

OK

- DatasetPreviewResponse
  - `content` string
  - `fileTooLarge` boolean
  - `reachable` boolean

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

## Changes

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

- **2026-04-20** `b2b5cc41d473` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/datasets/preview-url/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)
