{
  "opencollection": "1.0.0",
  "info": {
    "name": "papi alert-query-proxy profile API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "profile",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Profile",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/accounts/profile/:user_id",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve a user's public profile by user ID.\n\nIntentionally readable by any authenticated user — profiles contain only\npublic-facing fields (avatar, bio, LinkedIn). Write/delete operations\nenforce ownership."
        },
        {
          "info": {
            "name": "Update Profile",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/accounts/profile/:user_id",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a profile. Creates the profile if it doesn't exist (PUT-as-create).\n\nUsers can only edit their own profile."
        },
        {
          "info": {
            "name": "Delete Profile",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/accounts/profile/:user_id",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a profile. Only the profile owner or superuser can delete."
        },
        {
          "info": {
            "name": "Sync User Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/accounts/sync-user-account",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Reconcile workspace permissions for a user.\n\nWhen workspace admins invite a user by email before that user has an\naccount, the permission row stores a placeholder email. This endpoint\nlinks those placeholder rows to the actual user record.\n\nOnly the target user or staff may trigger this."
        }
      ]
    }
  ],
  "bundled": true
}