Snippets

List snippets

List snippets with pagination, search, and filtering

get/workspaces/{workspace_id}/snippets

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/snippets
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

workspace_idinteger required

Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

Example:4

Query parameters

limitinteger

Max number of result to return

Example:10
offsetinteger

Distance from the beginning of the list of results

Example:10
searchstring nullable

Search parameters by name or description

Example:revenue
group_idinteger nullable

Filter parameters by group ID

Example:1
sortstring nullable

Sort snippets

Example:(id:asc),(name:asc)
project_idinteger nullable

Filter by project ID. Omit for workspace-scoped only.

Response

List SnippetListResponse

total_countinteger required
offsetinteger required
limitinteger required
nextstring required

Changes

No recorded changes to this operation across all 3 revisions of this API.