List all task types
Returns a list of all task types configured in the workspace. Task types structure workflows, bundle fields and statuses, and define how tasks are created and handled. Each task type specifies what kind of ticket is created, what information must be collected, and how the processing workflow works. This endpoint is optimized for common list data retrieval and includes translations, associated statuses, custom fields, and required fields for each type.
Use this endpoint as metadata before POST /tasks. The global create-task schema cannot know which fields are required for every workspace/task-type configuration. For the selected typeId, inspect requiredFields and include those fields in the POST /tasks body. Standard fields such as summary and estimatedTime can be listed here, as well as task custom fields.
/tasks/typesAuthorizationOAuth2 access token · headerrequiredapi:readAuthorizationBearer token (JWT) · headerrequiredincludeDeletedbooleanTaskTypeDtocustomFieldsstring[]requireddeletedbooleanrequirediconstringrequiredidstringrequirednamestringrequiredrequiredFieldsstring[]requiredsortnumberrequiredstatusesstring[]requiredtranslationsTranslationDto[]requiredShow propertiesHide properties
TranslationDtodescriptionobjectlanguagestringrequirednamestringrequiredtypestringrequiredFeatureBugcurl -X GET "https://leadtime.app/api/public/tasks/types" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/tasks/types", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/tasks/types",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)[
{
"customFields": [
"string"
],
"deleted": true,
"icon": "string",
"id": "string",
"name": "string",
"requiredFields": [
"string"
],
"sort": 0,
"statuses": [
"string"
],
"translations": [
{
"description": {},
"language": "string",
"name": "string"
}
],
"type": "Feature"
}
]