---
title: "Create custom source"
method: POST
path: "/v1/sources/custom-sources"
tags: ["Sources"]
---

# Create custom source

`POST /v1/sources/custom-sources`

Create a new custom source for the authenticated account.

**⚠️ Beta Version**: This endpoint is in beta and may be subject to changes in future releases.

## Request body

- object — **⚠️ Beta Version**: This schema is in beta and may be subject to changes in future releases.
  - `name` string, required — The name of the custom source
  - `description` string, nullable — The description of the custom source
  - `use_only_detectors_with_validators` boolean — When true, scans of this source only keep secrets whose detector supports validity checks. Omit to leave the current value unchanged on update; defaults to false on creation.

## Response `201`

Custom source created successfully

- object — **⚠️ Beta Version**: This schema is in beta and may be subject to changes in future releases.
  - `id` string — The ID of the custom source
  - `source_uuid` string — Unique identifier for the custom source
  - `name` string — The name of the custom source
  - `description` string, nullable — The description of the custom source
  - `use_only_detectors_with_validators` boolean — When true, scans of this source only keep secrets whose detector supports validity checks.

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `403` — Forbidden
- `503` — API under maintenance

---

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