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

---

[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/versions/13316c9fe5ff/schema)
