---
title: "POST /function-source/validate"
method: POST
path: "/function-source/validate"
tags: ["FunctionSource"]
---

# POST /function-source/validate

`POST /function-source/validate`

## Request body

- ValidateFunctionSourceRequest
  - `code` string, required

## Response `200`

Success

- FunctionSourceValidation
  - `detected` boolean
  - `categories` string[], nullable
  - `detections` FunctionSourceDetection[], nullable
    - `category` string, nullable
    - `start` integer
    - `length` integer
  - `redacted_code` string, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/basistheory/apis/basis-theory-api.md) · [All operations](https://skmtc.net/basistheory/apis/basis-theory-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/basistheory/basis-theory-api/revisions/cbb8e098b560/schema)
