Azure DevOps Work Item Types API

Operations for work item type definitions and fields

Operations 3

GET /wit/workitemtypes Azure DevOps List work item types #
GET /wit/workitemtypes/{type} Azure DevOps Get a work item type #
GET /wit/fields Azure DevOps List work item fields #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-devops-work-item-types-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-devops-work-item-types-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure DevOps Work Items Work Item Types API
  description: 'REST API for managing work items, work item types, fields, queries, attachments, and comments in Azure Boards. Enables programmatic access to agile planning and tracking resources across sprints, backlogs, and boards.

    '
  version: '7.1'
  contact:
    name: Microsoft Azure DevOps
    url: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
- url: https://dev.azure.com/{organization}/{project}/_apis
  description: Azure DevOps Work Item Tracking API
  variables:
    organization:
      description: Azure DevOps organization name or ID
      default: myorganization
    project:
      description: Azure DevOps project name or ID
      default: myproject
security:
- bearerAuth: []
- basicAuth: []
tags:
- name: Work Item Types
  description: Operations for work item type definitions and fields
paths:
  /wit/workitemtypes:
    get:
      operationId: workItemTypes_list
      summary: Azure DevOps List work item types
      description: 'Returns a list of all work item types defined in the project. Work item types include Bug, Task, User Story, Feature, Epic, and any custom types defined in the process template.

        '
      tags:
      - Work Item Types
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      responses:
        '200':
          description: List of work item types returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  value:
                    type: array
                    items:
                      $ref: '#/components/schemas/WorkItemType'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /wit/workitemtypes/{type}:
    get:
      operationId: workItemTypes_get
      summary: Azure DevOps Get a work item type
      description: 'Returns detailed information about a specific work item type, including its fields, transitions, states, and rules. The type name is case-sensitive and must match exactly (e.g., ''Bug'', ''Task'', ''User Story'').

        '
      tags:
      - Work Item Types
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - name: type
        in: path
        required: true
        description: Name of the work item type
        schema:
          type: string
        example: Bug
      responses:
        '200':
          description: Work item type returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkItemType'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /wit/fields:
    get:
      operationId: fields_list
      summary: Azure DevOps List work item fields
      description: 'Returns a list of all work item fields available in the project. Includes both system fields (System.*) and custom fields, with their types, reference names, and whether they are read-only.

        '
      tags:
      - Work Item Types
      parameters:
      - $ref: '#/components/parameters/ApiVersion'
      - name: $expand
        in: query
        required: false
        description: Include additional details such as allowed values
        schema:
          type: string
          enum:
          - none
          - extensionFields
          - includeDeleted
      responses:
        '200':
          description: List of fields returned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  value:
                    type: array
                    items:
                      $ref: '#/components/schemas/WorkItemField'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    WorkItemField:
      type: object
      description: Definition of a work item field
      properties:
        name:
          type: string
          description: Display name of the field
          example: Assigned To
        referenceName:
          type: string
          description: Reference name used in WIQL and API (e.g., System.AssignedTo)
          example: System.AssignedTo
        description:
          type: string
          description: Description of what the field stores
        type:
          type: string
          description: Data type of the field
          enum:
          - string
          - integer
          - dateTime
          - plainText
          - html
          - treePath
          - history
          - double
          - guid
          - boolean
          - identity
          - picklistString
          - picklistInteger
          - picklistDouble
        usage:
          type: string
          description: Whether the field is used for work items or work item links
          enum:
          - none
          - workItem
          - workItemLink
          - tree
          - workItemTypeExtension
        readOnly:
          type: boolean
          description: Whether the field is read-only
        canSortBy:
          type: boolean
          description: Whether work items can be sorted by this field
        isQueryable:
          type: boolean
          description: Whether this field can be used in WIQL queries
        isIdentity:
          type: boolean
          description: Whether this field stores an identity (user) value
        isPicklist:
          type: boolean
          description: Whether this field has a picklist of allowed values
        isPicklistSuggested:
          type: boolean
          description: Whether the picklist values are suggested (non-exclusive)
        url:
          type: string
          format: uri
    ApiError:
      type: object
      description: Error response from the Azure DevOps API
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the error instance
        innerException:
          type: object
          nullable: true
          description: Inner exception details if applicable
        message:
          type: string
          description: Human-readable error message
        typeName:
          type: string
          description: Type name of the exception
        typeKey:
          type: string
          description: Short type key for the error
        errorCode:
          type: integer
          description: Numeric error code
        eventId:
          type: integer
          description: Event ID for logging and tracing
    WorkItemType:
      type: object
      description: Definition of a work item type
      properties:
        name:
          type: string
          description: Display name of the work item type
          example: Bug
        referenceName:
          type: string
          description: Reference name used in WIQL queries
          example: Microsoft.VSTS.WorkItemTypes.Bug
        description:
          type: string
          description: Description of the work item type and its intended use
        color:
          type: string
          description: Hex color code for the work item type icon
          example: CC293D
        icon:
          type: object
          description: Icon information for the work item type
          properties:
            id:
              type: string
            url:
              type: string
              format: uri
        isDisabled:
          type: boolean
          description: Whether the work item type is disabled
        xmlForm:
          type: string
          description: XML definition of the work item type form
        fields:
          type: array
          description: Fields defined for this work item type
          items:
            $ref: '#/components/schemas/WorkItemTypeFieldInstance'
        fieldInstances:
          type: array
          items:
            $ref: '#/components/schemas/WorkItemTypeFieldInstance'
        transitions:
          type: object
          description: Map of allowed state transitions
          additionalProperties:
            type: array
            items:
              type: object
              properties:
                to:
                  type: string
                actions:
                  type: array
                  items:
                    type: string
        states:
          type: array
          description: Valid states for this work item type
          items:
            type: object
            properties:
              name:
                type: string
              color:
                type: string
              category:
                type: string
        url:
          type: string
          format: uri
    WorkItemTypeFieldInstance:
      type: object
      description: A field instance within a work item type
      properties:
        fieldName:
          type: string
          description: Display name of the field
        field:
          type: object
          properties:
            name:
              type: string
            referenceName:
              type: string
            url:
              type: string
              format: uri
        referenceName:
          type: string
          description: Reference name (e.g., System.Title)
        defaultValue:
          description: Default value for the field
        allowedValues:
          type: array
          items:
            type: string
          description: Allowed values for fields with a restricted set of values
        helpText:
          type: string
        alwaysRequired:
          type: boolean
        readOnly:
          type: boolean
  responses:
    NotFound:
      description: Not found - the requested resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Forbidden:
      description: Forbidden - insufficient permissions to perform this operation
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Unauthorized - missing or invalid authentication credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  parameters:
    ApiVersion:
      name: api-version
      in: query
      required: true
      description: Azure DevOps REST API version. Use 7.1 for the latest stable version.
      schema:
        type: string
        default: '7.1'
        enum:
        - '7.1'
        - '7.0'
        - '6.0'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Azure AD OAuth 2.0 bearer token
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication using a Personal Access Token (PAT). Use any string as the username and the PAT as the password, then base64-encode the result.