---
title: "Test S3 connectivity against a prospective source configuration (before creating it). The credentials are NOT persisted. Useful for validating the form in the UI."
method: POST
path: "/backups/s3-sources/test"
tags: ["Backups"]
---

# Test S3 connectivity against a prospective source configuration (before creating it). The credentials are NOT persisted. Useful for validating the form in the UI.

`POST /backups/s3-sources/test`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/backups/s3-sources/test`
- Auth: HTTP bearer

## Request body

- CreateS3SourceRequest
  - `access_key_id` string, password, required: Access key ID of the bucket's credentials, for example `AKIA...` on AWS.
  - `backing_service_id` integer, nullable: Managed RustFS/S3 service that supplies this destination. When set, schedules using this source can never target that service itself.
  - `bucket_name` string, required
  - `bucket_path` string, required
  - `endpoint` string, nullable: Optional endpoint for S3-compatible services like MinIO or RustFS, with or without a scheme. Stored with an explicit scheme: without one, `use_tls` decides it (plain `http://` when that is unset too).
  - `force_path_style` boolean, nullable: Whether to use path-style addressing (default: true). Forced on for an IP-address endpoint and a Temps-managed object store.
  - `is_default` boolean, nullable: When true, make this the default source (will swap out any existing default). The very first S3 source is always created as default regardless of this flag.
  - `name` string, required
  - `region` string, required
  - `secret_key` string, password, required: Secret access key that goes with the access key ID. Shown once by the provider; stored encrypted and never returned.
  - `use_tls` boolean, nullable: Whether the endpoint is reached over TLS. Only needed for an endpoint entered without a scheme; one that conflicts with the endpoint's scheme is rejected.
  - `worker_credentials` 'scoped' | 'allow_full', nullable: What a worker node may receive from an S3 source (ADR-102).

## Response `200`

Connection test result

- S3ConnectionTestResponse: Response body for an S3 connection test.
  - `message` string, required: Human-readable message (success confirmation or error detail).
  - `ok` boolean, required: Whether the connection and credentials worked.

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-13** `8b476d8ce3ea`: 1 info
  - added the new optional request property `use_tls`
- **2026-11-12** `e052e98bb073`: 1 info
  - added the new optional request property `worker_credentials`
- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-23** `7d41b820a372`: 2 breaking
  - the `access_key_id` request property format changed from no format to `password`
  - the `secret_key` request property format changed from no format to `password`
- **2026-10-23** `24af93ff5379`: 2 info
  - the `access_key_id` request property format was generalized from `password` to no format
  - the `secret_key` request property format was generalized from `password` to no format

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/backups/s3-sources/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)
