Auth
Auth smoke-test
Returns the authenticated project_id, and for an API key its kind, scope and expiry. Useful for verifying the API key is valid and what it may do. kind, scope and expires_at are null for a console session. resource is present only for an OAuth access token, which is usable only through the LastPing MCP server.
get/api/v1/whoami
Request
- Base URL: https://app.lastping.dev
- URL: https://app.lastping.dev/api/v1/whoami
- Auth: one of:
- API key in header X-Api-Key
- API key in cookie lp_session
Response
API key is valid; returns the associated project_id and the key's kind, scope and expiry.
Example response
{
"project_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"kind": "key",
"scope": "write",
"resource": "https://mcp.lastping.dev/mcp"
}Changes
No recorded changes to this operation across all 2 revisions of this API.