---
title: "Invalidate by source image"
method: POST
path: "/v1/edge-cache/invalidate-by-src-images"
tags: ["edge-cache"]
---

# Invalidate by source image

`POST /v1/edge-cache/invalidate-by-src-images`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/edge-cache/invalidate-by-src-images`
- Auth: HTTP bearer

Marks a source image as stale, causing its corresponding transformed images to be revalidated in the background on the next request.

## Query parameters

- `projectIdOrName` string, required
- `teamId` string
- `slug` string

## Request body

- object
  - `srcImages` string[], required

## Response `200`

## Other responses

- `400`: One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `402`
- `403`: You do not have permission to access this resource.
- `404`
- `410`

## Changes

- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2025-11-28** `45991e5c8b6d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/edge-cache/invalidate-by-src-images/post.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
