diff --git a/content/docs/api.md b/content/docs/api.md new file mode 100644 index 0000000..62adb78 --- /dev/null +++ b/content/docs/api.md @@ -0,0 +1,18 @@ +--- +weight: 100 +title: "MoonVeil REST API" +description: "Perform obfuscations programmatically" +icon: "article" +date: "2025-05-01T18:47:58-05:00" +lastmod: "2025-05-01T18:47:58-05:00" +--- + +MoonVeil is available to be used programmatically via it's web API if you'd like. Start by [creating an API token](/account). + +## Authorization + +Each API request expects an `Authorization` header in the format of `Authorization: Bearer mv-secret-...` where `mv-secret-...` is the API token you just created. +{{% alert context="warning" text="**DO NOT** share this token with anyone else!" /%}} + +{{< swagger >}} + diff --git a/content/docs/using-macros.md b/content/docs/using-macros.md index bf7793d..090246a 100644 --- a/content/docs/using-macros.md +++ b/content/docs/using-macros.md @@ -9,4 +9,4 @@ lastmod: "2025-05-01T18:47:58-05:00" [Macros](./macros/) are a collection of reserved global functions available for use in your scripts. These are only available at obfuscation-time and are not available at runtime, meaning trying to access these functions dynamically will fail. -They can be used in any script in [your dashboard](./dashboard/) and provide many useful tools for obfuscation. \ No newline at end of file +They can be used in any script in [your dashboard](./dashboard/) or through the [API](./api/) and provide many useful tools for obfuscation. \ No newline at end of file diff --git a/layouts/shortcodes/swagger.html b/layouts/shortcodes/swagger.html new file mode 100644 index 0000000..7301983 --- /dev/null +++ b/layouts/shortcodes/swagger.html @@ -0,0 +1,132 @@ + + + + + +
+ \ No newline at end of file