---
title: "Capture Http Api"
method: POST
path: "/api/capture/http"
---

# Capture Http Api

`POST /api/capture/http`

## Request body

- HttpCapturePayload
  - `id` string, nullable
  - `timestamp` string, date-time, nullable
  - `duration_ms` integer
  - `request` HttpRequestData, required
    - `method` string, required
    - `url` string, required
    - `headers` object, required
    - `body` string, nullable
    - `body_size` integer
  - `response` HttpResponseData, required
    - `status_code` integer, required
    - `headers` object, required
    - `body` string, nullable
    - `body_size` integer
  - `meta` HttpMeta
    - `library` string
    - `python_version` string
    - `smello_version` string
  - `app` string
  - `session` string

## Response `201`

Successful Response

- CaptureResponse
  - `status` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-26** `8389ab2610fc` — 2 info
  - added the new optional request property `app`
  - added the new optional request property `session`
- **2026-05-04** `5561c57fbffd` — 2 warning
  - removed the request property `app`
  - removed the request property `session`

[Change history](https://skmtc.dev/smelloscope/apis/smello/changes/api/capture/http/post.md)

---

[API](https://skmtc.dev/smelloscope/apis/smello.md) · [All operations](https://skmtc.dev/smelloscope/apis/smello/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smelloscope/smello/revisions/0fa41ea4cee2/schema)
