Klu Docs

GET me

Validate the API key and read organization metadata.

Endpoint

GET /public-api/v1/me

Purpose

Confirms that the key is valid and returns safe metadata about the key and organization.

Authentication

Required.

Authorization: Bearer klu_live_replace_me

Parameters

None.

Response fields

  • key.id: internal key ID.
  • key.prefix: safe display prefix.
  • key.last4: last four characters of the key.
  • organization.id: organization ID.
  • organization.name: organization name.
  • organization.stores: number of branches in the organization.

Example request

curl https://api.klupos.com/public-api/v1/me \
  -H "Authorization: Bearer klu_live_replace_me"

Example response

{
  "data": {
    "key": {
      "id": "key-id",
      "prefix": "klu_live_...",
      "last4": "WXYZ"
    },
    "organization": {
      "id": "organization-id",
      "name": "Example Dispensary",
      "stores": 2
    }
  }
}

Common errors

  • 401: missing, invalid, revoked, or disabled key.
  • 429: rate limit exceeded.

AI-agent notes

Call this first to verify the connection. Do not ask the user for organizationId; use the organization returned here only for display.

On this page