---
title: "Test Integration Payload"
method: POST
path: "/api/onboarding/postgres/test"
tags: ["postgres-onboarding"]
---

# Test Integration Payload

`POST /api/onboarding/postgres/test`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/onboarding/postgres/test`
- Auth: none declared

## Request body

- PostgresIntegrationTestRequest: Test an unsaved Postgres integration.
  - `host` string, required
  - `port` integer
  - `database_name` string, required
  - `username` string, required
  - `password` string, required
  - `ssl_mode` 'disable' | 'allow' | 'prefer' | 'require' | 'verify-ca' | 'verify-full': Supported Postgres SSL modes.
  - `connect_timeout_seconds` integer
  - `query_timeout_seconds` integer

## Response `200`

Successful Response

- PostgresTestResponse: Integration test response.
  - `success` boolean, required
  - `message` string, required
  - `server_version` string, nullable
  - `current_database` string, nullable
  - `current_user` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
