---
title: "Discussion on \"How to add validation to a custom API in Strapi?\" | Hashnode"
description: "Discussion on \"How to add validation to a custom API in Strapi?\". Vivek Agarwal wrote a great tutorial for adding custom API endpoints in Strapi. It didn't include any tips for validating the request input. In this tutorial, I will show how to create a pleasant user-friendly API validation experience in Strapi 4.\nS..."
url: "https://hashnode.com/posts/how-to-add-validation-to-a-custom-api-in-strapi/63bc905dd1248fe6855a25e8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to add validation to a custom API in Strapi?](https://jiv-e.com/how-to-add-validation-to-a-custom-api-in-strapi?utm_source=hashnode&utm_medium=feed)

Vivek Agarwal wrote a great tutorial for adding custom API endpoints in Strapi. It didn't include any tips for validating the request input. In this tutorial, I will show how to create a pleasant user-friendly API validation experience in Strapi 4. S...

Jan 9, 2023 · 3 min read · jiv-e.com  
Read the article

-   [#strapi](https://hashnode.com/tag/strapi)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#koa](https://hashnode.com/tag/koa)
-   [#validation](https://hashnode.com/tag/validation)

## Written by

[Juho Viitasalo](https://hashnode.com/@jiv-e)

@jiv-e · Finland

  
[View profile](https://hashnode.com/@jiv-e)

Web generalist.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
