---
title: "POST /links/folders"
method: POST
path: "/links/folders"
tags: ["Link queries"]
---

# POST /links/folders

`POST /links/folders`

## Request

- Base URL: `https://api.short.io`
- URL: `https://api.short.io/links/folders`
- Auth: API key in header `Authorization`

Create a new folder

## Request body

- object
  - `domainId` integer, required: Domain ID the folder belongs to
  - `name` string, required: Folder display name
  - `color` string: Folder display hex color
  - `backgroundColor` string: QR code background hex color
  - `logoUrl` string: URL of the QR code center logo
  - `logoHeight` integer: QR code logo height in pixels
  - `logoWidth` integer: QR code logo width in pixels
  - `ecLevel` string: QR code error correction level
  - `borderRadius` integer: QR code border radius in pixels
  - `noExcavate` boolean: Disable logo excavation (cutout)
  - `finderOuterShape` string: Shape of the outer finder pattern
  - `finderInnerShape` string: Shape of the inner finder pattern
  - `finderColor` string: Hex color for finder patterns
  - `cornerMode` string: Corner rendering mode
  - `labelText` string: QR code label text
  - `labelStyle` string: Label placement style
  - `labelColor` string: Label text hex color
  - `labelBgColor` string: Label background hex color
  - `labelFontSize` integer: Label font size in pixels
  - `labelFontFamily` string: Label font family
  - `integrationFB` string: Facebook Pixel ID
  - `integrationTT` string: TikTok Pixel ID
  - `integrationGA` string: Google Analytics ID
  - `integrationGTM` string: Google Tag Manager ID
  - `integrationAdroll` string: Adroll pixel ID
  - `utmCampaign` string: Default utm_campaign for folder links
  - `utmMedium` string: Default utm_medium for folder links
  - `utmSource` string: Default utm_source for folder links
  - `utmTerm` string: Default utm_term for folder links
  - `utmContent` string: Default utm_content for folder links
  - `redirectType` integer: Default HTTP redirect code for folder links
  - `expiresAtDays` integer: Default link lifetime in days
  - `icon` string: Folder icon identifier
  - `prefix` string: Slug prefix applied to folder links

## Response `200`

Default Response

---

[API](https://skmtc.dev/short/apis/short-io-api-2.md) · [All operations](https://skmtc.dev/short/apis/short-io-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/short/apis/short-io-api-2/revisions/9e4e60c560b1?raw)
