---
title: "Pre-deploy gate"
method: GET
path: "/api/util/gate"
---

# Pre-deploy gate

`GET /api/util/gate`

## Request

- Base URL: `https://dechonet.com`
- URL: `https://dechonet.com/api/util/gate`
- Auth: one of:
  - none
  - HTTP bearer

Runs the SSL and HTTP checks against a deployed URL and answers pass or fail per check, for failing a CI build.

## Query parameters

- `url` string, required
- `min_ssl` 'A+' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F'
- `min_headers` 'A+' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F'
- `min_days` integer
- `require_https` '0' | '1'
- `lang` 'en' | 'ko'

## Response `200`

Result

- Envelope
  - `ok` boolean, required
  - `requestId` string, required
  - `cached` boolean, required: True when a recent stored result was returned.
  - `updatedAt` string, date-time, nullable: When the result was produced.
  - `data` unknown, required
  - `error` object, nullable, required
    - `code` 'INVALID_INPUT' | 'NOT_FOUND' | 'RATE_LIMITED' | 'UPSTREAM_ERROR' | 'UPSTREAM_TIMEOUT' | 'INVALID_API_KEY' | 'API_KEY_REQUIRED'
    - `message` string
    - `retryAfter` integer, nullable
    - `reason` string
  - `previousSnapshot` object: The previous stored result for the same target, when there is one.

## Other responses

- `400`: Invalid input
- `401`: Wrong or revoked API key, or a key is required
- `429`: Rate limited — see the Retry-After header
- `503`: An upstream source failed or timed out

---

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