---
updatedAt: 2026-04-27T07:59:49.000Z
agentTools:
  projectIndex: https://docs.aurorasendcloud.com/llms.txt
---

# Add Label

Add a new label. Upper limit of 100000 labels per account (40116); whitelisted accounts may go up to 500000 (40117). Label names must be unique within the account (40113).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Email",
    "version": "1.0.0",
    "description": "Label provides another way to get stats of emails. You can query, add, delete and modify labels with API."
  },
  "tags": [
    {
      "name": "Email Label",
      "description": "Email label management operations"
    }
  ],
  "servers": [
    {
      "url": "https://api.aurorasendcloud.com/",
      "description": "Singapore Region\n- Base URL: https://api.aurorasendcloud.com/\n"
    },
    {
      "url": "https://api-us.aurorasendcloud.com/",
      "description": "US (Silicon Valley) Region\n- Base URL: https://api-us.aurorasendcloud.com/\n"
    },
    {
      "url": "https://api-hk.aurorasendcloud.com/",
      "description": "CN (Hong Kong SAR) Region\n- Base URL: https://api-hk.aurorasendcloud.com/\n"
    }
  ],
  "paths": {
    "/api/label/add": {
      "post": {
        "summary": "Add Label",
        "description": "Add a new label. Upper limit of 100000 labels per account (40116); whitelisted accounts may go up to 500000 (40117). Label names must be unique within the account (40113).",
        "operationId": "add-label",
        "tags": [
          "Email Label"
        ],
        "security": [
          {
            "apiUser": [],
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "labelName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "[A-Za-z0-9]",
                    "description": "Label name to be added. Must be 1-255 characters (40105 on violation), contain at least one letter or digit (40118 on violation), and not duplicate an existing label name in the account (40113).",
                    "example": "test"
                  }
                },
                "required": [
                  "labelName"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request was successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 200
                    },
                    "message": {
                      "type": "string",
                      "example": "Request successful"
                    },
                    "result": {
                      "type": "boolean",
                      "example": true
                    },
                    "info": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "object",
                          "properties": {
                            "labelId": {
                              "type": "integer",
                              "description": "Label ID"
                            },
                            "labelName": {
                              "type": "string",
                              "maxLength": 255,
                              "description": "Label name. Max length is 255 characters"
                            },
                            "gmtCreated": {
                              "type": "string",
                              "format": "date-time",
                              "description": "Time of label creation"
                            },
                            "gmtUpdated": {
                              "type": "string",
                              "format": "date-time",
                              "description": "Time of label modification"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Business error. Note: the server returns HTTP 200 with the business code in `statusCode`; the HTTP status here is a documentation placeholder. See examples for 40101/40104/40105/40113/40116/40117/40118.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "description": "Business error code"
                    },
                    "message": {
                      "type": "string"
                    },
                    "result": {
                      "type": "boolean",
                      "example": false
                    }
                  }
                },
                "examples": {
                  "40101": {
                    "summary": "LABEL_CREATE_FAILED — label creation failed",
                    "value": {
                      "statusCode": 40101,
                      "message": "label creation failed",
                      "result": false
                    }
                  },
                  "40104": {
                    "summary": "LABEL_NAME_NOTEMPTY — labelName missing",
                    "value": {
                      "statusCode": 40104,
                      "message": "The label name cannot be empty",
                      "result": false
                    }
                  },
                  "40105": {
                    "summary": "LABEL_NAME_FORMATERROR — labelName not within 1-255 characters",
                    "value": {
                      "statusCode": 40105,
                      "message": "The label name should be 1-255 characters long",
                      "result": false
                    }
                  },
                  "40113": {
                    "summary": "LABEL_NAME_EXISTS — labelName already exists in the account",
                    "value": {
                      "statusCode": 40113,
                      "message": "The label name already exists",
                      "result": false
                    }
                  },
                  "40116": {
                    "summary": "LABEL_MAX_LIMIT — account already has 100000 labels (non-whitelisted)",
                    "value": {
                      "statusCode": 40116,
                      "message": "label not exceed 100000",
                      "result": false
                    }
                  },
                  "40117": {
                    "summary": "LABEL_MAX_LIMIT50 — whitelisted account already has 500000 labels",
                    "value": {
                      "statusCode": 40117,
                      "message": "label not exceed 500000",
                      "result": false
                    }
                  },
                  "40118": {
                    "summary": "LABEL_NAME_CHARSET_INVALID — labelName contains no letter or digit",
                    "value": {
                      "statusCode": 40118,
                      "message": "The label name must contain at least one letter or digit",
                      "result": false
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiUser": {
        "type": "apiKey",
        "in": "query",
        "name": "apiUser",
        "description": "API_USER (authentication parameter; obtained from SendCloud console)"
      },
      "apiKey": {
        "type": "apiKey",
        "in": "query",
        "name": "apiKey",
        "description": "API_KEY (authentication parameter; keep confidential)"
      }
    }
  }
}
```

# Sibling pages

* [Get Labels List](https://docs.aurorasendcloud.com/reference/get-labels-list.md)
* [Get Label](https://docs.aurorasendcloud.com/reference/get-label.md)
* [Delete Label](https://docs.aurorasendcloud.com/reference/delete-label.md)
* [Update Label](https://docs.aurorasendcloud.com/reference/update-label.md)