Account
Retrieve the authenticated user's account details, including credit balance and allowed domains.
This endpoint returns the current authenticated user's account information. It includes the user's unique ID, available credit balance, and a list of allowed client domains used for CORS validation.
Authentication is required via the x-api-key header.
Use this endpoint to verify the active user or check remaining credits before submitting tasks.
Retrieve the authenticated user's account details including available credit and allowed domains.
Authorizations
x-api-keystringRequired
Responses
200
User account details retrieved successfully.
application/json
400
Invalid or missing API key
application/json
500
Internal server error
application/json
get
/account/getGET /account/get HTTP/1.1
Host: enterprise.nudify.me
x-api-key: YOUR_API_KEY
Accept: */*
{
"id": "uH1dYT2z6xQ3vLpP8fE4Yc9pD7aB",
"credit": 42,
"allowedDomains": [
"example.com",
"yourapp.dev"
]
}Last updated