Skip to main content

Get profile

GET/v1/consumer/me
Returns the authenticated consumer’s profile, including display name, email, MFA status, roles, and permissions. Use this endpoint to populate profile pages or check the current user’s access level.

Parameters

No parameters required. The user is identified from the authentication token.

Responses

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "tenant_id": "d4e5f6a7-b8c9-0123-4567-890abcdef012",
  "tenant_name": "Alice's Workspace",
  "tenant_status": "active",
  "tenant_type": "consumer",
  "org_id": "f6a7b8c9-0123-4567-890a-bcdef0123456",
  "realm": "consumer",
  "email": "alice@example.com",
  "name": "Alice Chen",
  "region_code": "US",
  "country_code": "US",
  "settings": {
    "language": "en"
  },
  "mfa_enabled": true,
  "roles": ["owner"],
  "permissions": ["mint", "verify", "manage_keys"]
}
curl https://api.truthlocks.com/v1/consumer/me \
  -H "X-API-Key: tlk_your_key_here"

Update profile

PUT/v1/consumer/me
Update the authenticated consumer’s display name, region, or language preference. All fields are optional — only non-empty values are applied.

Parameters

name
string
Display name shown on your profile and public portfolio.
region_code
string
ISO 3166-1 alpha-2 region code (e.g. US, GB, DE). Controls data residency preferences.
language
string
Preferred language code (e.g. en, es, fr). Stored in your tenant settings.

Responses

{
  "status": "updated"
}
curl -X PUT https://api.truthlocks.com/v1/consumer/me \
  -H "X-API-Key: tlk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Alice Chen",
    "region_code": "US",
    "language": "en"
  }'