API ReferenceapiidentityGET /v1/users/{user_id}/badges

GET /v1/users/\{user_id\}/badges

Service: identity · operationId: (none)

List verification + credential badges for a user

Required scopes

(no scope declared — review service config)

Path parameters

  • user_id (string) required

Responses

200 User badges

{
  "type": "object",
  "properties": {
    "badges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Badge ID"
          },
          "type": {
            "type": "string",
            "description": "'verified' | 'credential' | 'achievement'"
          },
          "label": {
            "type": "string",
            "description": "Human-readable badge label"
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "description": "Badge color"
          },
          "icon": {
            "type": [
              "string",
              "null"
            ],
            "description": "Icon name"
          },
          "tooltip": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tooltip text"
          },
          "granted_at": {
            "type": "string",
            "description": "ISO 8601 timestamp"
          }
        },
        "required": [
          "id",
          "type",
          "label",
          "color",
          "icon",
          "tooltip",
          "granted_at"
        ]
      }
    }
  },
  "required": [
    "badges"
  ]
}

500 Internal server error

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X GET https://identity.platform.loop.health/v1/users/{user_id}/badges \
  -H "Authorization: Bearer $ACCESS_TOKEN"