Test Source Credentials
Asks the data source provider to validate the source’s credentials and reports the result. It changes nothing on the source.
Only a source bound to an active connection can be tested.
No request body.
1 min read
post/knowledge-fs/spaces/{knowledge_base_id}/sources/{source_id}/test
Request example
Response
post/knowledge-fs/spaces/{knowledge_base_id}/sources/{source_id}/test
Authorization
Path parameters
Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (
…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.Source ID. From List Sources.
Responses
application/json
Test result. Rejected credentials are a 200 with
valid: false and error details.failure.code when valid is false. Otherwise null. SOURCE_CREDENTIAL_TEST_FAILED here means the provider rejected the credentials.failure.message when valid is false, and null otherwise. The text is fixed for the failure's category or code, never the provider's own reason.Error details when
valid is false, or null when the provider gave no reason. null when valid is true. stage is credential-test.true when the provider accepted the credentials.