Account

Get the authenticated user id

Returns the better-auth user id behind the credential. Organization API keys resolve to the user who created the key. Service accounts have no user and are rejected.

get/api/v1/user/identity

Request

  • Base URL
    https://app.promptingco.com
  • URL
    https://app.promptingco.com/api/v1/user/identity
  • Auth
    • API key in header x-api-key
    • or HTTP bearer
    • or API key in cookie better-auth.session_token

Response

Successful response

oktrue required

Changes

No recorded changes to this operation across all 1 revision of this API.