cURL
curl --request POST \ --url https://api.altmagic.pro/v1/get-user-details-api \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "user_id": "[email protected]" } '
{ "userDetails": { "user_id": "<string>", "plan_type": "<string>", "credits_available": 123 } }
Retrieves user details including their current subscription plan and available credits
Unique identifier of the user whose details are requested. If omitted, the user_id will be inferred from the API key.
Successful user details retrieval
Show child attributes