VideohatiDocs
API referenceAuthentication

Current user

Current user

GET/v1/auth/me

This operation supports dashboard session-cookie authentication. Call it only from trusted server code; browsers must not manufacture or expose the session cookie.

Returns the authenticated user. Accepts the session cookie or an API key bearer token. Rate limit: 60 requests per 60 s per caller.

Error codes: unauthorized (401).

Authentication

  • sessionCookie — Dashboard session cookie set by POST /v1/auth/login. Video and playback endpoints additionally require the projectId query parameter under cookie auth.
  • apiKey — Project API key: Authorization: Bearer vh_live_... (live mode) or Authorization: Bearer vh_test_... (test mode). Keys carry read and/or write scopes.

Parameters

This operation takes no parameters.

Request body

This operation takes no request body.

Responses

StatusMeaning
200The authenticated user.
401No valid credential was presented.
429Rate limit exceeded.

Try it

GET
/v1/auth/me
Test mode only

API playground

Send a live request to api.videohati.com with a test-mode key.

This playground blocks vh_live_ keys. Use a key that starts with vh_test_ only; a request with a live key never leaves your browser.

The key is stored in your browser on docs.videohati.com only.

https://api.staging.videohati.com/v1/auth/me