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": "jsmith@example.com" }'
{ "userDetails": { "user_id": "<string>", "plan_type": "<string>", "credits_available": 123 } }
Retrieves user details including their current subscription plan and available credits
Successful user details retrieval
The response is of type object.
object