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

# Register a cell

> Registers a new cell. A Niadra operations route.



## OpenAPI

````yaml openapi/en/control.json POST /v1/cells
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/cells:
    post:
      summary: Register a cell
      description: >-
        Registers a new cell in a region. Used by Niadra operations.


        **Authentication.** Operator credential (`X-Niadra-Operator-Token`).
        Used by Niadra operations, not by your code.
      operationId: register_cell_v1_cells_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CellCreate'
            example:
              cell_id: cell-2
              region: us-east-1
              address: https://cell-2.us-east-1.api.niadra.com
              capacity: 40
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CellOut'
              example:
                cell_id: cell-2
                region: us-east-1
                address: https://cell-2.us-east-1.api.niadra.com
                capacity: 40
                status: active
                code_version: null
                schema_revision: null
          description: The cell.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - operatorToken: []
components:
  schemas:
    CellCreate:
      additionalProperties: false
      properties:
        address:
          pattern: ^https://
          title: Address
          type: string
        capacity:
          minimum: 1
          title: Capacity
          type: integer
          description: How many spaces the cell may serve.
        cell_id:
          pattern: ^[a-z0-9-]{3,63}$
          title: Cell Id
          type: string
        region:
          pattern: ^[a-z]{2}(-[a-z]+)+-\d{1,2}$
          title: Region
          type: string
      required:
        - cell_id
        - region
        - address
        - capacity
      title: CellCreate
      type: object
    CellOut:
      additionalProperties: false
      properties:
        address:
          title: Address
          type: string
        capacity:
          title: Capacity
          type: integer
        cell_id:
          title: Cell Id
          type: string
        code_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Code Version
        region:
          title: Region
          type: string
        schema_revision:
          anyOf:
            - type: string
            - type: 'null'
          title: Schema Revision
        status:
          $ref: '#/components/schemas/CellStatus'
      required:
        - cell_id
        - region
        - address
        - capacity
        - status
      title: CellOut
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    CellStatus:
      enum:
        - active
        - draining
        - closed
      title: CellStatus
      type: string
  securitySchemes:
    operatorToken:
      type: apiKey
      in: header
      name: X-Niadra-Operator-Token

````