---
title: "Apply Setup"
method: POST
path: "/api/admin/db/apply"
tags: ["admin"]
---

# Apply Setup

`POST /api/admin/db/apply`

## Request

- Base URL: `https://www.gateco.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://www.gateco.ai/api/admin/db/apply`
- Auth: none declared. Required headers: `X-Admin-Token`

Save DATABASE_URL to .env and run migrations.

Args:
    body (ApplyRequest): Contains database_url and optional mode.

Returns:
    dict: List of step results and final status.

## Headers

- `X-Admin-Token` string, required

## Request body

- ApplyRequest: Request body for applying database setup.
  - `database_url` string, required
  - `mode` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gateco/apis/gateco-api.md) · [All operations](https://skmtc.dev/gateco/apis/gateco-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gateco/apis/gateco-api/revisions/5debaf204950?raw)
