---
updatedAt: 2026-08-25T23:06:23.000Z
agentTools:
  projectIndex: https://developer.intellistack.com/llms.txt
---

# Test integration credentials

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "CredentialDetails": {
        "properties": {
          "credentialType": {
            "enum": [
              "API_KEY",
              "CLIENT_ID",
              "SECRET",
              "URL",
              "REFRESH_TOKEN",
              "ENVIRONMENT",
              "CONNECTION_SLUG",
              "CONNECTION_NAME",
              "HOST",
              "PORT",
              "USERNAME",
              "PASSWORD",
              "SCHEMA",
              "DATABASE",
              "CORRELATION_ID_FIELD_NAME",
              "PROJECT_ID",
              "SA_KEY",
              "TENANT_ID",
              "WAREHOUSE",
              "PRIVATE_KEY",
              "SERVER_CERTIFICATE",
              "ORG_ID",
              "CONNECTION_ID"
            ],
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "credentialType"
        ],
        "type": "object"
      },
      "DatabaseSchemaDetails": {
        "properties": {
          "database": {
            "type": "string"
          },
          "databaseId": {
            "type": "string"
          },
          "schema": {
            "type": "string"
          },
          "schemaId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TestConnectionResult": {
        "properties": {
          "connected": {
            "type": "boolean"
          },
          "discoveredDatabases": {
            "items": {
              "$ref": "#/components/schemas/DatabaseSchemaDetails"
            },
            "type": "array"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "TestCredentialsRequest": {
        "properties": {
          "credentials": {
            "items": {
              "$ref": "#/components/schemas/CredentialDetails"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "credentials"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Integrations",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/integrations/datasources/{integrationId}/test-credentials": {
      "post": {
        "operationId": "testCredentials",
        "parameters": [
          {
            "in": "path",
            "name": "integrationId",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestCredentialsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestConnectionResult"
                }
              }
            },
            "description": "OK"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create integrations",
        "tags": [
          "Datasource Controller"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "US Production Server",
      "url": "https://api-us.streamline.intellistack.ai"
    },
    {
      "description": "Canada Production Server",
      "url": "https://api-ca.streamline.intellistack.ai"
    }
  ]
}
```