Skip to main content
GET
/
v1
/
identity
/
api
curl -X GET "https://api.danubeai.com/v1/identity/api" \
  -H "danube-api-key: YOUR_API_KEY"
{
  "name": "Jane Smith",
  "role": "Engineering Manager",
  "company": "Acme Corp",
  "contacts": [
    {
      "name": "John Doe",
      "email": "john@acme.com",
      "relationship": "direct report"
    }
  ]
}

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

curl -X GET "https://api.danubeai.com/v1/identity/api" \
  -H "danube-api-key: YOUR_API_KEY"
{
  "name": "Jane Smith",
  "role": "Engineering Manager",
  "company": "Acme Corp",
  "contacts": [
    {
      "name": "John Doe",
      "email": "john@acme.com",
      "relationship": "direct report"
    }
  ]
}

MCP Resource

Identity is also available as an MCP resource:
identity://user
This returns the user’s full identity profile including contacts and preferences.