---
updatedAt: 2026-09-02T12:20:31.000Z
agentTools:
  projectIndex: https://docs.foxpass.com/llms.txt
---

# POST /wifi_networks/

Add a WiFi network

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-instructions",
    "version": "3.2"
  },
  "servers": [
    {
      "url": "https://api.foxpass.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/wifi_networks/": {
      "post": {
        "summary": "POST /wifi_networks/",
        "description": "Add a WiFi network",
        "operationId": "wifi-networks-post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "ssid"
                ],
                "properties": {
                  "ssid": {
                    "type": "string",
                    "description": "SSID of the network"
                  },
                  "username": {
                    "type": "string",
                    "description": "Name of the valid admin user who can create a wifi network"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"status\": \"ok\"}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -H 'Authorization: Token API_KEY' -X POST -d '{\"ssid\": \"test\", \"username\": \"test_user\"}' https://api.foxpass.com/v1/wifi_networks/ "
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```