curl --request GET \
  --url https://api.usepylon.com/teams \
  --header 'Authorization: Bearer <token>'

Get all teams.

Response

Example response

{
    "data": [
        {
            "id": "22d1ba84-0d2e-4c33-92dc-01bb6c58be54",
            "name": "EMEA Support",
            "users": [
              {
                "id": "e1e8b331-d107-4355-86f9-30cc5ffd3a21"
              }
            ]
        },
        {
            "id": "5d3f0aac-bfeb-4701-8399-d4c3a7a77c5d",
            "name": "APAC Support",
            "users": [
              {
                "id": "e1e8b331-d107-4355-86f9-30cc5ffd3a21"
              },
              {
                "id": "f7389797-768b-43c4-9c5e-9c348ff36253"
              }
            ]
        },
        {
            "id": "365b41d4-823b-46b3-8212-7205e1778734",
            "name": "Engineering Oncall",
            "users": [
              {
                "id": "2df4f06c-5f4f-4208-af23-ed9b4e46c509"
              },
              {
                "id": "082fda9f-bf6a-4491-a008-e3bc1c42fc1f"
              }
            ]
        }
    ],
    "request_id": "ff94ff86-a755-4ebb-a16f-41aae732fc9c"
}