---
title: "Store pre-registration setup data (org name, networks, seed preference) in session"
method: POST
path: "/api/auth/setup"
tags: ["auth", "internal"]
---

# Store pre-registration setup data (org name, networks, seed preference) in session

`POST /api/auth/setup`

## Request body

- SetupRequest — Setup request for pre-registration org/network configuration
  - `network` NetworkSetup, required — Network configuration for setup
    - `name` string, required
    - `snmp_community` string, nullable — SNMP community string (for V2c)
    - `snmp_enabled` boolean — Whether SNMP is enabled for this network
    - `snmp_version` string, nullable — SNMP version ("V2c" or "V3")
  - `organization_name` string, required

## Response `200`

Setup data stored

- ApiResponseSetupResponse
  - `data` object — Response from setup endpoint
    - `network_id` string, uuid, required
  - `error` string, nullable
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required

## Other responses

- `400` — Invalid request

## Changes

- **2026-04-20** `f04499e2280f` — 3 info
  - added the new optional request property `network/snmp_community`
  - added the new optional request property `network/snmp_enabled`
  - added the new optional request property `network/snmp_version`

[Change history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/auth/setup/post.md)

---

[API](https://skmtc.dev/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.dev/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/87fbc9fdb32c/schema)
