Retrieve all credentials in your workspace. Credentials are used to store API keys and authentication tokens for various integrations.
Query Parameters
Filter credentials by credential name (e.g., openAIApi, pineconeApi)
Response
Unique identifier for the credential
User-defined name for the credential
Type of credential (e.g., openAIApi, pineconeApi, azureOpenAIApi)
Encrypted credential data (sensitive fields are encrypted)
When the credential was created
When the credential was last updated
ID of the workspace containing this credential
Example Request
curl -X GET \
'https://your-flowise-instance.com/api/v1/credentials' \
-H 'Authorization: Bearer YOUR_API_KEY'
Example Request - Filter by Credential Type
curl -X GET \
'https://your-flowise-instance.com/api/v1/credentials?credentialName=openAIApi' \
-H 'Authorization: Bearer YOUR_API_KEY'
Example Response
[
{
"id": "cred-123",
"name": "My OpenAI Key",
"credentialName": "openAIApi",
"encryptedData": "encrypted_string_here",
"createdDate": "2024-01-15T10:30:00Z",
"updatedDate": "2024-01-15T10:30:00Z",
"workspaceId": "workspace-123"
},
{
"id": "cred-456",
"name": "Pinecone Production",
"credentialName": "pineconeApi",
"encryptedData": "encrypted_string_here",
"createdDate": "2024-01-16T14:20:00Z",
"updatedDate": "2024-01-16T14:20:00Z",
"workspaceId": "workspace-123"
}
]
Security Note
Credential values are encrypted at rest. The encryptedData field contains encrypted information and should not be exposed to end users. When using credentials in flows, Flowise automatically decrypts them during execution.
Error Responses
Unauthorized - Invalid or missing API key
Forbidden - Insufficient permissions to view credentials
Not Found - Workspace not found
Internal Server Error - Error retrieving credentials