cURL
curl --request GET \ --url https://api.pro.daya.co/public/v1/account \ --header 'X-Api-Key: <x-api-key>'
{ "success": true, "message": "Account retrieved successfully", "data": { "id": "770e8400-e29b-41d4-a716-446655440000", "email": "user@example.com", "name": "John Doe", "status": "active", "trading_enabled": true, "created_at": "2024-01-01T00:00:00Z" }, "timestamp": "2024-01-15T10:30:00Z" }
Get account information for the authenticated user
X-Api-Key: daya_sk_YOUR_API_KEY
curl --request GET \ --url https://api.pro.daya.co/public/v1/account \ --header 'X-Api-Key: daya_sk_YOUR_API_KEY'
Show account properties
770e8400-e29b-41d4-a716-446655440000
user@example.com
John Doe
active
suspended
frozen
{ "success": false, "message": "Unauthorized", "error": { "code": "API_KEY_INVALID", "message": "Invalid or missing API key" }, "timestamp": "2024-01-15T10:30:00Z" }
X-Api-Key
{ "success": false, "message": "Forbidden", "error": { "code": "API_KEY_INVALID_SCOPE", "message": "Insufficient scope for this operation" }, "timestamp": "2024-01-15T10:30:00Z" }