curl --request POST \ --url http://localhost:3000/api/v1/credentials \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "OpenAI Production", "provider": "openai", "apiKey": "sk-...", "credentialType": "api_key", "baseUrl": null, "proxy": false, "isValid": true }'
{ "success": true, "message": "Credential created successfully", "credentialId": "cred_123abc" }
Creates a new credential for AI providers. For Ollama, it manages models within a single credential.
name