ServiceNow Trouble Ticket API

Operations for managing trouble tickets (Cases, Incidents, and Service Problem Cases)

Operations 4

GET /troubleTicket Servicenow Retrieve All Trouble Tickets #
POST /troubleTicket Servicenow Create a Trouble Ticket #
GET /troubleTicket/{id} Servicenow Retrieve a Specific Trouble Ticket #
PATCH /troubleTicket/{id} Servicenow Update a Trouble Ticket #

Documentation

📖
Documentation
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html
📖
APIReference
https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html
📖
Documentation
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/c_AggregateAPI.html
📖
Documentation
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/c_AttachmentAPI.html
📖
Documentation
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/c_ImportSetAPI.html
📖
Documentation
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/change-management-api.html
📖
APIReference
https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/integrate/inbound-rest/concept/change-management-api.html
📖
Documentation
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/c_ServiceCatalogAPI.html
📖
APIReference
https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/integrate/inbound-rest/concept/c_ServiceCatalogAPI.html
📖
Documentation
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/cmdb-instance-api.html
📖
APIReference
https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/integrate/inbound-rest/concept/cmdb-instance-api.html
📖
Documentation
https://www.servicenow.com/docs/r/xanadu/api-reference/rest-apis/contact-api.html
📖
Documentation
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/c_RESTAPI.html

Specifications

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/servicenow-trouble-ticket-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

servicenow-trouble-ticket-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ServiceNow Open Trouble Ticket API
  description: "The Trouble Ticket Open API provides endpoints to create, update, and retrieve data from the Case [sn_customerservice_case], \nIncident [incident], and Service Problem Case [sn_sprb_mgmt_case] tables.\n\nUse this API to manage ticket information between external ticketing systems and the ServiceNow AI Platform.\n\nThis API is a ServiceNow implementation of the TM Forum Trouble Ticket Management API REST specification, \nbased on TMF621 Trouble Ticket Management API User Guide v5.0.0, September 2024.\n\n**Authentication**: The calling user must have the `ticket_integrator` role.\n"
  version: Zurich
  contact:
    name: ServiceNow
    url: https://docs.servicenow.com
  x-namespace: sn_ind_tsm_sdwan
servers:
- url: https://{instance}.servicenow.com/api/sn_ind_tsm_sdwan/ticket
  description: ServiceNow instance
  variables:
    instance:
      default: instance
      description: Your ServiceNow instance name
security:
- basicAuth: []
tags:
- name: Trouble Ticket
  description: Operations for managing trouble tickets (Cases, Incidents, and Service Problem Cases)
paths:
  /troubleTicket:
    get:
      tags:
      - Trouble Ticket
      summary: Servicenow Retrieve All Trouble Tickets
      description: Retrieves a list of all trouble ticket records from the Case, Incident, and Service Problem Case tables.
      operationId: getTroubleTickets
      parameters:
      - name: fields
        in: query
        description: List of fields to return in the response. Invalid fields are ignored.
        required: false
        schema:
          type: string
        example: id,name,description,status,severity,ticketType
      - name: id
        in: query
        description: Filter trouble tickets by sys_id
        required: false
        schema:
          type: string
        example: abc123
      - name: limit
        in: query
        description: Maximum number of records to return
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
        example: 10
      - name: offset
        in: query
        description: Starting index at which to begin retrieving records
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
        example: 10
      - name: severity
        in: query
        description: Filter trouble tickets by severity
        required: false
        schema:
          type: string
        example: example_value
      - name: status
        in: query
        description: Filter trouble tickets by status
        required: false
        schema:
          type: string
        example: example_value
      - name: ticketType
        in: query
        description: Filter trouble tickets by ticket type
        required: false
        schema:
          type: string
          enum:
          - Case
          - Incident
          - Service Problem Case
        example: Case
      responses:
        '200':
          description: Request successfully processed. Full resource returned in response (no pagination).
          headers:
            Content-Type:
              schema:
                type: string
                default: application/json
            X-Total-Count:
              description: Total number of records available on the server
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TroubleTicket'
              examples:
                Gettroubletickets200Example:
                  summary: Default getTroubleTickets 200 response
                  x-microcks-default: true
                  value:
                  - '@type': example_value
                    id: abc123
                    href: example_value
                    creationDate: '2026-01-15T10:30:00Z'
                    lastUpdate: '2026-01-15T10:30:00Z'
                    name: Example Title
                    description: A sample description.
                    severity: example_value
                    status: example_value
                    ticketType: Case
                    channel:
                      name: Example Title
                    note:
                    - {}
                    relatedEntity:
                    - {}
                    relatedParty:
                    - {}
        '206':
          description: Partial resource returned in response (with pagination).
          headers:
            Content-Range:
              description: Range of content returned in a paginated call
              schema:
                type: string
              example: items 3-5
            Content-Type:
              schema:
                type: string
                default: application/json
            Link:
              description: Links to navigate through query results (first, last, next, previous)
              schema:
                type: string
            X-Total-Count:
              description: Total number of records available on the server
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TroubleTicket'
              examples:
                Gettroubletickets206Example:
                  summary: Default getTroubleTickets 206 response
                  x-microcks-default: true
                  value:
                  - '@type': example_value
                    id: abc123
                    href: example_value
                    creationDate: '2026-01-15T10:30:00Z'
                    lastUpdate: '2026-01-15T10:30:00Z'
                    name: Example Title
                    description: A sample description.
                    severity: example_value
                    status: example_value
                    ticketType: Case
                    channel:
                      name: Example Title
                    note:
                    - {}
                    relatedEntity:
                    - {}
                    relatedParty:
                    - {}
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                Gettroubletickets400Example:
                  summary: Default getTroubleTickets 400 response
                  x-microcks-default: true
                  value:
                    error:
                      message: example_value
                      detail: example_value
        '404':
          description: Record not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                Gettroubletickets404Example:
                  summary: Default getTroubleTickets 404 response
                  x-microcks-default: true
                  value:
                    error:
                      message: example_value
                      detail: example_value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Trouble Ticket
      summary: Servicenow Create a Trouble Ticket
      description: Creates a record in the Case, Incident, or Service Problem Case table.
      operationId: createTroubleTicket
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TroubleTicketCreate'
            examples:
              CreatetroubleticketRequestExample:
                summary: Default createTroubleTicket request
                x-microcks-default: true
                value:
                  name: Example Title
                  description: A sample description.
                  severity: '1'
                  status: example_value
                  ticketType: Case
                  channel:
                    name: Example Title
                  note:
                  - text: example_value
                    '@type': comments
                  relatedEntity:
                  - id: abc123
                    '@referredType': asset
                  relatedParty:
                  - id: abc123
                    '@referredType': customer
      responses:
        '201':
          description: Successful. The request was successfully processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TroubleTicket'
              examples:
                Createtroubleticket201Example:
                  summary: Default createTroubleTicket 201 response
                  x-microcks-default: true
                  value:
                    '@type': example_value
                    id: abc123
                    href: example_value
                    creationDate: '2026-01-15T10:30:00Z'
                    lastUpdate: '2026-01-15T10:30:00Z'
                    name: Example Title
                    description: A sample description.
                    severity: example_value
                    status: example_value
                    ticketType: Case
                    channel:
                      name: Example Title
                    note:
                    - '@type': example_value
                      text: example_value
                      date: '2026-01-15T10:30:00Z'
                      author: example_value
                    relatedEntity:
                    - '@type': example_value
                      id: abc123
                      href: example_value
                      name: Example Title
                      role: example_value
                      '@referredType': asset
                    relatedParty:
                    - id: abc123
                      name: Example Title
                      '@referredType': assigned_to
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                Createtroubleticket400Example:
                  summary: Default createTroubleTicket 400 response
                  x-microcks-default: true
                  value:
                    error:
                      message: example_value
                      detail: example_value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /troubleTicket/{id}:
    get:
      tags:
      - Trouble Ticket
      summary: Servicenow Retrieve a Specific Trouble Ticket
      description: Retrieves a specified record from the Case, Incident, or Service Problem Case table.
      operationId: getTroubleTicketById
      parameters:
      - name: id
        in: path
        description: Sys_id of the case or incident record to retrieve
        required: true
        schema:
          type: string
        example: abc123
      - name: fields
        in: query
        description: List of fields to return in the response. Invalid fields are ignored.
        required: false
        schema:
          type: string
        example: example_value
      responses:
        '200':
          description: Successful. The request was successfully processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TroubleTicket'
              examples:
                Gettroubleticketbyid200Example:
                  summary: Default getTroubleTicketById 200 response
                  x-microcks-default: true
                  value:
                    '@type': example_value
                    id: abc123
                    href: example_value
                    creationDate: '2026-01-15T10:30:00Z'
                    lastUpdate: '2026-01-15T10:30:00Z'
                    name: Example Title
                    description: A sample description.
                    severity: example_value
                    status: example_value
                    ticketType: Case
                    channel:
                      name: Example Title
                    note:
                    - '@type': example_value
                      text: example_value
                      date: '2026-01-15T10:30:00Z'
                      author: example_value
                    relatedEntity:
                    - '@type': example_value
                      id: abc123
                      href: example_value
                      name: Example Title
                      role: example_value
                      '@referredType': asset
                    relatedParty:
                    - id: abc123
                      name: Example Title
                      '@referredType': assigned_to
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                Gettroubleticketbyid400Example:
                  summary: Default getTroubleTicketById 400 response
                  x-microcks-default: true
                  value:
                    error:
                      message: example_value
                      detail: example_value
        '404':
          description: Record not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                Gettroubleticketbyid404Example:
                  summary: Default getTroubleTicketById 404 response
                  x-microcks-default: true
                  value:
                    error:
                      message: example_value
                      detail: example_value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    patch:
      tags:
      - Trouble Ticket
      summary: Servicenow Update a Trouble Ticket
      description: Updates a specified record in the Case, Incident, or Service Problem Case table.
      operationId: updateTroubleTicket
      parameters:
      - name: id
        in: path
        description: Sys_id of the case or incident record to update
        required: true
        schema:
          type: string
        example: abc123
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TroubleTicketUpdate'
            examples:
              UpdatetroubleticketRequestExample:
                summary: Default updateTroubleTicket request
                x-microcks-default: true
                value:
                  name: Example Title
                  description: A sample description.
                  severity: '1'
                  status: example_value
                  channel:
                    name: Example Title
                  note:
                  - text: example_value
                    '@type': comments
                  relatedEntity:
                  - id: abc123
                    '@referredType': asset
                  relatedParty:
                  - id: abc123
                    '@referredType': customer
      responses:
        '200':
          description: Successful. The request was successfully processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TroubleTicket'
              examples:
                Updatetroubleticket200Example:
                  summary: Default updateTroubleTicket 200 response
                  x-microcks-default: true
                  value:
                    '@type': example_value
                    id: abc123
                    href: example_value
                    creationDate: '2026-01-15T10:30:00Z'
                    lastUpdate: '2026-01-15T10:30:00Z'
                    name: Example Title
                    description: A sample description.
                    severity: example_value
                    status: example_value
                    ticketType: Case
                    channel:
                      name: Example Title
                    note:
                    - '@type': example_value
                      text: example_value
                      date: '2026-01-15T10:30:00Z'
                      author: example_value
                    relatedEntity:
                    - '@type': example_value
                      id: abc123
                      href: example_value
                      name: Example Title
                      role: example_value
                      '@referredType': asset
                    relatedParty:
                    - id: abc123
                      name: Example Title
                      '@referredType': assigned_to
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                Updatetroubleticket400Example:
                  summary: Default updateTroubleTicket 400 response
                  x-microcks-default: true
                  value:
                    error:
                      message: example_value
                      detail: example_value
        '404':
          description: Record not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                Updatetroubleticket404Example:
                  summary: Default updateTroubleTicket 404 response
                  x-microcks-default: true
                  value:
                    error:
                      message: example_value
                      detail: example_value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    RelatedParty:
      type: object
      properties:
        id:
          type: string
          description: Sys_id of the related party
          example: abc123
        name:
          type: string
          description: Name of the related party
          example: Example Title
        '@referredType':
          type: string
          enum:
          - assigned_to
          - assignment_group
          - customer
          - customer_contact
          description: 'Type of related party:

            - assigned_to: User assigned to work on the ticket

            - assignment_group: Group assigned to work on the ticket

            - customer: Company or account for the ticket

            - customer_contact: Caller or contact for the ticket

            '
          example: assigned_to
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Error message
            detail:
              type: string
              description: Detailed error information
          example: example_value
    RelatedEntity:
      type: object
      properties:
        '@type':
          type: string
          default: relatedEntity
          description: This value is always relatedEntity
          example: example_value
        id:
          type: string
          description: Sys_id of the impacted item or service
          example: abc123
        href:
          type: string
          description: Returns an empty string
          example: example_value
        name:
          type: string
          description: Name of the impacted item or service
          example: Example Title
        role:
          type: string
          description: Description of the impacted item or service
          example: example_value
        '@referredType':
          type: string
          enum:
          - asset
          - product
          - product_inventory
          - cmdb_ci
          - cmdb_ci_service
          description: Type of item or service
          example: asset
    Channel:
      type: object
      properties:
        name:
          type: string
          description: The name of the contact method
          example: Example Title
    TroubleTicketUpdate:
      type: object
      properties:
        name:
          type: string
          description: Name of the trouble ticket, typically a short description of the issue
          example: Example Title
        description:
          type: string
          description: Description of the issue
          example: A sample description.
        severity:
          type: string
          enum:
          - '1'
          - '2'
          - '3'
          - '4'
          - '5'
          description: 'The severity of the issue (must provide choice value only):

            - 1: Critical

            - 2: High

            - 3: Moderate

            - 4: Low

            - 5: Planning (Incident only)

            '
          example: '1'
        status:
          type: string
          description: The current status of the trouble ticket (can provide choice label or value)
          example: example_value
        channel:
          $ref: '#/components/schemas/ChannelInput'
        note:
          type: array
          description: List of work notes and comments to add to the ticket
          items:
            $ref: '#/components/schemas/NoteInput'
          example: []
        relatedEntity:
          type: array
          description: List of impacted assets, products, sold products, configuration items, or services
          items:
            $ref: '#/components/schemas/RelatedEntityInput'
          example: []
        relatedParty:
          type: array
          description: Details about contacts for the ticket
          items:
            $ref: '#/components/schemas/RelatedPartyInput'
          example: []
    TroubleTicket:
      type: object
      properties:
        '@type':
          type: string
          default: TroubleTicket
          description: This value is always TroubleTicket
          example: example_value
        id:
          type: string
          description: The sys_id of the case or incident record
          example: abc123
        href:
          type: string
          description: Relative link to the case or incident record
          example: example_value
        creationDate:
          type: string
          format: date-time
          description: The date that the case or incident record was created
          example: '2026-01-15T10:30:00Z'
        lastUpdate:
          type: string
          format: date-time
          description: The date the record was last updated
          example: '2026-01-15T10:30:00Z'
        name:
          type: string
          description: The name of the trouble ticket, typically a short description of the issue
          example: Example Title
        description:
          type: string
          description: The description of the issue from the ticket
          example: A sample description.
        severity:
          type: string
          description: The severity of the issue described by the trouble ticket
          example: 2 - High
        status:
          type: string
          description: The current status of the trouble ticket
          example: example_value
        ticketType:
          type: string
          enum:
          - Case
          - Incident
          - Service Problem Case
          description: The type of ticket
          example: Case
        channel:
          $ref: '#/components/schemas/Channel'
        note:
          type: array
          description: A list of all comments on the ticket (excludes work notes)
          items:
            $ref: '#/components/schemas/Note'
          example: []
        relatedEntity:
          type: array
          description: List of impacted assets, products, sold products, configuration items, or services
          items:
            $ref: '#/components/schemas/RelatedEntity'
          example: []
        relatedParty:
          type: array
          description: Details about contacts for the ticket
          items:
            $ref: '#/components/schemas/RelatedParty'
          example: []
    Note:
      type: object
      properties:
        '@type':
          type: string
          default: comments
          description: The type of note (always 'comments' in responses)
          example: example_value
        text:
          type: string
          description: The comment text
          example: example_value
        date:
          type: string
          format: date-time
          description: The date the comment was created
          example: '2026-01-15T10:30:00Z'
        author:
          type: string
          description: The name of the user who wrote the comment
          example: example_value
    RelatedEntityInput:
      type: object
      required:
      - id
      - '@referredType'
      properties:
        id:
          type: string
          description: Sys_id of the impacted item or service
          example: abc123
        '@referredType':
          type: string
          enum:
          - asset
          - product
          - product_inventory
          - cmdb_ci
          - cmdb_ci_service
          description: Type of item or service
          example: asset
    TroubleTicketCreate:
      type: object
      required:
      - description
      - severity
      - status
      properties:
        name:
          type: string
          description: Name of the trouble ticket, typically a short description of the issue
          example: Example Title
        description:
          type: string
          description: A description of the issue
          example: A sample description.
        severity:
          type: string
          enum:
          - '1'
          - '2'
          - '3'
          - '4'
          - '5'
          description: 'The severity of the issue (must provide choice value only):

            - 1: Critical

            - 2: High

            - 3: Moderate

            - 4: Low

            - 5: Planning (Incident only)

            '
          example: '1'
        status:
          type: string
          description: The current status of the trouble ticket (can provide choice label or value)
          example: example_value
        ticketType:
          type: string
          enum:
          - Case
          - Incident
          - Service Problem Case
          default: Incident
          description: The type of ticket to create
          example: Case
        channel:
          $ref: '#/components/schemas/ChannelInput'
        note:
          type: array
          description: List of work notes and comments to add to the ticket
          items:
            $ref: '#/components/schemas/NoteInput'
          example: []
        relatedEntity:
          type: array
          description: List of impacted assets, products, sold products, configuration items, or services
          items:
            $ref: '#/components/schemas/RelatedEntityInput'
          example: []
        relatedParty:
          type: array
          description: Details about contacts for the ticket
          items:
            $ref: '#/components/schemas/RelatedPartyInput'
          example: []
    RelatedPartyInput:
      type: object
      required:
      - id
      - '@referredType'
      properties:
        id:
          type: string
          description: Sys_id of the related party
          example: abc123
        '@referredType':
          type: string
          enum:
          - customer
          - customer_contact
          description: 'Type of related party:

            - customer: Company or account for the ticket

            - customer_contact: Caller or contact for the ticket

            '
          example: customer
    ChannelInput:
      type: object
      properties:
        name:
          type: string
          description: Name of the contact method (can provide choice label or value, e.g., 'Virtual Agent' or 'virtual_agent')
          example: Example Title
    NoteInput:
      type: object
      required:
      - text
      - '@type'
      properties:
        text:
          type: string
          description: Note text
          example: example_value
        '@type':
          type: string
          enum:
          - comments
          - work_notes
          description: Type of note (determines whether recorded in Work notes or Additional comments field)
          example: comments
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication with ServiceNow credentials. User must have the ticket_integrator role.