Account

Get account info

Your account profile and current usage against plan limits.

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

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

idstring
emailstring
planstring
billingCyclestring

monthly, yearly, or lifetime. Null on free plans.

createdAtstring
usageobject
usage.linksinteger
usage.qrCodesinteger
usage.customDomainsinteger
usage.apiKeysUsedinteger
usage.apiKeysLimitinteger

Errors

401 Missing or invalid API key.
404 The resource does not exist or is not yours.
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/account \
  -H "Authorization: Bearer u2l_live_your_api_key"
const response = await fetch("https://u2l.ai/api/v1/account", {
  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/account",
    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/account", 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))
}
{
  "id": "usr_2f9e3b7a",
  "email": "dev@example.com",
  "plan": "pro",
  "billingCycle": "yearly",
  "createdAt": "2025-11-02T09:00:00.000Z",
  "usage": {
    "links": 42,
    "qrCodes": 7,
    "customDomains": 1,
    "apiKeysUsed": 2,
    "apiKeysLimit": 5
  }
}