---
title: "setup lakeFS and create a first user"
method: POST
path: "/setup_lakefs"
tags: ["internal"]
---

# setup lakeFS and create a first user

`POST /setup_lakefs`

## Request body

- Setup
  - `username` string, required — an identifier for the user (e.g. jane.doe)
  - `key` AccessKeyCredentials
    - `access_key_id` string, required — access key ID to set for user for use in integration testing.
    - `secret_access_key` string, required — secret access key to set for user for use in integration testing.
  - `firstName` string — the provided first name
  - `lastName` string — the provided last name
  - `email` string — the provided email
  - `companyName` string — the provided company name
  - `country` string — the provided country
  - `featureUpdates` boolean — user preference to receive feature updates
  - `securityUpdates` boolean — Deprecated: no longer used

## Response `200`

user created successfully

- CredentialsWithSecret
  - `access_key_id` string, required
  - `secret_access_key` string, required
  - `creation_date` integer, required — Unix Epoch in seconds

## Other responses

- `400` — Bad Request
- `409` — setup was already called
- `429` — too many requests
- `default` — Internal Server Error

## Changes

> 52 revisions in range; 1 could not be searched.

- **2026-07-22** `b0e9baa646f7` — 1 info
  - request property `securityUpdates` deprecated
- **2026-03-23** `55befa2eddce` — 6 info
  - added the new optional request property `companyName`
  - added the new optional request property `email`
  - added the new optional request property `featureUpdates`
  - added the new optional request property `firstName`
  - …2 more
- **2025-07-29** `27799ffec9a5` — 2 info
  - added the non-success response with the status `429`
  - removed the non-success response with the status `420`
- **2024-09-17** `3b10653a8013` — 6 warning, 2 info
  - removed the request property `companyName`
  - removed the request property `email`
  - removed the request property `featureUpdates`
  - removed the request property `firstName`
  - …4 more

[Change history](https://skmtc.dev/treeverse/apis/lakefs-api/changes/setup_lakefs/post.md)

---

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