# create new account

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/account/add:
    post:
      summary: create new account
      deprecated: false
      description: >-
        There is a default limit on the number of accounts that can be created,
        which can be obtained from the 'get user info' API. 

        The 'account_limit' field in the returned userinfo indicates the limit
        on the number of accounts.
      tags:
        - Rotation proxy/account
        - account
      parameters:
        - name: Authorization
          in: header
          description: ''
          example: Bearer {{AUTH_TOKEN}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                account_name:
                  description: new account name
                  type: string
                password:
                  description: password
                  type: string
                tag:
                  description: tag
                  type: string
                traffic_limit_mb:
                  description: traffic limit, 0 for no limit
                  type: integer
              x-apifox-refs: {}
              x-apifox-orders:
                - account_name
                - password
                - tag
                - traffic_limit_mb
              required:
                - traffic_limit_mb
                - password
                - account_name
            example:
              traffic_limit_mb: 100
              password: password123
              account_name: myaccount
              tag: for test
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  account:
                    description: new account info
                    type: object
                    properties:
                      account_name:
                        type: string
                      created_unixtime:
                        type: integer
                      id:
                        type: integer
                      password:
                        type: string
                      tag:
                        type: string
                      traffic_limit:
                        type: integer
                      traffic_used:
                        type: integer
                      user_id:
                        type: integer
                    x-apifox-refs: {}
                    x-apifox-orders:
                      - account_name
                      - created_unixtime
                      - id
                      - password
                      - tag
                      - traffic_limit
                      - traffic_used
                      - user_id
                  meta_message:
                    type: string
                    description: success or other error msg
                  meta_status:
                    type: integer
                    description: 1 for success, negative for error
                x-apifox-refs: {}
                x-apifox-orders:
                  - account
                  - meta_message
                  - meta_status
                required:
                  - account
                  - meta_message
                  - meta_status
          headers: {}
          x-apifox-name: result
      security: []
      x-apifox-folder: Rotation proxy/account
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2880121/apis/api-88999344-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.ipcola.com
    description: ipcola
security: []

```
