Get list of favorites
Returns all favorites for the authenticated user, sorted by custom sort order (if set) or creation date. Each favorite includes entity-specific metadata:
Task favorites: Include shortNumber and title
Project favorites: Include shortNumber, shortName (e.g., “ORG-123”), and name
Organization favorites: Include shortName and name
Command favorites: Include id and name
Deleted entities are automatically excluded from the results. The favorites list is user-specific and workspace-scoped. Use the toggle endpoint to add or remove favorites.
GET
/account/favoritesAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredResponses
200Favorites list retrieved successfully
favoritesobject[][]requiredArray of all favorites for the authenticated user, sorted by custom sort order (if set) or creation date. Each favorite includes entity-specific metadata. Deleted entities are automatically excluded from the results.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/account/favorites" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/account/favorites", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/account/favorites",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"favorites": [
[
{}
]
]
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions