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.

project_idstring uuid required
kind'key' | 'oauth' | 'null' nullable required

key for an API key, oauth for an OAuth access token made by connecting an app; null for a console session.

scope'read' | 'write' | 'admin' | 'ingest' | 'null' nullable required

The credential's scope; null for a console session.

expires_atstring date-time nullable required

When the credential expires; null when it never does, and for a console session.

resourcestring

The MCP resource an OAuth access token was issued for. Present only when kind is oauth.

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.