Knapsack

Get a Knap

Retrieve a specific Knap by UUID.

Get details for a specific Knap by its UUID.

Endpoint

GET /api/studio/knap-tools/{knap_tool_uuid}

Path Parameters

ParameterTypeRequiredDescription
knap_tool_uuidstringYesUUID of the Knap to retrieve

Request

No request body required.

Response

{
  "uuid": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Weekly Report Generator",
  "creation_user_id": 123,
  "schedule_type": "scheduled",
  "is_active": true,
  "visibility": "private",
  "can_toggle_default_active": false,
  "active_by_default": true,
  "tool_metadata": {
    "action_description": "Generate weekly reports from emails and meetings",
    "schedule_description": "every Monday at 9am"
  },
  "creation_timestamp": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "schedule_info": {
    "schedule_type": "weekly",
    "schedule_time": "09:00",
    "days_of_week": [1],
    "days_of_month": null,
    "weeks_of_month": null,
    "months_of_year": null
  },
  "next_run_at": "2024-01-22T09:00:00Z"
}

Response Fields

FieldTypeDescription
uuidstringUnique identifier for the Knap
namestringName of the Knap
creation_user_idintegerID of the user who created the Knap
schedule_typestringType of schedule: manual, scheduled, or post_meeting_transcription
is_activebooleanWhether the Knap is active for this user
visibilitystringVisibility level: private, public, or organization name
can_toggle_default_activebooleanWhether user can toggle the default active state (admin/owner only)
active_by_defaultbooleanDefault active state for shared Knaps
tool_metadataobjectMetadata including action description and schedule description
creation_timestampstringISO 8601 timestamp when created
updated_atstringISO 8601 timestamp when last updated
schedule_infoobject | nullParsed schedule details (read-only, for scheduled Knaps only)
next_run_atstring | nullISO 8601 timestamp of next scheduled run

Error Responses

Status CodeDescription
404Knap not found
403Access denied - user cannot view this Knap

Example

curl -X GET https://api.knapsack.ai/api/studio/knap-tools/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer {access_token}"