get_label_id: Get label id by name

View source: R/labels.R

get_label_idR Documentation

Get label id by name

Description

Get label id by name

Usage

get_label_id(
  label_name,
  all_labels = get_all_labels(token = token),
  token = get_todoist_api_token(),
  create = TRUE
)

Arguments

label_name

name of the label

all_labels

result of get_all_labels (optional)

token

todoist API token

create

boolean create label if needed

Value

id of the label

Examples

## Not run: 
get_label_id("urgent")

## End(Not run)

rtodoist documentation built on Feb. 14, 2026, 5:06 p.m.