API referenceAuthentication
Current user
Current user
GET
/v1/auth/meThis 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 theprojectIdquery parameter under cookie auth. - apiKey — Project API key:
Authorization: Bearer vh_live_...(live mode) orAuthorization: Bearer vh_test_...(test mode). Keys carryreadand/orwritescopes.
Parameters
This operation takes no parameters.
Request body
This operation takes no request body.
Responses
| Status | Meaning |
|---|---|
200 | The authenticated user. |
401 | No valid credential was presented. |
429 | Rate limit exceeded. |
Try it
GET
/v1/auth/meTest 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