{
  "opencollection": "1.0.0",
  "info": {
    "name": "Hanko Admin Audit Logs Users API",
    "version": "1.2.0"
  },
  "items": [
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a list of emails for a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/emails",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get a list of emails for a user"
        },
        {
          "info": {
            "name": "Create an email for a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/emails",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create an email for a user"
        },
        {
          "info": {
            "name": "Get an email of a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/emails/:email_id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              },
              {
                "name": "email_id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested email"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get an email of a user"
        },
        {
          "info": {
            "name": "Remove an email from a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/emails/:email_id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              },
              {
                "name": "email_id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested email"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Remove an email from a user"
        },
        {
          "info": {
            "name": "Set email as primary",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/emails/:email_id/set_primary",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              },
              {
                "name": "email_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Set email as primary"
        },
        {
          "info": {
            "name": "Get users active sessions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/sessions",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get users active sessions"
        },
        {
          "info": {
            "name": "Delete a session from a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/sessions/:session_id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              },
              {
                "name": "session_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a session from a user"
        },
        {
          "info": {
            "name": "Get the OTP secret metadata of a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/otp",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get the OTP secret metadata of a user"
        },
        {
          "info": {
            "name": "Delete the OTP secret from a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/otp",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete the OTP secret from a user"
        },
        {
          "info": {
            "name": "Get a list of all WebAuthn credentials for a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/webauthn_credentials",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get a list of all WebAuthn credentials for a user"
        },
        {
          "info": {
            "name": "Get a WebAuthn credential of a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/webauthn_credentials/:credential_id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              },
              {
                "name": "credential_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get a WebAuthn credential of a user"
        },
        {
          "info": {
            "name": "Delete a WebAuthn credential from a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/webauthn_credentials/:credential_id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              },
              {
                "name": "credential_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a WebAuthn credential from a user"
        },
        {
          "info": {
            "name": "Get password metadata of a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/password",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get password metadata of a user"
        },
        {
          "info": {
            "name": "Create a password for a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/password",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a password for a user"
        },
        {
          "info": {
            "name": "Update the password for a user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/password",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update the password for a user"
        },
        {
          "info": {
            "name": "Delete the password of a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{tenant_id}.hanko.io/admin/users/:id/password",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "UUID of the requested object"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete the password of a user"
        }
      ]
    }
  ],
  "bundled": true
}