---
title: "Get a workspace's preview image"
description: "The 1200×630 image link previews show for a workspace's address, as PNG."
canonical_url: https://docs.markdrop.in/api/workspaces/get-a-workspace-s-preview-image
last_updated: 2026-11-04
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Get a workspace's preview image

`GET https://api.markdrop.in/api/v1/og/w/{workspace_id}.png`

The 1200×630 image link previews show for a workspace's address, as PNG. It names the workspace only when a signed-out visitor could see it: it has a live domain and doesn't require sign-in. Otherwise the card is blank.

- **Authentication:** No token needed.
- **Rate limit:** 120 per minute per IP address.
- **Guide:** [Link previews](https://docs.markdrop.in/documents/link-previews)

## Path parameters

- `workspace_id` (string, required): The workspace's id, from the address of its settings page (`markdrop.in/settings/workspaces/<workspace-id>`) or from [List workspaces](https://docs.markdrop.in/api/workspaces/list-workspaces).

## Responses

- `200`: OK.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl https://api.markdrop.in/api/v1/og/w/WORKSPACE_ID.png
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/og/w/WORKSPACE_ID.png");
const data = await res.blob();
```

**Python**

```python
import requests

r = requests.get("https://api.markdrop.in/api/v1/og/w/WORKSPACE_ID.png")
r.raise_for_status()
open("out.png", "wb").write(r.content)
```
