Teams

This method allows you to list all the teams within your account along with all the team's users. Optionally, you can pass a ticket reference to return all of the teams for the current escalation path of your ticket.

URL

/api/v2/objects/teams

Supported Parameters

  • ticket - the ticket reference

Example JSON

[
  {
    "id": 2,
    "name": "1st Line Support",
    "users": [
      {
        "id": 1,
        "username": "adam",
        "first_name": "Adam",
        "last_name": "Cooke"
      },
      {
        "id": 5,
        "username": "evie",
        "first_name": "Evie",
        "last_name": "Howorth"
      }
    ]
  },
  {
    "id": 3,
    "name": "2nd Line Support",
    "users": [
      {
        "id": 1,
        "username": "adam",
        "first_name": "Adam",
        "last_name": "Cooke"
      },
      {
        "id": 7,
        "username": null,
        "first_name": "Alex",
        "last_name": "Pearce"
      }
    ]
  },
  {
    "id": 7,
    "name": "Accounts",
    "users": [
      {
        "id": 1,
        "username": "adam",
        "first_name": "Adam",
        "last_name": "Cooke"
      },
      {
        "id": 2,
        "username": "charlie",
        "first_name": "Charlie",
        "last_name": "Smurthwaite"
      }
    ]
  },
  {
    "id": 5,
    "name": "Developers",
    "users": [
      {
        "id": 2,
        "username": "charlie",
        "first_name": "Charlie",
        "last_name": "Smurthwaite"
      },
      {
        "id": 3,
        "username": "dan",
        "first_name": "Dan",
        "last_name": "Wentworth"
      }
    ]
  },
  {
    "id": 6,
    "name": "Management",
    "users": [
      {
        "id": 1,
        "username": "adam",
        "first_name": "Adam",
        "last_name": "Cooke"
      },
      {
        "id": 2,
        "username": "charlie",
        "first_name": "Charlie",
        "last_name": "Smurthwaite"
      }
    ]
  },
  {
    "id": 4,
    "name": "Sales",
    "users": [
      {
        "id": 1,
        "username": "adam",
        "first_name": "Adam",
        "last_name": "Cooke"
      },
      {
        "id": 2,
        "username": "charlie",
        "first_name": "Charlie",
        "last_name": "Smurthwaite"
      }
    ]
  }
]

Proudly powered by Katapult. Running on 100% renewable energy.