Test destination connection using credentials.
Important Notes:
- Requires scope
dwh_transfers_write - Your account must have
dwh.transfer.editpermission. See roles and permissions.
Bearer token authentication. Include the token in the Authorization header:
Authorization: Bearer <your-token>
Unique identifier of the team
Connection credentials to test
{
"type": "DWH_SNOWFLAKE",
"display_name": "Test Connection",
"auth_method": "AUTH_METHOD_KEY_PAIR",
"fields": {
"hostname": "test-domain.snowflakecomputing.com",
"warehouse": "TEST_WH",
"database_name": "TEST_DB",
"schema": "PUBLIC",
"role": "ACCOUNTADMIN",
"username": "TEST_USER",
"private_key": "-----BEGIN ENCRYPTED PRIVATE KEY-----...",
"passphrase": "***"
}
}Destination type to test
Display name for the connection being tested
Authentication method to test
Connection credentials and settings to test
Optional - ID of existing destination to test with new credentials
New secret value for credential testing. Field name varies by auth method (e.g., new_private_key for key-pair auth)
Connection test completed (check response for result)
API request ID
Whether the connection test succeeded
Error message if connection test failed, null on success
Bad Request - The request was invalid or cannot be served.
{
"meta": {
"request_id": "01892A4D-7586-7000-8000-000000000000"
},
"error": {
"code": "INVALID_PARAMETER",
"message": "Invalid Parameter",
"description": "The request contains invalid or malformed parameters."
}
}API request ID
Error code
Error message
Error description
Unauthorized - Authentication is required and has failed or has not been provided.
{
"meta": {
"request_id": "019461A0-0000-7000-8000-000000000000"
},
"error": {
"code": "API_KEY_INVALID",
"message": "Invalid API key",
"description": "Provided API key was invalid."
}
}API request ID
Error code
Error message
Error description
Forbidden - The request is understood, but access is not allowed
{
"meta": {
"request_id": "01892A4D-7586-7000-8000-000000000000"
},
"error": {
"code": "ACCESS_DENIED",
"message": "Access Denied",
"description": "You do not have permission to perform this operation."
}
}API request ID
Error code
Error message
Error description
Invalid connection configuration
API request ID
Error code
Error message
Error description
Too Many Requests - Rate limit exceeded.
{
"meta": {
"request_id": "019461A0-0000-7000-8000-000000000000"
},
"error": {
"code": "API_ROW_QUOTA_EXCEEDED",
"message": "Row quota exceeded",
"description": "You have exceeded your row-quota limit of rows for this month. Please log into Supermetrics Hub at https://hub.supermetrics.com/ and upgrade your plan, or contact our Supermetrics support team."
}
}API request ID
Error code
Error message
Error description
Internal Server Error - An error occurred on the server.
{
"meta": {
"request_id": "01892A4D-7586-7000-8000-000000000000"
},
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error",
"description": "An unexpected error occurred. Please try again later or contact support."
}
}API request ID
Error code
Error message
Error description