Skip to main content
GET
https://api.usedari.com
/
public
/
credentials
from dari import Dari

client = Dari(api_key="YOUR_API_KEY")

credentials = client.list_credentials()
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": "[email protected]"
  },
  {
    "id": "cred_234567890",
    "user_id": "user_987654321",
    "service_name": "slack",
    "username_or_email": "[email protected]"
  }
]
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.

Headers

X-API-Key
string
required
Your API key for authentication

Response Fields

id
string
The unique identifier of the credential
user_id
string
The ID of the user who owns this credential
service_name
string
The name of the service this credential is for (e.g., “gmail”, “slack”)
username_or_email
string
The username or email associated with this credential (if available)
from dari import Dari

client = Dari(api_key="YOUR_API_KEY")

credentials = client.list_credentials()
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": "[email protected]"
  },
  {
    "id": "cred_234567890",
    "user_id": "user_987654321",
    "service_name": "slack",
    "username_or_email": "[email protected]"
  }
]

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"
}
{
  "detail": "Failed to retrieve credentials"
}