---
name: policies-system-api
description: "Policies System API skill. Use when working with Policies System for api. Covers 6 endpoints."
version: 1.0.0
generator: lapsh
---

# Policies System API

## Auth
ApiKey X-VTEX-API-AppKey in header | ApiKey X-VTEX-API-AppToken in header | ApiKey VtexIdclientAutCookie in header

## Base URL
https://apiexamples.vtexcommercestable.com.br

## Setup
1. Set your API key in the appropriate header
2. GET /api/policy-engine/policies -- verify access
3. POST /api/policy-engine/evaluate -- create first evaluate

## Endpoints

6 endpoints across 1 groups. See references/api-spec.lap for full details.

### api
| Method | Path | Description |
|--------|------|-------------|
| GET | /api/policy-engine/policies | Get policy list |
| POST | /api/policy-engine/evaluate | Evaluate policies |
| GET | /api/policy-engine/policies/{id} | Get policy by ID |
| POST | /api/policy-engine/policies/{id} | Create policy |
| PUT | /api/policy-engine/policies/{id} | Update policy |
| DELETE | /api/policy-engine/policies/{id} | Delete policy by ID |

## Common Questions

Match user requests to endpoints in references/api-spec.lap. Key patterns:
- "List all policies?" -> GET /api/policy-engine/policies
- "Create a evaluate?" -> POST /api/policy-engine/evaluate
- "Get policy details?" -> GET /api/policy-engine/policies/{id}
- "Update a policy?" -> PUT /api/policy-engine/policies/{id}
- "Delete a policy?" -> DELETE /api/policy-engine/policies/{id}
- "How to authenticate?" -> See Auth section

## Response Tips
- Check response schemas in references/api-spec.lap for field details
- Create/update endpoints typically return the created/updated object

## CLI

```bash
# Update this spec to the latest version
npx @lap-platform/lapsh get policies-system-api -o references/api-spec.lap

# Search for related APIs
npx @lap-platform/lapsh search policies-system-api
```

## References
- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas

> Generated from the official API spec by [LAP](https://lap.sh)
