Query User Profiles and Credentials (Example)

Integrate credentials and Galaxy ID user profiles in your app

Last updated on December 22, 2021

This page describes how you can use the GraphQL explorer to query user's profile and credentials.

The query includes addressInfo, it’s a Address .

Please refer to the Query NFT holders (Example) for the complete request procedure.

 

Arguments

Name
Type
Description
address
address of the user.

Example

Request

query userCredentials{
  addressInfo(address: "0x111AE6Fe1ad173def8dC36e9dff5144c713F2880") {
    id
    avatar
    username
    eligibleCredentials(first: 10, after: "") {
      list {
        id
        name
      }
    }
  }
}

Response

{
  "data": {
    "addressInfo": {
      "id": "ckjTzYskcfydTCmE8n3DkB",
      "avatar": "https://source.boringavatars.com/marble/120/0x111AE6Fe1ad173def8dC36e9dff5144c713F2880",
      "username": "",
      "eligibleCredentials": {
        "list": [
          {
            "id": "335",
            "name": "Galaxy tester"
          },
          {
            "id": "76",
            "name": "Shadowy Coder"
          }
        ]
      }
    }
  }
}

For more information on each attribute, see GraphQL API

Did this answer your question?
😞
😐
🤩