{
  "opencollection": "1.0.0",
  "info": {
    "name": "Ostrom Auth Users API",
    "version": "2023-11-01"
  },
  "items": [
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve user information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.ostrom-api.io/me",
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.sandbox.ostrom-api.io/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Allowed role: `USER`"
        },
        {
          "info": {
            "name": "Link user to a partner client application",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.ostrom-api.io/users/link",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.sandbox.ostrom-api.io/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Allowed role: `PARTNER`"
        },
        {
          "info": {
            "name": "Disconnect user from partner client application",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://sandbox.ostrom-api.io/users/:externalUserId/disconnect",
            "params": [
              {
                "name": "externalUserId",
                "value": "",
                "type": "path",
                "description": "Partner user unique identifier"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.sandbox.ostrom-api.io/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Allowed role: `PARTNER`"
        }
      ]
    }
  ],
  "bundled": true
}