Read a user's AetherID lens to give your app, AI tool, or agent the structured context they want it to operate with — tone, focus, project scope, reasoning anchors. No SDK to install; two HTTP endpoints.
Mutation (creating or editing lenses) is not in scope for this surface. That happens through the user's own /finalize flow or via per-lens improve tokens.
aetherid.ai/login and visits their own profile. aeak_… key. One per owner; regenerating replaces. Authorization: Bearer header to list lenses, then fetches the chosen lens content (no auth needed for content — the URL is the capability). GET https://aetherid.ai/api/profiles/<shortName>/lenses
Authorization: Bearer aeak_… Returns { isOwner, lenses[] }. Without a valid Bearer, only visibility: 'public' lenses appear.
GET https://aetherid.ai/<shortName>/aeid:<uuid> Returns text/markdown. No auth — the AEID URL is the capability. Includes a Related lenses footer pointing to public siblings.
GET https://aetherid.ai/api/profiles/<shortName> Returns the public AetherID profile as application/ld+json. Useful for displaying who the user is alongside their loaded lens.
const KEY = 'aeak_...' // user's API key from their profile
const SHORT = 'leonard-cremer' // user's AetherID shortName
const { lenses } = await fetch(
`https://aetherid.ai/api/profiles/${SHORT}/lenses`,
{ headers: { Authorization: `Bearer ${KEY}` } }
).then(r => r.json())
// lenses: [{ aeid, type, name, description, visibility, url }, ...]// Lens content is markdown. No auth needed — the URL is the capability.
const md = await fetch(`https://aetherid.ai${lens.url}`).then(r => r.text())const wrapped = [
'You have been given the following AetherID lens to align your behaviour and context:',
'',
md,
'',
'---',
'',
'Now, with that context loaded, please help me with the following:',
'',
].join('\n')
// Then: inject `wrapped` into your AI chat input, or set it as the
// system instruction / preferences field on the target tool.Don't add headings above the lens markdown — it already opens with its own H1.
Authorization: Bearer to https://aetherid.ai. Drop this link in your app's settings or about page to credit AetherID and link users to docs.
<a href="https://aetherid.ai/integrate" target="_blank" rel="noopener">
Powered by AetherID
</a>