> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stablebrowse.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get credentials status

> Check which platforms have credentials configured for one of your end-users. Never returns the credentials themselves.

## Path parameters

<ParamField path="endUserId" type="string" required>
  The end-user identifier.
</ParamField>

## Response — `200 OK`

<ResponseField name="endUserId" type="string">
  Echoed identifier.
</ResponseField>

<ResponseField name="platforms" type="object">
  Per-platform boolean flags indicating whether credentials are configured. Platforms not returned default to `false`.

  ```json theme={null}
  {
    "twitter": true,
    "reddit": false,
    "tiktok": true,
    "instagram": false
  }
  ```
</ResponseField>

<Warning>
  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`](/api-reference/end-users/set-credentials).
</Warning>

## Example

<CodeGroup>
  ```bash curl theme={null}
  curl "$API_BASE/end-users/alice/credentials" \
    -H "Authorization: Bearer $API_KEY"
  ```

  ```python Python theme={null}
  status = client.end_users("alice").credentials.get()
  print(status.platforms)  # → {'twitter': True, 'tiktok': True, ...}
  ```

  ```typescript TypeScript theme={null}
  const status = await client.endUsers("alice").credentials.get();
  console.log(status.platforms);
  ```
</CodeGroup>

## Common use case

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 Python theme={null}
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="...")
```

## Errors

| Code  | Meaning                        |
| ----- | ------------------------------ |
| `400` | `endUserId` > 256 chars        |
| `401` | Missing `Authorization` header |
| `403` | Revoked API key                |
