Skip to main content
GET
/
credentials
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"
  }
]
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)
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"
}
{
  "detail": "Failed to retrieve credentials"
}