Looking for an email address in API call

We need email address from API calls:

we are looking for email address in the logs we get but
we are not getting that information. As per documentation aaEmail can be null but not email filed but we are receiving null in both places.
We need that email information to proceed further, request you to help us on the same

“aaEmail”: null,
“aaEnrolledDate”: null,
“avatarSource”: null,
“credentialsRemovedCount”: null,
“domainClaimed”: null,
“email”: null,

{
“id”: “5f23a853ef68d1494939e10e”,
“bio”: “”,
“bioData”: null,
“confirmed”: true,
“memberType”: “normal”,
“username”: “dawitmebrahtu”,
“aaId”: null,
“activityBlocked”: false,
“avatarHash”: null,
“avatarUrl”: null,
“fullName”: “DAWIT MEBRAHTU”,
“idEnterprise”: “5bacfd36eb4c3351a87190f7”,
“idEnterprisesDeactivated”: [],
“idMemberReferrer”: null,
“idPremOrgsAdmin”: [],
“initials”: “DM”,
“nonPublic”: {},
“nonPublicAvailable”: false,
“products”: [],
“url”: “https://trello.com/dawitmebrahtu”,
“status”: “disconnected”,
“aaBlockSyncUntil”: null,
“aaEmail”: null,
“aaEnrolledDate”: null,
“avatarSource”: null,
“credentialsRemovedCount”: null,
“domainClaimed”: null,
“email”: null,
“gravatarHash”: null,
“idEnterprisesAdmin”: [],
“loginTypes”: null,
“marketingOptIn”: null,
“messagesDismissed”: null,
“oneTimeMessagesDismissed”: null,
“prefs”: null,
“trophies”: [],
“uploadedAvatarHash”: null,
“uploadedAvatarUrl”: null,
“premiumFeatures”: [],
“isAaMastered”: null,
“siftDecision”: null,
“ixUpdate”: “33”,
“limits”: {
“boards”: {
“totalPerMember”:

{ “status”: “ok”, “disableAt”: 4500, “warnAt”: 4050 }
},
“orgs”: {
“totalPerMember”:

{ “status”: “ok”, “disableAt”: 850, “warnAt”: 765 }
}
},
“idOrganizations”: [
“5e38a8adc53ecc03773efb7f”,
“5cf7ef348c2f3c2cef9a88f2”
],
“idBoards”: [
“5d712bdc34356b115967bdd6”,
“5e6a5d083350a634bba13d4b”
]

Hi! Can you give a bit more context as to the query you are running? Where are you getting the “logs”?

hi,

We are trying to fetch the email address by performing memeber api call

Regards,
Sindhuri

Hi Sindhuri!
What token are you using to try to read their information? The user must authorize your application to read their email.
Can you please try a query like https://api.trello.com/1/members/{memberId}/email?key={apiKey}&token={token} with the bracketed information replaced? This should tell you if your token is not authorized to read emails.

hi Adriana,

i have tried querying using the above URL you have provided and this is the response i am seeing
https://api.trello.com/1/members/5f23a853ef68d1494939e10e/email?key={key}&token={token}

{
“_value”: null
}

Hi Sindhuri!
Please try generating a new token with this link:
https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&name=Server%20Token&key={apiKey}
I have found some documentation indicating that the response_type=token part of the URL was not included in some of the token generation parameters.

hi Adriana

can we setup a meeting to discuss more about this?

Regards,
Sindhuri

Please contact support via https://trello.com/contact/#/ to get more guided support. Thanks!

You can only get the email of the user whose token you are using.

Let’s say you have two users that are on the same Trello team - Pat and Alex.

Pat uses their API key 123 to authorize themselves. The authorization request includes the scopes: scope=read,write,account. This generates a token 456. They can not access Alex’s email, despite the fact that they are on the same team, using this key and token: 1/members/alex/email?key=123&token=456. This is because the token was granted by Pat. It can be used to get Pat’s email, though.

You can only access the email address of users who granted that token. 1 token == 1 email address.