---
updatedAt: 2026-04-20T19:43:50.000Z
agentTools:
  projectIndex: https://developers.gorgias.com/llms.txt
---

# List teams

List teams matching the given parameters, paginated, and ordered.

# OpenAPI definition

```json
{
  "security": [
    {
      "basicAuth": []
    }
  ],
  "info": {
    "description": "The Gorgias REST API. Please go to https://developers.gorgias.com for more details.",
    "title": "Gorgias REST API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://{domain}.gorgias.com",
      "variables": {
        "domain": {
          "default": "your-domain"
        }
      }
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  },
  "paths": {
    "/api/teams": {
      "get": {
        "summary": "List teams",
        "operationId": "list-teams",
        "description": "List teams matching the given parameters, paginated, and ordered.",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "description": "Value indicating your position in the list of all teams. If omitted, the first team of the list will be returned.",
            "schema": {
              "type": "string",
              "example": "WyJuZXh0IiwgIjIwMjItMDEtMDFUMDE6MDA6MDAiLCAxMjNd"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum number of teams to return.",
            "schema": {
              "type": "integer",
              "default": 30,
              "minimum": 1,
              "maximum": 100
            },
            "required": false
          },
          {
            "in": "query",
            "name": "order_by",
            "description": "Attribute used to order teams.",
            "schema": {
              "type": "string",
              "default": "created_datetime:desc",
              "enum": [
                "created_datetime:asc",
                "created_datetime:desc",
                "name:asc",
                "name:desc"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "List of teams according to the given criteria.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Team"
                  }
                },
                "examples": {
                  "responses": {
                    "value": [
                      {
                        "id": 123,
                        "name": "Warehouse team"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Teams"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Teams"
    }
  ],
  "openapi": "3.1.0",
  "components": {
    "schemas": {
      "Team": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID of the team.",
            "example": 123
          },
          "uri": {
            "type": "string",
            "readOnly": true,
            "description": "URI of the object (auto-generated)"
          },
          "name": {
            "type": "string",
            "description": "Name of the team.",
            "example": "Warehouse team"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Longer description of the team."
          },
          "default_email_integration_id": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "description": "Configured default email integration ID for the team. Null means no team preference. Non-null values in create/update requests must reference an active email integration on the same account that can send email; otherwise the request returns HTTP 400. Responses retain the configured ID even if the integration becomes unavailable."
          },
          "decoration": {
            "type": [
              "object",
              "null"
            ],
            "description": "Object describing how the team appears on the webpage. Currently only supports `emoji` field that shows before the team's name."
          },
          "members": {
            "description": "The list of users within the team.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "ID of the object"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The full name of the user",
                  "example": "Marie Curie"
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "maxLength": 320,
                  "format": "email",
                  "description": "The email address of the user",
                  "example": "marie@gorgias.io"
                },
                "meta": {
                  "type": [
                    "null"
                  ],
                  "description": "User defined JSON field. It can be useful for storing additional info about the object.",
                  "example": {}
                }
              },
              "description": "Represent a user of Gorgias. E.g: an admin or an agent"
            }
          },
          "created_datetime": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the team was created."
          }
        },
        "description": "A `Team` represents a group of [users](#user-object). Teams are used with the \"auto-assign tickets\" feature: you can assign a ticket to a team (manually of via rules), then it will be automatically assigned to someone who is available in the given team."
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "The username will be the email address of your Gorgias account and the password will be your API key."
      }
    }
  }
}
```