get_user_info
Returns the account behind the API key — subscription plan and remaining credits. Useful as a connection smoke test: if this returns 200, your key is wired up correctly.
- Access
- read
- Category
- Account
- Endpoint
POST/api/tools/get_user_info
On this page
Parameters
workspaceIdstring
Workspace to act on, from list_workspaces. Omit to use the default workspace on the key.
Example request
curl -X POST "https://api.postmcpai.com/api/tools/get_user_info" \
-H "Content-Type: application/json" \
-H "x-api-key: $POSTMCPAI_API_KEY"Response
A single object describing the authenticated account.
{
"name": "Alex Johnson",
"email": "[email protected]",
"plan": "PRO",
"credits": 450
}