---
title: "Trigger sample-flow import"
method: POST
path: "/workspaces/{workspace_id}/projects/{project_id}/sample-flow"
tags: ["Sample Flow"]
---

# Trigger sample-flow import

`POST /workspaces/{workspace_id}/projects/{project_id}/sample-flow`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/sample-flow`
- 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`

Downloads the public sample CSV, creates a future request, and enqueues an async job to ingest it.

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
- `project_id` integer, required: Project ID of the workspace

## Request body

- SampleFlowRequest: Sample flow request body
  - `label_resource_id` integer, nullable: Optional parent label/folder resource to place the imported file under.

## Response `200`

Sample flow request accepted

- SampleFlowResponseData
  - `name` string, required: Name of the downloaded sample file.
  - `job_id` integer, required: ID of the created async job for ingesting the sample file.

## Other responses

- `400`: Bad Request
- `401`: Authorization error

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
