Returns the stored account document for the caller, less passwordHash and mfaSecret. The internal counters in the payload — tokenVersion, failedLoginAttempts, lockedUntil, isSystem — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the auth:profile:read permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as GET /api/v1/customers/me, which differs only in the token it accepts.
Staff access token. Sent as Authorization: Bearer <token>, or — when that header is absent — read from the accessToken cookie, which is how the admin app authenticates. Tokens carry a tokenVersion; logout and password reset bump it, revoking every outstanding token for that account.
Response
The caller's profile
Standard success envelope. The endpoint payload is in data.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Open Agent API","description":"Transfer agency API for digital securities, investor records and blockchain reconciliation.","colors":{"primary":"#4A6274","light":"#7F8B99","dark":"#3A4153"},"logo":{"light":"https://mintcdn.com/open-agent/_71EWBMN8sRMMt3Z/logo/light.png?fit=max\u0026auto=format\u0026n=_71EWBMN8sRMMt3Z\u0026q=85\u0026s=64c378585eddde163b0aed500aba3007","dark":"https://mintcdn.com/open-agent/_71EWBMN8sRMMt3Z/logo/dark.png?fit=max\u0026auto=format\u0026n=_71EWBMN8sRMMt3Z\u0026q=85\u0026s=c22cb396f026664c8edbdf84e15c02ff","href":"https://openagent.to"},"favicon":"https://mintcdn.com/open-agent/_71EWBMN8sRMMt3Z/logo/icon.png?fit=max\u0026auto=format\u0026n=_71EWBMN8sRMMt3Z\u0026q=85\u0026s=5af5eddabfd5c65c5c53fd59e840f6de","navbar":{"links":[{"href":"mailto:support@openagent.to","label":"Support"}],"primary":{"type":"button","label":"openagent.to","href":"https://openagent.to"}},"footer":{"socials":{"website":"https://openagent.to"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"open-agent","hasAudioNarration":false,"actualSubdomain":"open-agent","customDomains":["docs.openagent.to"],"gitSource":{"type":"github","owner":"pv-randd","repo":"open-agent-doc","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aba2d3866226d680ee73335","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API reference","count":32},{"language":"default","tag":"Endpoints","count":31},{"language":"default","tag":"Transactions","count":6},{"language":"default","tag":"Documentation","count":4},{"language":"default","tag":"API Keys","count":4},{"language":"default","tag":"Apps","count":4},{"language":"default","tag":"Auth","count":4},{"language":"default","tag":"Reports","count":4},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Investors","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/auth/get-the-authenticated-staff-users-profile","slug":"/api-reference/auth/get-the-authenticated-staff-users-profile","pageMetadata":{"title":"Get the authenticated staff user's profile","description":"Returns the stored account document for the caller, less `passwordHash` and `mfaSecret`. The internal counters in the payload — `tokenVersion`, `failedLoginAttempts`, `lockedUntil`, `isSystem` — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the `auth:profile:read` permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as `GET /api/v1/customers/me`, which differs only in the token it accepts.\n","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/auth/me","href":"/api-reference/auth/get-the-authenticated-staff-users-profile","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Returns the stored account document for the caller, less \", _jsx(_components.code, {\n children: \"passwordHash\"\n }), \" and \", _jsx(_components.code, {\n children: \"mfaSecret\"\n }), \". The internal counters in the payload — \", _jsx(_components.code, {\n children: \"tokenVersion\"\n }), \", \", _jsx(_components.code, {\n children: \"failedLoginAttempts\"\n }), \", \", _jsx(_components.code, {\n children: \"lockedUntil\"\n }), \", \", _jsx(_components.code, {\n children: \"isSystem\"\n }), \" — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the \", _jsx(_components.code, {\n children: \"auth:profile:read\"\n }), \" permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as \", _jsx(_components.code, {\n children: \"GET /api/v1/customers/me\"\n }), \", which differs only in the token it accepts.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get the authenticated staff user's profile","description":"Returns the stored account document for the caller, less `passwordHash` and `mfaSecret`. The internal counters in the payload — `tokenVersion`, `failedLoginAttempts`, `lockedUntil`, `isSystem` — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the `auth:profile:read` permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as `GET /api/v1/customers/me`, which differs only in the token it accepts.\n","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/auth/me","href":"/api-reference/auth/get-the-authenticated-staff-users-profile","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Returns the stored account document for the caller, less `passwordHash` and `mfaSecret`. The internal counters in the payload — `tokenVersion`, `failedLoginAttempts`, `lockedUntil`, `isSystem` — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the `auth:profile:read` permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as `GET /api/v1/customers/me`, which differs only in the token it accepts.\n","operationId":"authGetProfile","responses":{"200":"18e2a6c1-5efe-4631-bfa2-3a3c6c4e2d2a","401":"13dbe958-4c14-4052-aeb2-aa3aa0da2829","403":"323c0ea0-3352-4042-9b4b-d69c910f5fe5","404":"1a2ca20f-f411-47e1-8a39-688ff165e815","500":"afb78a59-ee6f-44a6-a617-95254a8d2235"},"security":["8dcdc91e-3761-4b2a-a036-6b3103a929f4"],"summary":"Get the authenticated staff user's profile","tags":["Auth"],"x-publish":true,"method":"get","type":"path","servers":["f79bd8bd-10de-4fee-b222-94eacffc3cfd"],"path":"/api/v1/auth/me","baseUrlOptions":["https://api.openagent.to"],"title":"Get the authenticated staff user's profile","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"responses":{"18e2a6c1-5efe-4631-bfa2-3a3c6c4e2d2a":{"content":{"application/json":{"schema":{"description":"Standard success envelope. The endpoint payload is in `data`.","properties":{"data":{"additionalProperties":false,"examples":[{"_id":"507f1f77bcf86cd799439011","createdAt":"2026-08-01T10:00:00.000Z","email":"jane.doe@example.com","failedLoginAttempts":0,"fullName":"Jane Doe","issuerId":null,"isSystem":false,"lastLoginAt":"2026-09-01T09:15:32.104Z","lockedUntil":null,"mfaEnabled":false,"passwordChangedAt":null,"role":"compliance_officer","status":"active","tokenVersion":3,"updatedAt":"2026-09-01T09:15:32.104Z","uuid":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}],"properties":{"_id":{"description":"MongoDB ObjectId, 24 hex characters.","type":"string","isRequired":true,"uniqueKey":"data._id","typeLabel":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","type":"string","isRequired":true,"uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"email":{"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","type":"string","isRequired":true,"uniqueKey":"data.email","typeLabel":"string\u003cemail>"},"failedLoginAttempts":{"description":"Internal lockout counter. Do not depend on it.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer","isRequired":true,"uniqueKey":"data.failedLoginAttempts","typeLabel":"integer"},"fullName":{"type":"string","isRequired":true,"uniqueKey":"data.fullName","typeLabel":"string"},"issuerId":{"oneOf":[{"type":"string","description":"MongoDB ObjectId, 24 hex characters.","isRequired":true,"uniqueKey":"data.issuerId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.issuerId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.issuerId","typeLabel":"string | null"},"isSystem":{"description":"Internal flag for seeded accounts.","type":"boolean","isRequired":true,"uniqueKey":"data.isSystem","typeLabel":"boolean"},"lastLoginAt":{"oneOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","isRequired":true,"uniqueKey":"data.lastLoginAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","isRequired":true,"uniqueKey":"data.lastLoginAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lastLoginAt","typeLabel":"string\u003cdate-time> | null"},"lockedUntil":{"oneOf":[{"type":"string","description":"Internal lockout expiry. Do not depend on it.","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","isRequired":true,"uniqueKey":"data.lockedUntil.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Internal lockout expiry. Do not depend on it.","isRequired":true,"uniqueKey":"data.lockedUntil.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.lockedUntil","typeLabel":"string\u003cdate-time> | null"},"mfaEnabled":{"type":"boolean","isRequired":true,"uniqueKey":"data.mfaEnabled","typeLabel":"boolean"},"passwordChangedAt":{"oneOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","isRequired":true,"uniqueKey":"data.passwordChangedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","isRequired":true,"uniqueKey":"data.passwordChangedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.passwordChangedAt","typeLabel":"string\u003cdate-time> | null"},"role":{"enum":["ta_admin","issuer_admin","compliance_officer","audit_user","customer"],"type":"string","isRequired":true,"uniqueKey":"data.role","typeLabel":"enum\u003cstring>"},"status":{"enum":["active","inactive","suspended","pending_invitation","pending_verification"],"type":"string","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"tokenVersion":{"description":"Internal session-revocation counter. Do not depend on it.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer","isRequired":true,"uniqueKey":"data.tokenVersion","typeLabel":"integer"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","type":"string","isRequired":true,"uniqueKey":"data.updatedAt","typeLabel":"string\u003cdate-time>"},"uuid":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string","isRequired":true,"uniqueKey":"data.uuid","typeLabel":"string\u003cuuid>"}},"required":["_id","uuid","email","fullName","role","issuerId","status","mfaEnabled","lastLoginAt","passwordChangedAt","createdAt","updatedAt","tokenVersion","failedLoginAttempts","lockedUntil","isSystem"],"type":"object","isRequired":true,"uniqueKey":"data","typeLabel":"object"},"message":{"example":"Success","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"meta":{"properties":{"timestamp":{"description":"Server time the response was built, ISO 8601 in UTC.","example":"2026-09-01T09:15:32.104Z","format":"date-time","type":"string","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"},"requestId":{"description":"Correlates this response with server logs. Absent when the request carried no id.","example":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"statusCode":{"example":200,"type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"success":{"example":true,"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"}},"required":["success","statusCode","message","data","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"_id":"507f1f77bcf86cd799439011","createdAt":"2026-08-01T10:00:00.000Z","email":"jane.doe@example.com","failedLoginAttempts":0,"fullName":"Jane Doe","issuerId":null,"isSystem":false,"lastLoginAt":"2026-09-01T09:15:32.104Z","lockedUntil":null,"mfaEnabled":false,"passwordChangedAt":null,"role":"compliance_officer","status":"active","tokenVersion":3,"updatedAt":"2026-09-01T09:15:32.104Z","uuid":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"message":"Success","meta":{"timestamp":"2026-09-01T09:15:32.104Z","requestId":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10"},"statusCode":200,"success":true}}},"exampleType":"generated"}},"description":"The caller's profile","exampleType":"generated"},"13dbe958-4c14-4052-aeb2-aa3aa0da2829":{"content":{"application/json":{"schema":{"description":"Standard error envelope. Every 4xx and 5xx response uses it.","properties":{"error":{"properties":{"code":{"description":"Machine-readable error code. Currently mirrors `message`; treat it, not `message`, as the stable field.","example":"Validation error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"details":{"oneOf":[{"description":"Per-field detail, present for validation failures and null otherwise.","items":{"properties":{"field":{"example":"email","type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"example":"Invalid email format","type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"allowedValues":{"description":"Present only when the field is an enum.","items":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].allowedValues.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"error.details.oneOf.0.items.[INDEX].allowedValues","typeLabel":"string[]"}},"required":["field","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"description":"Per-field detail, present for validation failures and null otherwise.","items":{"properties":{"allowedValues":{"description":"Present only when the field is an enum.","items":{"type":"string"},"type":"array"},"field":{"example":"email","type":"string"},"message":{"example":"Invalid email format","type":"string"}},"required":["field","message"],"type":"object"},"type":"null","isRequired":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details","typeLabel":"object[] | null"}},"required":["code","details"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"message":{"example":"Validation error","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"meta":{"properties":{"timestamp":{"description":"Server time the response was built, ISO 8601 in UTC.","example":"2026-09-01T09:15:32.104Z","format":"date-time","type":"string","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"},"requestId":{"description":"Correlates this response with server logs. Absent when the request carried no id.","example":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"statusCode":{"example":422,"type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"success":{"example":false,"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"}},"required":["success","statusCode","message","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"Validation error","details":[{"field":"email","message":"Invalid email format","allowedValues":["\u003cstring>"]}]},"message":"Validation error","meta":{"timestamp":"2026-09-01T09:15:32.104Z","requestId":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10"},"statusCode":422,"success":false}}},"exampleType":"generated"}},"description":"Missing, expired or revoked credentials.","exampleType":"generated"},"323c0ea0-3352-4042-9b4b-d69c910f5fe5":{"content":{"application/json":{"schema":{"description":"Standard error envelope. Every 4xx and 5xx response uses it.","properties":{"error":{"properties":{"code":{"description":"Machine-readable error code. Currently mirrors `message`; treat it, not `message`, as the stable field.","example":"Validation error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"details":{"oneOf":[{"description":"Per-field detail, present for validation failures and null otherwise.","items":{"properties":{"field":{"example":"email","type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"example":"Invalid email format","type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"allowedValues":{"description":"Present only when the field is an enum.","items":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].allowedValues.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"error.details.oneOf.0.items.[INDEX].allowedValues","typeLabel":"string[]"}},"required":["field","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"description":"Per-field detail, present for validation failures and null otherwise.","items":{"properties":{"allowedValues":{"description":"Present only when the field is an enum.","items":{"type":"string"},"type":"array"},"field":{"example":"email","type":"string"},"message":{"example":"Invalid email format","type":"string"}},"required":["field","message"],"type":"object"},"type":"null","isRequired":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details","typeLabel":"object[] | null"}},"required":["code","details"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"message":{"example":"Validation error","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"meta":{"properties":{"timestamp":{"description":"Server time the response was built, ISO 8601 in UTC.","example":"2026-09-01T09:15:32.104Z","format":"date-time","type":"string","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"},"requestId":{"description":"Correlates this response with server logs. Absent when the request carried no id.","example":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"statusCode":{"example":422,"type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"success":{"example":false,"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"}},"required":["success","statusCode","message","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"Validation error","details":[{"field":"email","message":"Invalid email format","allowedValues":["\u003cstring>"]}]},"message":"Validation error","meta":{"timestamp":"2026-09-01T09:15:32.104Z","requestId":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10"},"statusCode":422,"success":false}}},"exampleType":"generated"}},"description":"Authenticated, but the role lacks the required permission.","exampleType":"generated"},"1a2ca20f-f411-47e1-8a39-688ff165e815":{"content":{"application/json":{"schema":{"description":"Standard success envelope. The endpoint payload is in `data`.","properties":{"data":{"description":"Endpoint payload, which is null for this operation.","isRequired":true,"uniqueKey":"data","typeLabel":"any"},"message":{"example":"Success","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"meta":{"properties":{"timestamp":{"description":"Server time the response was built, ISO 8601 in UTC.","example":"2026-09-01T09:15:32.104Z","format":"date-time","type":"string","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"},"requestId":{"description":"Correlates this response with server logs. Absent when the request carried no id.","example":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"statusCode":{"example":404,"type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"success":{"example":false,"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"}},"required":["success","statusCode","message","data","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":"\u003cunknown>","message":"Success","meta":{"timestamp":"2026-09-01T09:15:32.104Z","requestId":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10"},"statusCode":404,"success":false}}},"exampleType":"generated"}},"description":"The token verified but the account no longer exists","exampleType":"generated"},"afb78a59-ee6f-44a6-a617-95254a8d2235":{"content":{"application/json":{"schema":{"description":"Standard error envelope. Every 4xx and 5xx response uses it.","properties":{"error":{"properties":{"code":{"description":"Machine-readable error code. Currently mirrors `message`; treat it, not `message`, as the stable field.","example":"Validation error","type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"details":{"oneOf":[{"description":"Per-field detail, present for validation failures and null otherwise.","items":{"properties":{"field":{"example":"email","type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].field","typeLabel":"string"},"message":{"example":"Invalid email format","type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"allowedValues":{"description":"Present only when the field is an enum.","items":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].allowedValues.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"error.details.oneOf.0.items.[INDEX].allowedValues","typeLabel":"string[]"}},"required":["field","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","isRequired":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"description":"Per-field detail, present for validation failures and null otherwise.","items":{"properties":{"allowedValues":{"description":"Present only when the field is an enum.","items":{"type":"string"},"type":"array"},"field":{"example":"email","type":"string"},"message":{"example":"Invalid email format","type":"string"}},"required":["field","message"],"type":"object"},"type":"null","isRequired":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.details","typeLabel":"object[] | null"}},"required":["code","details"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"message":{"example":"Validation error","type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"meta":{"properties":{"timestamp":{"description":"Server time the response was built, ISO 8601 in UTC.","example":"2026-09-01T09:15:32.104Z","format":"date-time","type":"string","isRequired":true,"uniqueKey":"meta.timestamp","typeLabel":"string\u003cdate-time>"},"requestId":{"description":"Correlates this response with server logs. Absent when the request carried no id.","example":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10","type":"string","uniqueKey":"meta.requestId","typeLabel":"string"}},"required":["timestamp"],"type":"object","isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"statusCode":{"example":422,"type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"success":{"example":false,"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"}},"required":["success","statusCode","message","error","meta"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"Validation error","details":[{"field":"email","message":"Invalid email format","allowedValues":["\u003cstring>"]}]},"message":"Validation error","meta":{"timestamp":"2026-09-01T09:15:32.104Z","requestId":"3f1c9d2e-6b7a-4f18-9c53-0a2b6d4e8f10"},"statusCode":422,"success":false}}},"exampleType":"generated"}},"description":"Unexpected server error. The `requestId` in `meta` identifies it in the logs.","exampleType":"generated"}},"security":{"8dcdc91e-3761-4b2a-a036-6b3103a929f4":{"bearerAuth":{"bearerFormat":"JWT","description":"Staff access token. Sent as `Authorization: Bearer \u003ctoken>`, or — when that header is absent — read from the `accessToken` cookie, which is how the admin app authenticates. Tokens carry a `tokenVersion`; logout and password reset bump it, revoking every outstanding token for that account.","scheme":"bearer","type":"http","scopes":[]}}},"servers":{"f79bd8bd-10de-4fee-b222-94eacffc3cfd":{"description":"API server","url":"https://api.openagent.to"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"JWT","description":"Staff access token. Sent as `Authorization: Bearer \u003ctoken>`, or — when that header is absent — read from the `accessToken` cookie, which is how the admin app authenticates. Tokens carry a `tokenVersion`; logout and password reset bump it, revoking every outstanding token for that account.","scheme":"bearer","type":"http","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Staff access token. Sent as `Authorization: Bearer \u003ctoken>`, or — when that header is absent — read from the `accessToken` cookie, which is how the admin app authenticates. Tokens carry a `tokenVersion`; logout and password reset bump it, revoking every outstanding token for that account.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"open-agent","siteName":"Open Agent API","title":"Get the authenticated staff user's profile - Open Agent API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-21T11:31:34.306Z","originalFileLocation":"api-reference/auth/get-the-authenticated-staff-users-profile.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Returns the stored account document for the caller, less passwordHash and mfaSecret. The internal counters in the payload — tokenVersion, failedLoginAttempts, lockedUntil, isSystem — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the auth:profile:read permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as GET /api/v1/customers/me, which differs only in the token it accepts.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Open Agent API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get the authenticated staff user\u0026#x27;s profile - Open Agent API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns the stored account document for the caller, less passwordHash and mfaSecret. The internal counters in the payload — tokenVersion, failedLoginAttempts, lockedUntil, isSystem — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the auth:profile:read permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as GET /api/v1/customers/me, which differs only in the token it accepts.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Open Agent API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://open-agent.mintlify.site/_mintlify/api/og/v2?division=Auth\u0026amp;title=Get+the+authenticated+staff+user%27s+profile\u0026amp;description=Returns+the+stored+account+document+for+the+caller%2C+less+%60passwordHash%60+and+%60mfaSecret%60.+The+internal+counters+in+the+payload+%E2%80%94+%60tokenVersion%60%2C+%60failedLoginAtte\u0026amp;theme=304565ab3e61008fa587b560\u0026amp;signature=59f7021bd7a2c980c06ad91ed829f0f3e93cfb77a576938ceef5ae2765bc81fa\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get the authenticated staff user\u0026#x27;s profile - Open Agent API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns the stored account document for the caller, less passwordHash and mfaSecret. The internal counters in the payload — tokenVersion, failedLoginAttempts, lockedUntil, isSystem — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the auth:profile:read permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as GET /api/v1/customers/me, which differs only in the token it accepts.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://open-agent.mintlify.site/_mintlify/api/og/v2?division=Auth\u0026amp;title=Get+the+authenticated+staff+user%27s+profile\u0026amp;description=Returns+the+stored+account+document+for+the+caller%2C+less+%60passwordHash%60+and+%60mfaSecret%60.+The+internal+counters+in+the+payload+%E2%80%94+%60tokenVersion%60%2C+%60failedLoginAtte\u0026amp;theme=304565ab3e61008fa587b560\u0026amp;signature=59f7021bd7a2c980c06ad91ed829f0f3e93cfb77a576938ceef5ae2765bc81fa\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/open-agent/-zLjUPxWssYUjWze/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Open Agent API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4A6274\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/auth/get-the-authenticated-staff-users-profile.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.openagent.to/#organization\",\"name\":\"Open Agent API\",\"url\":\"https://docs.openagent.to\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/open-agent/_71EWBMN8sRMMt3Z/logo/light.png?fit=max\u0026auto=format\u0026n=_71EWBMN8sRMMt3Z\u0026q=85\u0026s=64c378585eddde163b0aed500aba3007\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.openagent.to#website\",\"name\":\"Open Agent API\",\"url\":\"https://docs.openagent.to\",\"publisher\":{\"@id\":\"https://docs.openagent.to/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile#webpage\",\"url\":\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile\",\"name\":\"Get the authenticated staff user's profile\",\"description\":\"Returns the stored account document for the caller, less passwordHash and mfaSecret. The internal counters in the payload — tokenVersion, failedLoginAttempts, lockedUntil, isSystem — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the auth:profile:read permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as GET /api/v1/customers/me, which differs only in the token it accepts.\",\"dateModified\":\"2026-09-21T11:31:34.306Z\",\"isPartOf\":{\"@id\":\"https://docs.openagent.to#website\"},\"breadcrumb\":{\"@id\":\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.openagent.to/api-reference/api-keys/disable-an-api-key\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Auth\",\"item\":\"https://docs.openagent.to/api-reference/auth/log-a-staff-user-in\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get the authenticated staff user's profile\",\"item\":\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile#apireference\",\"headline\":\"Get the authenticated staff user's profile\",\"name\":\"Get the authenticated staff user's profile\",\"description\":\"Returns the stored account document for the caller, less passwordHash and mfaSecret. The internal counters in the payload — tokenVersion, failedLoginAttempts, lockedUntil, isSystem — are part of what is sent today and are documented so the contract is honest, not because a client should depend on them. Requires the auth:profile:read permission, which every role holds, so in practice any authenticated staff session can call it. This is the same handler as GET /api/v1/customers/me, which differs only in the token it accepts.\",\"url\":\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile\",\"mainEntityOfPage\":{\"@id\":\"https://docs.openagent.to/api-reference/auth/get-the-authenticated-staff-users-profile#webpage\"},\"dateModified\":\"2026-09-21T11:31:34.306Z\",\"publisher\":{\"@id\":\"https://docs.openagent.to/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.openagent.to#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Open Agent API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Open Agent API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/auth/get-the-authenticated-staff-users-profile.md","siteName":"Open Agent API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"API reference","href":"/api-reference/overview"}]},{"group":"Endpoints","pages":[{"group":"API Keys","pages":[{"title":"Disable an API key","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/admin/api-keys/{keyId}/disable","href":"/api-reference/api-keys/disable-an-api-key"},{"title":"List an app's API keys","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/admin/apps/{appId}/api-keys","href":"/api-reference/api-keys/list-an-apps-api-keys"},{"title":"Issue an API key","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/admin/apps/{appId}/api-keys","href":"/api-reference/api-keys/issue-an-api-key"},{"title":"Check an API key and secret","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/api-keys/validate","href":"/api-reference/api-keys/check-an-api-key-and-secret"}]},{"group":"Apps","pages":[{"title":"List apps","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/admin/apps","href":"/api-reference/apps/list-apps"},{"title":"Create an app","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/admin/apps","href":"/api-reference/apps/create-an-app"},{"title":"Get an app","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/admin/apps/{id}","href":"/api-reference/apps/get-an-app"},{"title":"Delete an app","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/admin/apps/{id}","href":"/api-reference/apps/delete-an-app"}]},{"group":"Auth","pages":[{"title":"Log a staff user in","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/auth/login","href":"/api-reference/auth/log-a-staff-user-in"},{"title":"Log a staff user out","description":"Clears the `accessToken` and `refreshToken` cookies and, where it can, revokes the account's outstanding tokens by bumping its `tokenVersion` — which invalidates **every** session for that account, not just this one. **The revocation is conditional.** It happens only if a token presented with the request still verifies against the access secret. An expired access token, or a request carrying only the refresh cookie, clears the cookies but leaves `tokenVersion` untouched, so other live sessions survive. Do not rely on this endpoint as a security control for a stale session. Takes no request body and requires no authentication: it returns 200 even with no cookies at all, so it is safe to call unconditionally. `data` is null.\n","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/auth/logout","href":"/api-reference/auth/log-a-staff-user-out"},{"title":"Get the authenticated staff user's profile","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/auth/me","href":"/api-reference/auth/get-the-authenticated-staff-users-profile"},{"title":"Refresh a staff session","description":"Reads the `refreshToken` cookie and issues a new access token and a new refresh token, setting both as cookies. **The refresh token is rotated**, so the cookie sent with this request is replaced and cannot be reused. Takes **no request body** — the credential is the cookie. It is not one of the declared security schemes, which describe access tokens, so this operation declares no security and states the requirement here instead. Returns 401 when the cookie is absent, expired, or its `tokenVersion` no longer matches the account — which is what logout and a password reset bump. `data` is null on success.\n","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/auth/refresh-token","href":"/api-reference/auth/refresh-a-staff-session"}]},{"group":"Health","pages":[{"title":"Check service health","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/health","href":"/api-reference/health/check-service-health"}]},{"group":"Investors","pages":[{"title":"List investors","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/investors","href":"/api-reference/investors/list-investors"},{"title":"Get one investor","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/investors/{id}","href":"/api-reference/investors/get-one-investor"},{"title":"List an investor's securities","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/investors/{id}/securities","href":"/api-reference/investors/list-an-investors-securities"}]},{"group":"Issuers","pages":[{"title":"List issuers","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/issuers","href":"/api-reference/issuers/list-issuers"},{"title":"Get one issuer","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/issuers/{id}","href":"/api-reference/issuers/get-one-issuer"}]},{"group":"Reports","pages":[{"title":"Control book","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/reports/control-book","href":"/api-reference/reports/control-book"},{"title":"Master Security Holder File","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/reports/mshf","href":"/api-reference/reports/master-security-holder-file"},{"title":"Turnaround log","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/reports/turnaround","href":"/api-reference/reports/turnaround-log"},{"title":"Monthly turnaround compliance","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/reports/turnaround/monthly","href":"/api-reference/reports/monthly-turnaround-compliance"}]},{"group":"Securities","pages":[{"title":"List securities","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/securities","href":"/api-reference/securities/list-securities"},{"title":"Get one security","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/securities/{id}","href":"/api-reference/securities/get-one-security"}]},{"group":"Transactions","pages":[{"title":"List transaction items","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/transactions","href":"/api-reference/transactions/list-transaction-items"},{"title":"List holder positions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/transactions/holders","href":"/api-reference/transactions/list-holder-positions"},{"title":"List items with their classification state","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/transactions/item-classification","href":"/api-reference/transactions/list-items-with-their-classification-state"},{"title":"List journal ledger entries","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/transactions/ledger","href":"/api-reference/transactions/list-journal-ledger-entries"},{"title":"List the registrar journal","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/transactions/registrar-journal","href":"/api-reference/transactions/list-the-registrar-journal"},{"title":"List transfer items only","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/transactions/transfers","href":"/api-reference/transactions/list-transfer-items-only"}]},{"group":"Webhook","pages":[{"title":"Receive an issuer platform event","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/webhook/sync","href":"/api-reference/webhook/receive-an-issuer-platform-event"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Get the authenticated staff user's profile - Open Agent API","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}