/v1/meGet authenticated API key details
Returns the authenticated public API key record and resolved tenant configuration.
curl -X GET "https://api.mortgageguidelines.com/v1/me" \
-H "Authorization: Bearer mgapi_live_your_key_here"const response = await fetch("https://api.mortgageguidelines.com/v1/me", {
headers: {
Authorization: "Bearer mgapi_live_your_key_here",
},
});
const data = await response.json();{
"request_id": "req_9b8f0b5fcb5b4eaa",
"key": {
"id": "pak_test",
"name": "Atlantic Bay Production",
"status": "active",
"scopes": [
"chat:read",
"chat:write",
"sources:read"
],
"last_four": "test",
"tenant": {
"clientName": "Atlantic Bay",
"clientOrganization": "Atlantic Bay Mortgage Group",
"enabledSources": [
"fannie_mae",
"fha"
],
"baseSources": [
"mortgage_guidelines"
],
"tenantSourceSidebarMode": "flat",
"tenantSources": [
{
"key": "product-guides",
"label": "Product Guides",
"description": "Internal product guidance",
"defaultOn": true
}
],
"secondarySources": [
{
"type": "tenant_bucket",
"key": "product-guides",
"label": "Product Guides",
"defaultOn": true
}
],
"defaultTenantSourceKeys": [
"product-guides"
],
"defaultSharedSourceTypes": [
"mortgage_guidelines"
],
"assignedSharedSourceTypes": [
"mortgage_guidelines"
]
}
}
}