post
{protocol}://{base-url}/api/v2/auth/credentials/
Creates a new credential entry for the authenticated user.
The API generates a unique auth_id (UUID) and securely stores the provided credentials in encrypted format.
The user ID is automatically determined from the authentication context.
Authentication Options:
- Username/Password: Traditional basic authentication
- Username/Private Key: SSH key-based authentication with optional passphrase
BREAKING CHANGE: As of v1.0.0, a test connection job is automatically triggered to validate the credentials against the data source.
The response now includes a job_id field alongside the existing auth_id field.
NEW in v1.1.0: Added support for private key authentication. Either password or private_key must be provided.
The job_id can be polled via the test_connection_status endpoint to check credential validation status.