1. HelpDesk
  2. Developer FAQ

Can I retrieve a user's mobile number?

With our client-side SDKs you can call the getInfo method to receive the user's metadata. If there is a phone number associated with the user the metadata object will include a phoneNumber key with the user's phone number.

Customers using the Magic Admin SDK on dynamically-typed languages should receive a phone_number field as part of user metadata.

These dynamically-typed languages include:

  • Python
  • Ruby
  • PHP
The statically-typed languages where phone_number is not yet exposed include: 
  • TypeScript
  • GoLang