---
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

---

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