---
title: "Read an attached workbook against one of your views"
method: POST
path: "/dashboards/v3/attachments/{attachment_id}/intent"
tags: ["Dashboard v3 Surfaces"]
---

# Read an attached workbook against one of your views

`POST /dashboards/v3/attachments/{attachment_id}/intent`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/dashboards/v3/attachments/{attachment_id}/intent`
- 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`

Maps the attached workbook's fields and visuals onto the target view's REAL columns (the template mapping resolver). Nothing is landed and no sample data is made. Poll /jobs/{future_id}: the result is `{intent, coverage: {mapped, total}, unmapped_visuals, field_map}`, or `{rejected}` when the file cannot be read.

## Path parameters

- `attachment_id` integer, required

## Request body

- AttachmentIntentForm
  - `target_dataview_id` integer, required

## Response `202`

Read queued; poll /jobs/{future_id}

- AttachmentJob
  - `future_id` integer, required

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[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)
