This endpoint allows you to retrieve a list of all credentials that have been saved to your account. These credentials can be used by workflows to authenticate with external services.
Your API key for authentication
Response Fields
The unique identifier of the credential
The ID of the user who owns this credential
The name of the service this credential is for (e.g., “gmail”, “slack”)
The username or email associated with this credential (if available)
import requests
response = requests.get(
'https://api.usedari.com/credentials' ,
headers = {
'X-API-Key' : 'YOUR_API_KEY'
}
)
credentials = response.json()
print ( f "Found { len (credentials) } credentials" )
for cred in credentials:
print ( f "- { cred[ 'service_name' ] } : { cred[ 'username_or_email' ] } " )
[
{
"id" : "cred_123456789" ,
"user_id" : "user_987654321" ,
"service_name" : "gmail" ,
"username_or_email" : "user@example.com"
},
{
"id" : "cred_234567890" ,
"user_id" : "user_987654321" ,
"service_name" : "slack" ,
"username_or_email" : "user@workspace.slack.com"
}
]
Usage Notes
API Key : Get your API key from the Dari dashboard
Credentials : Only returns credentials associated with the authenticated user
Security : Credential secrets are never returned, only metadata
Error Responses
{
"detail" : "Invalid API key"
}
500 Internal Server Error
{
"detail" : "Failed to retrieve credentials"
}