---
title: "POST /external-services/{id}/wal-archive/test"
method: POST
path: "/external-services/{id}/wal-archive/test"
tags: ["External Services"]
---

# POST /external-services/{id}/wal-archive/test

`POST /external-services/{id}/wal-archive/test`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{id}/wal-archive/test`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Response `200`

The check ran; `ok` says whether WAL-G could write to the archive target

- ArchiveTargetTestResponse: What WAL-G said about a service's archive target.
  - `checked_at` string, date-time, required
  - `endpoint` string, required: `AWS_ENDPOINT` exactly as WAL-G receives it.
  - `force_path_style` boolean, required: Whether WAL-G uses path-style addressing.
  - `live_settings_drift` string, nullable: Set when the running container's `walg.env` differs from these settings: PostgreSQL archives with that file, so archiving can be failing even when this check passes. Says how to fix it.
  - `message` string, required: A confirmation, or WAL-G's error with credentials redacted.
  - `ok` boolean, required: Whether WAL-G could write a probe object to the archive target, which is what `archive_command` needs. The object is never read back, and its removal afterwards is best effort: `ok` says nothing about read or delete permission.
  - `path_style_reason` string, required: Why path style has that value.
  - `s3_source_id` integer, required: The S3 source WAL is archived to.
  - `s3_source_name` string, required
  - `scheme` string, required: `http`, `https`, or `aws` for AWS S3 itself.

## Other responses

- `400`: The service is not PostgreSQL
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Service not found
- `409`: Archiving is not set up, its S3 source is gone, the service runs on a worker node, it is a cluster (no continuous archiving), or local workloads are disabled
- `500`: The check could not run

## Changes

- **2026-11-13** `8b476d8ce3ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/wal-archive/test/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
