Skip to main content
GET
/
user
Get user information
curl --request GET \
  --url https://api.videodb.io/user \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "data": {
    "user_id": "u-12345",
    "user_name": "John Doe",
    "user_email": "[email protected]",
    "collections": [
      "default",
      "c-67890"
    ],
    "default_collection": "default"
  }
}
Retrieve the current user’s account details including email and available credits.
  • Requires valid API key for authentication via x-access-token header
  • Returns user email and current credit balance
  • Use this to check account status before running operations

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Response

User information

success
boolean
Example:

true

data
object