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

# Create a team

# 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": {
      "post": {
        "summary": "Create a team",
        "operationId": "create-team",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "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"
                    }
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The created team.",
            "content": {
              "application/json": {
                "schema": {
                  "$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."
      }
    }
  }
}
```