POST
/
folders
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.folders.create();

  // Handle the result
  console.log(result);
}

run();
{
  "id": "<string>",
  "name": "<string>",
  "type": "default",
  "accessLevel": null,
  "linkCount": 0,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json

Response

201
application/json
The created folder

The response is of type object.