/api/v1/account
scope: account:read
Get your profile + wallet balance
پاسخها
- 200 — Profile fields
نمونه cURL
curl -X GET -H "Authorization: Bearer ic_pat_…" \
https://iranclaud.ir/api/v1/account
5 endpoint
/api/v1/account
scope: account:read
Get your profile + wallet balance
curl -X GET -H "Authorization: Bearer ic_pat_…" \
https://iranclaud.ir/api/v1/account
/api/v1/me
scope: account:read
Alias for /api/v1/account
curl -X GET -H "Authorization: Bearer ic_pat_…" \
https://iranclaud.ir/api/v1/me
/api/v1/account/ssh-keys
scope: account:read
List your SSH keys
curl -X GET -H "Authorization: Bearer ic_pat_…" \
https://iranclaud.ir/api/v1/account/ssh-keys
/api/v1/account/ssh-keys
scope: account:write
Register a new SSH key
{
"label": "laptop",
"public_key": "ssh-ed25519 AAAA..."
}
curl -X POST -H "Authorization: Bearer ic_pat_…" \
-H "Content-Type: application/json" \
-d '{"label":"laptop","public_key":"ssh-ed25519 AAAA..."}' \
https://iranclaud.ir/api/v1/account/ssh-keys
/api/v1/account/ssh-keys/{uuid}
scope: account:write
Delete an SSH key
uuid — Key UUIDcurl -X DELETE -H "Authorization: Bearer ic_pat_…" \
https://iranclaud.ir/api/v1/account/ssh-keys/{uuid}