The actual secret values are never returned. If you need to verify the specific tokens in use, rotate them by uploading fresh ones via PUT .../credentials.
Before running a task that needs a specific platform, check if the end-user has credentials configured — bail with a friendly message to your own user if not:
Python
status = client.end_users(eu).credentials.get()if not status.platforms.get("twitter"): raise YourAppError("Twitter login required. Ask the user to connect.")result = client.tasks.run(end_user_id=eu, task="...")