GET /api/v1.0/labels/{label_id}

This endpoint fetch the tag details using unique label_id.

Path parameters

  • label_id string Required

    Unique identifier for the label.

Responses

  • 200 application/json

    Success Response

    Hide response attributes Show response attributes object
    • id string Required

      Unique identifier of the label.

    • name string Required

      Display name of the label.

    • color string Required

      Hex color code for the label.

    • type string Required

      Label type (e.g. others, member). Determines scope of the label.

    • created_by string Required

      ID of the team member who created the label.

    • team string Required

      ID of the team this label belongs to.

    • default boolean Required

      Whether this label is a default/system label for the team.

  • 401

    The client request has not been completed because it lacks valid authentication credentials for the requested resource.

  • 403

    The client does not have access rights to the content.

  • 405

    The request method is known by the server but is not supported by the target resource.

GET /api/v1.0/labels/{label_id}
curl \
 --request GET 'https://openapi.niftypm.com/api/v1.0/labels/{label_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "a1b2c3d4-e5f6",
  "name": "Urgent",
  "color": "#4A90D9",
  "type": "others",
  "created_by": "b2c3d4e5-f6a",
  "team": "c3d4e5f6-a7b8",
  "default": false
}