GET
/
profile
curl --request GET \
  --url https://api.openformat.tech/v1/profile \
  --header 'X-API-KEY: <api-key>'
{
  "user_id": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
  "xp_balance": "10",
  "collected_badges": [
    {
      "id": "0x073bacb2b25973aecfb718e47fc92cccdd895dcc",
      "name": "ACCESS_KEY",
      "metadataURI": null,
      "metadata": null
    },
    {
      "id": "0x30216dd54591950d175f14b84eee95620000c38f",
      "name": "Novice Forager",
      "metadataURI": "ipfs://TokenURI",
      "metadata": null
    }
  ],
  "completed_actions": [
    {
      "name": "collected berry",
      "createdAt": "1728053671",
      "xp_rewarded": "1"
    }
  ],
  "credit_balances": [
    {
      "token_id": "0x645065e4e95be7c4a94d57c00d4bbe8e79efc47f",
      "token_name": "My Credit Token",
      "token_balance": "9999999999999999999",
      "token_balance_formatted": "9.999999999999999999",
      "token_symbol": "MCT",
      "token_decimals": 18
    }
  ]
}
{
  "user_id": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
  "xp_balance": "10",
  "collected_badges": [
    {
      "id": "0x073bacb2b25973aecfb718e47fc92cccdd895dcc",
      "name": "ACCESS_KEY",
      "metadataURI": null,
      "metadata": null
    },
    {
      "id": "0x30216dd54591950d175f14b84eee95620000c38f",
      "name": "Novice Forager",
      "metadataURI": "ipfs://TokenURI",
      "metadata": null
    }
  ],
  "completed_actions": [
    {
      "name": "collected berry",
      "createdAt": "1728053671",
      "xp_rewarded": "1"
    }
  ],
  "credit_balances": [
    {
      "token_id": "0x645065e4e95be7c4a94d57c00d4bbe8e79efc47f",
      "token_name": "My Credit Token",
      "token_balance": "9999999999999999999",
      "token_balance_formatted": "9.999999999999999999",
      "token_symbol": "MCT",
      "token_decimals": 18
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

Query Parameters

chain
string
required

Blockchain network to use

Required string length: 1 - 255
Example:

"arbitrum-sepolia"

user_id
string

Ethereum address of the user we are insterested, if not present then the address of the logged user will be used

Example:

"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"

app_id
string

Ethereum addres of the application we are interested, if not present then results will not contain token balances

Example:

"0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a"

Response

200
application/json
Displays the on-chain profile for a user

User profile

user_id
string
required
xp_balance
string
required

XP token balabce

Example:

"123"

collected_badges
object[]
required

List of badges received by this user

completed_actions
object[]
required

List of actions completed by this user