{
  "opencollection": "1.0.0",
  "info": {
    "name": "Turnkey Organizations Users & Policies API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-Stamp",
      "value": "{{X-Stamp}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Users & Policies",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create policies",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.turnkey.com/public/v1/submit/create_policies",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds one or more policies to the policy engine that authorizes activities. Activity type ACTIVITY_TYPE_CREATE_POLICIES."
        },
        {
          "info": {
            "name": "Create users",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.turnkey.com/public/v1/submit/create_users",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds users to an organization with associated API keys and authenticators. Activity type ACTIVITY_TYPE_CREATE_USERS_V3."
        },
        {
          "info": {
            "name": "Create authenticators",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.turnkey.com/public/v1/submit/create_authenticators",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Registers WebAuthn/passkey authenticators for a user. Activity type ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2."
        },
        {
          "info": {
            "name": "List users",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.turnkey.com/public/v1/query/list_users",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Lists users in an organization."
        },
        {
          "info": {
            "name": "List policies",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.turnkey.com/public/v1/query/list_policies",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Lists policies in an organization."
        },
        {
          "info": {
            "name": "Who am I",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.turnkey.com/public/v1/query/whoami",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Returns the organization and user associated with the stamping credential of the request."
        }
      ]
    }
  ],
  "bundled": true
}