---
title: "Create a new endpoint."
method: POST
path: "/1.0/endpoints"
tags: ["Endpoint"]
---

# Create a new endpoint.

`POST /1.0/endpoints`

## Request body

- EndpointCreate — Endpoint Details
  - `name` string
  - `description` string, nullable
  - `positionBefore` string, nullable
  - `trafficUsage` 'Login' | 'Rss' | 'Form' | 'General' | 'Payment' | 'Cart' | 'Forms' | 'Account Creation'
  - `source` 'Web Browser' | 'Api' | 'Mobile App' | 'Agentic Protocol'
  - `cookieSameSite` 'Lax' | 'None' | 'Strict' — DataDome's cookie SameSite parameter for the endpoint.
  - `domain` string, nullable
  - `pathInclusion` string, nullable
  - `pathExclusion` string, nullable
  - `userAgentInclusion` string, nullable
  - `responseFormat` 'json' | 'html' | 'auto'
  - `detectionEnabled` boolean — The detection status for the endpoint.
  - `protectionEnabled` boolean — The protection status for the endpoint.
  - `query` string, nullable

## Response `201`

Endpoint resource created

- EndpointRead — Endpoint Details
  - `name` string
  - `description` string, nullable
  - `positionBefore` string, nullable
  - `trafficUsage` 'Login' | 'Rss' | 'Form' | 'General' | 'Payment' | 'Cart' | 'Forms' | 'Account Creation'
  - `source` 'Web Browser' | 'Api' | 'Mobile App' | 'Agentic Protocol'
  - `cookieSameSite` 'Lax' | 'None' | 'Strict' — DataDome's cookie SameSite parameter for the endpoint.
  - `domain` string, nullable
  - `pathInclusion` string, nullable
  - `pathExclusion` string, nullable
  - `userAgentInclusion` string, nullable
  - `responseFormat` 'json' | 'html' | 'auto'
  - `detectionEnabled` boolean — The detection status for the endpoint.
  - `protectionEnabled` boolean — The protection status for the endpoint.
  - `query` string, nullable

## Other responses

- `400` — Invalid input
- `403` — Forbidden
- `422` — Unprocessable entity

---

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