Folders

List folders

Returns all your folders with the number of links in each, newest first.

GET https://u2l.ai/api/v1/folders

Authorizations

Authorizationstringrequired

Bearer authentication header of the form Bearer <token>, where <token> is your U2L API key (u2l_live_...). Create one in the dashboard under Settings > API.

Response 200

foldersobject[]
folders[].idstring
folders[].namestring
folders[].linksCountinteger
folders[].createdAtstring

Errors

401 Missing or invalid API key.
429 Rate limit exceeded. Check X-RateLimit-Reset for when the window resets.

See Rate Limits & Errors for the error envelope and per-plan limits.

curl https://u2l.ai/api/v1/folders \
  -H "Authorization: Bearer u2l_live_your_api_key"
const response = await fetch("https://u2l.ai/api/v1/folders", {
  headers: {
    "Authorization": "Bearer u2l_live_your_api_key",
  },
});

const data = await response.json();
console.log(data);
import requests

response = requests.get(
    "https://u2l.ai/api/v1/folders",
    headers={"Authorization": "Bearer u2l_live_your_api_key"},
)

print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://u2l.ai/api/v1/folders", nil)
	req.Header.Set("Authorization", "Bearer u2l_live_your_api_key")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()

	data, _ := io.ReadAll(res.Body)
	fmt.Println(string(data))
}
{
  "folders": [
    {
      "id": "9f0c2f9e-3b7a-4c1d-8e5f-2a6b7c8d9e0f",
      "name": "Marketing campaigns",
      "linksCount": 12,
      "createdAt": "2026-07-20T10:30:00.000Z"
    }
  ]
}