---
title: "Validates link test results against the provided spreadsheet file"
method: POST
path: "/v1/inspect/links/{id}/csv"
tags: ["Link Validation"]
---

# Validates link test results against the provided spreadsheet file

`POST /v1/inspect/links/{id}/csv`

## Request

- Base URL: `https://api.mailgun.net`
- URL: `https://api.mailgun.net/v1/inspect/links/{id}/csv`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/mailgun/apis/email-preview-api/docs/v1/inspect/links/:id/csv/post.ts> (a function with typed inputs; its response is checked against the schema)

Compares link validation test results to the spreadsheet provided as a CSV, XLS or XLSX file.

## Path parameters

- `id` string, required

## Request body `multipart/form-data`

- string

## Response `200`

A 200 response

- GithubComMailgunInspectInternalLinkvalidationCSVLinkValidationJSONAPIResponse
  - `meta` object, nullable
  - `items` GithubComMailgunInspectInternalLinkvalidationCSVValidationResponse
    - `valid` boolean, required
    - `errors` GithubComMailgunInspectInternalLinkvalidationCSVValidationError[]
      - `row` integer, required
      - `message` string, required
      - `alert` GithubComMailgunInspectInternalLinkvalidationAlert
        - `severity` string, required
        - `data` object

## Other responses

- `400`: A 400 response
- `401`: A 401 response

---

[API](https://skmtc.dev/mailgun/apis/email-preview-api.md) - [All operations](https://skmtc.dev/mailgun/apis/email-preview-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailgun/apis/email-preview-api/revisions/c8a18f02bc8b?raw)
