---
title: "Create Attestation Policy"
method: POST
path: "/policies/attestation"
tags: ["Policies"]
---

# Create Attestation Policy

`POST /policies/attestation`

## Request body

- AttestationPolicy
  - `id` string, uuid
  - `platform` 'kubernetes' | 'aws' | 'azure' | 'docker'
  - `selector` object — Platform-specific selector criteria
  - `effect` 'allow' | 'deny'
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `201`

Attestation policy created

- AttestationPolicy
  - `id` string, uuid
  - `platform` 'kubernetes' | 'aws' | 'azure' | 'docker'
  - `selector` object — Platform-specific selector criteria
  - `effect` 'allow' | 'deny'
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing authentication
- `500` — Internal Server Error - Unexpected server error

---

[API](https://skmtc.net/deeptrail/apis/deepsecure-api-dual-service-architecture.md) · [All operations](https://skmtc.net/deeptrail/apis/deepsecure-api-dual-service-architecture/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrail/deepsecure-api-dual-service-architecture/versions/78627360c082/schema)
