---
title: "Test Storage Connection"
method: POST
path: "/v1/organizations/connections/{connection_identifier}/test"
tags: ["Organization Connections"]
---

# Test Storage Connection

`POST /v1/organizations/connections/{connection_identifier}/test`

Perform a credential test against the external provider.

Validates that connection credentials are still valid and the provider
is accessible. Result is logged in audit trail.

**Use Cases:**
- Validate credentials before using in sync operations
- Diagnose connection issues
- Refresh credentials after expiration

**Example:**
```bash
curl -X POST "http://localhost:8000/v1/organizations/connections/conn_abc123/test" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Path parameters

- `connection_identifier` string, required — Connection identifier - either connection ID (conn_...) or name. The system will automatically resolve names to IDs.

## Response `200`

Successful Response

- StorageConnectionTestResponse — Response payload for connection test endpoint. Returns the result of testing connection credentials against the external provider. Used to validate credentials before saving or to diagnose issues.
  - `success` boolean, required — Whether the connection test succeeded. True: Credentials are valid and connection is accessible. False: Authentication failed, network error, or permissions denied.
  - `message` string, required — Human-readable message describing the test result. Success: 'Connection test succeeded' or similar. Failure: Error message explaining what went wrong.
  - `details` object, nullable — OPTIONAL. Additional diagnostic information about the test result. May include error details, provider-specific information, or success metadata. Format varies by provider.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

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