---
title: "POST /ttfb"
method: POST
path: "/ttfb"
tags: ["ttfb"]
---

# POST /ttfb

`POST /ttfb`

Check if a site is up or down

## Request body

- TtfbDto
  - `url` string, required — Target URL
  - `followRedirect` boolean — Whether to follow redirects when checking site status

## Response `200`

Site status retrieved successfully

- TtfbResponseDto
  - `timestamp` number, required — Timestamp of the request in milliseconds
  - `apiStatus` 'success' | 'failure', required — API status message
  - `apiCode` number, required — API status code
  - `meta` TtfbMetaDto, required
    - `url` string, required — The tested URL
    - `followRedirect` boolean — Indicates if redirects were followed during the test
    - `redirectedURL` string, required — Final URL after redirection (if any)
    - `test` TestMetaDto, required
      - `id` string, required — Unique test identifier
  - `data` number, required — The measured Time to First Byte (TTFB) in milliseconds

## Other responses

- `400` — Bad request (invalid parameters)
- `500` — Internal server error

---

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