GET
/v2/projects/{projectId}/labels/idsGet project labels by ID
Lists project labels that match the supplied identifiers. Pass the label IDs in the required id query parameter and use projectId to scope the lookup. The response contains the matching labels.
projectIdintegerrequired
The unique integer identifier of the project containing the labels.
idarray<integer>required
The required array of label identifiers to retrieve.
200Returns an array of matching label objects, each including its `id`, `name`, `color`, and optional `description`.
colorstringrequired
descriptionstringoptional
idintegerrequired
namestringrequired
400Returned when the query parameters are invalid or the required `id` query parameter is missing.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when you do not have permission to access the project's labels.
codestringrequired
paramsarray<object>optional
404Returned when the project is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the query is invalid, a 401 when authentication is missing or invalid, a 403 when you lack permission, and a 404 when the project is not found. The id query parameter must contain label identifiers, and the projectId path parameter must identify an existing project.