---
title: "Upload a logo or favicon"
description: "Uploads an image and returns its URL."
canonical_url: https://docs.markdrop.in/api/workspaces/upload-a-logo-or-favicon
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Upload a logo or favicon

`POST https://api.markdrop.in/api/v1/workspaces/{workspace_id}/branding/{kind}`

Uploads an image and returns its URL. It isn't used until you save that URL in the workspace's branding with [Update a workspace](https://docs.markdrop.in/api/workspaces/update-a-workspace).

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 30 per hour per IP address.
- **Guide:** [Branding](https://docs.markdrop.in/workspaces/branding)

## 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).
- `kind` (string, required): `logo` or `favicon`.

## Request body

`multipart/form-data`, required.

- `file` (file, required)

## Responses

- `200`: OK.
  - `url` (string)
  - `kind` ("favicon" | "logo")
- `401`: No token, or the token is revoked or mistyped.
- `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 -X POST https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/branding/logo \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -F 'file=@logo.png'
```

**JavaScript**

```javascript
import { readFile } from "node:fs/promises";

const form = new FormData();
form.append("file", new Blob([await readFile("logo.png")]), "logo.png");

const res = await fetch("https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/branding/logo", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
  },
  body: form,
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.post(
    "https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID/branding/logo",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    files={"file": open("logo.png", "rb")},
)
r.raise_for_status()
print(r.json())
```
