---
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 — Name for the network created during setup.
  - `organization_name` string, required — Name for the organization created during setup.

## Response `200`

Setup data stored

- ApiResponseSetupResponse
  - `data` object — Response from setup endpoint
    - `network_id` string, uuid, required — The network this entity belongs to.
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `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 — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `400` — Invalid request

## Changes

- **2026-06-23** `abdd8cdaa249` — 3 warning
  - removed the request property `network/snmp_community`
  - removed the request property `network/snmp_enabled`
  - removed the request property `network/snmp_version`
- **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/d061209476f3/schema)
