> ## Documentation Index
> Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an Account



## OpenAPI

````yaml /api/en/radius.yaml post /radius/accounts
openapi: 3.0.3
info:
  title: Altostrat RADIUS API
  version: 1.0.0
  description: >-
    The Altostrat RADIUS API is the microservice responsible for managing
    network user identities, device authentication, and access control policies.


    **Base URL:** `https://v1.api.altostrat.io`


    This API allows you to programmatically manage:

    - **Accounts:** The identities connecting to the network (formerly Users).

    - **Account Containers:** Hierarchical organization units for accounts
    (folders/organizational units).

    - **Groups:** Collections of accounts that share common access policies.

    - **NAS Devices:** Network Access Servers (routers/APs) that authenticate
    clients.

    - **Tags:** Flexible labels for organizing resources.

    - **Realms:** Routing realms for authentication requests.

    - **Insights:** Network analytics and health metrics.
servers:
  - url: https://v1.api.altostrat.io
security:
  - bearerAuth: []
tags:
  - name: Platform
    description: General platform statistics and attribute definitions.
  - name: Account Containers
    description: Manage hierarchical containers for organizing accounts.
  - name: Accounts
    description: Manage RADIUS user accounts (identities).
  - name: Groups
    description: Manage policy groups.
  - name: NAS Devices
    description: Manage Network Access Servers.
  - name: Realms
    description: Manage authentication realms.
  - name: Tags
    description: Manage organizational tags.
  - name: Insights
    description: Analytical data and network health metrics.
  - name: Data Migration
    description: Tools for bulk-importing data.
  - name: Certificates
    description: PKI management for RadSec.
  - name: Logs
    description: Access audit and authentication logs.
paths:
  /radius/accounts:
    post:
      tags:
        - Accounts
      summary: Create an Account
      operationId: createAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountCreate'
      responses:
        '201':
          description: The account was created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
components:
  schemas:
    AccountCreate:
      type: object
      required:
        - username
        - password
        - status
      properties:
        username:
          type: string
        password:
          type: string
        status:
          type: string
        container_id:
          type: string
        groups:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
    Account:
      type: object
      properties:
        id:
          type: string
        username:
          type: string
        status:
          type: string
          enum:
            - active
            - disabled
        container_id:
          type: string
          nullable: true
        group_count:
          type: integer
        check_attributes:
          type: array
          items:
            $ref: '#/components/schemas/RadiusAttribute'
        reply_attributes:
          type: array
          items:
            $ref: '#/components/schemas/RadiusAttribute'
        metadata:
          type: object
        tags:
          type: array
          items:
            type: string
        created_at:
          type: string
        updated_at:
          type: string
    RadiusAttribute:
      type: object
      properties:
        attribute:
          type: string
        op:
          type: string
        value:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````