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

# Get Identity (API Key)

> Get your identity via API key for agent use

## Overview

Returns your identity data as a string, designed for agent consumption. This is the API key variant of the identity endpoint — use it from SDKs and MCP clients.

**Auth:** Requires API key (`danube-api-key` header).

## Response

Returns your identity attributes as a string representation. Returns an empty object string if no identity has been configured.

## Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.danubeai.com/v1/identity/api" \
    -H "danube-api-key: YOUR_API_KEY"
  ```

  ```python Python SDK theme={null}
  from danube import DanubeClient

  with DanubeClient(api_key="dk_...") as client:
      identity = client.identity.get()
      print(identity)
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "name": "Jane Smith",
    "role": "Engineering Manager",
    "company": "Acme Corp",
    "contacts": [
      {
        "name": "John Doe",
        "email": "john@acme.com",
        "relationship": "direct report"
      }
    ]
  }
  ```
</ResponseExample>

## MCP Resource

Identity is also available as an MCP resource:

```
identity://user
```

This returns the user's full identity profile including contacts and preferences.
