Skip to main content
POST
/
assets
/
data
/
verify
Verify Connection Before Save
curl --request POST \
  --url https://api.example.com/assets/data/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connection_type": "postgres",
  "credentials": {
    "password": "secretpassword",
    "username": "dbuser"
  },
  "database_config": {
    "auth_type": "basic",
    "database": "analytics",
    "db_schema": "public",
    "host": "db.example.com",
    "port": 5432,
    "ssl_mode": "require"
  }
}
'
{
  "success": true,
  "message": "<string>",
  "latency_ms": 123,
  "details": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Project-ID
string | null

Body

application/json

Request body for verifying a data connection before saving.

This allows testing connection credentials and discovering available tables before actually creating the data connection record.

connection_type
enum<string>
required

Data connection types.

Available options:
postgres,
redshift,
mysql,
bigquery,
snowflake,
databricks,
couchbase,
oracle,
hive,
mongodb,
s3,
gcs,
minio,
nfs,
smb
credentials
Credentials · object
required

Credentials for the connection. Format depends on connection type and auth_type.

database_config
DatabaseConnectionConfig · object

Configuration for database connections.

storage_config
StorageConnectionConfig · object

Configuration for object storage connections.

filesystem_config
FileSystemConnectionConfig · object

Configuration for file system connections.

Response

Verification result with available tables/metadata

Response for data connection verification.

success
boolean
required
message
string
required
latency_ms
number | null
details
Details · object

Provider-specific details (e.g., bucket_exists, permissions)