Authentication

Verify Access

Check whether an API key can authenticate API requests.

Modified at Apr 28, 2026, 05:38 AM UTC

GET/api/meuser.me.read

Returns the account profile connected to the API key, including the effective permissions used for RBAC checks.

Use this request after creating or rotating a key to confirm that the key can authenticate API requests and that the expected permissions are visible to the integration.

Request

curl "https://cekceir.online/api/me" \
  -H "Authorization: Bearer <api_key>" \

Request Fields

FieldTypeRequiredDescription
Authorizationheader stringYesBearer token header in the format Bearer <api_key>.

Success Response

{  "user_id": 1001,  "via": "client_api_key",  "access_channel": "api",  "account_type": "basic",  "role": "user",  "phone": "+628123456789",  "profile_picture_url": null,  "username": "customer",  "email": "[email&#160;protected]",  "session_id": null,  "api_key_id": 42,  "api_key_type": "client",  "external_user": null,  "permissions": [    "user.me.read",    "order.create"  ],  "token": {    "expires_at": null,    "expires_in": null  }}

Response Fields

FieldTypeRequiredDescription
user_idnumberYesUser ID that owns the API key.
viastringYesAuth audience, such as client_api_key or application_api_key.
access_channelstringYesChannel used by the credential, usually api.
account_typestringYesAccount type assigned to the user.
rolestringYesUser role used for RBAC permission checks.
phonestring or nullNoAccount phone number when available.
profile_picture_urlstring or nullNoProfile picture URL when configured.
usernamestring or nullNoAccount username when available.
emailstring or nullNoAccount email address when available.
session_idstring or nullNoSession ID when authenticated with a session token. API keys return null.
api_key_idnumber or nullNoAPI key ID when authenticated with an API key.
api_key_typestring or nullNoAPI key type, such as client or application.
external_userobject or nullNoDelegated external user context for application keys when present.
permissionsstring[]YesEffective permissions after key scope, key type, and user role are evaluated.
token.expires_atISO datetime or nullNoAccess-token expiration when authenticated by session token. API keys return null.
token.expires_innumber or nullNoSeconds until access-token expiration when available. API keys return null.