Scripts and snippets are reusable automation assets. Scripts contain multi-line shell content (with optional OS filtering) that can be executed on servers. Snippets are single-command shortcuts that appear in terminal sessions for quick insertion. Both resource types support personal and organization-scoped ownership. All endpoints require authentication viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/gnmyt/Nexterm/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer YOUR_TOKEN.
Scripts
GET /api/scripts
Returns available scripts for the authenticated user. Supports optional search and organization filtering.Query parameters
Filter scripts by name or description. When omitted, all accessible scripts are returned.
Restrict results to scripts belonging to a specific organization.
Response
Returns an array of script objects.Unique script identifier.
Display name of the script.
Optional description of what the script does.
List of OS identifiers this script is filtered to, or
null for all systems.Owning organization ID, or
null for personal scripts.GET /api/scripts/all
Returns all scripts accessible to the authenticated user — personal scripts plus scripts from every organization they belong to.Response
Returns a flat array of all accessible script objects.GET /api/scripts/sources
Returns all scripts from external (community or marketplace) sources.Response
Returns an array of source script objects.GET /api/scripts/:scriptId
Returns the full details of a single script, including its content.Path parameters
Unique identifier of the script.
Query parameters
Required when accessing an organization script.
Response
Script identifier.
Script name.
The full shell script content.
Script description.
OS filter list, or
null.Owning organization ID, or
null.POST /api/scripts
Creates a new custom script.Request body
Display name. Between 1 and 255 characters.
The shell script content. Cannot be empty.
Optional description of what the script does.
Create the script under an organization. Omit for a personal script.
List of OS identifiers to restrict this script to (e.g.
["linux", "macos"]). Pass null to target all systems.Response (201)
ID of the newly created script.
Confirmation message.
PUT /api/scripts/:scriptId
Replaces an existing custom script’s content or metadata. Only the script creator can update it.Path parameters
Unique identifier of the script to update.
Query parameters
Required when updating an organization script.
Request body
Updated display name.
Updated script content.
Updated description.
Updated OS filter list.
Response
Confirmation message.
DELETE /api/scripts/:scriptId
Permanently deletes a custom script. Only the script creator can delete it.Path parameters
Unique identifier of the script to delete.
Query parameters
Required when deleting an organization script.
Response
Confirmation message.
PATCH /api/scripts/:scriptId/reposition
Moves a script to a new position in the list relative to a target script.Path parameters
Unique identifier of the script to reposition.
Query parameters
Required when repositioning an organization script.
Request body
The ID of the script to position next to.
Response
Confirmation message.
Snippets
GET /api/snippet/all
Returns all snippets accessible to the authenticated user — personal snippets plus snippets from every organization they belong to.Response
Returns an array of snippet objects.Unique snippet identifier.
Display name of the snippet.
The command string for this snippet.
Optional description.
OS filter list, or
null.Owning organization ID, or
null for personal snippets.GET /api/snippet/sources
Returns all snippets from external (community or marketplace) sources.Response
Returns an array of source snippet objects.GET /api/snippet/:snippetId
Returns the full details of a single snippet.Path parameters
Unique identifier of the snippet.
Query parameters
Required when accessing an organization snippet.
Response
Snippet identifier.
Snippet name.
The command string.
Snippet description.
OS filter list, or
null.PUT /api/snippet
Creates a new snippet.Request body
Display name. Between 1 and 255 characters.
The command string for this snippet. Cannot be empty.
Optional description.
Create the snippet under an organization. Omit for a personal snippet.
List of OS identifiers to restrict this snippet to. Pass
null for all systems.Response
ID of the newly created snippet.
Confirmation message.
PATCH /api/snippet/:snippetId
Updates an existing snippet. At least one field must be provided.Path parameters
Unique identifier of the snippet to update.
Query parameters
Required when updating an organization snippet.
Request body
New display name.
New command string.
New description.
Updated OS filter list.
Response
Confirmation message.
DELETE /api/snippet/:snippetId
Permanently deletes a snippet. This action cannot be undone.Path parameters
Unique identifier of the snippet to delete.
Query parameters
Required when deleting an organization snippet.
Response
Confirmation message.
PATCH /api/snippet/:snippetId/reposition
Moves a snippet to a new position in the list relative to a target snippet.Path parameters
Unique identifier of the snippet to reposition.
Query parameters
Required when repositioning an organization snippet.
Request body
The ID of the snippet to position next to.
Response
Confirmation message.