---
title: "Sync agent deploy outputs"
method: POST
path: "/v1/agents/{id}/policy-sync"
tags: ["agents"]
---

# Sync agent deploy outputs

`POST /v1/agents/{id}/policy-sync`

## Request

- Base URL: `https://api.wraps.dev`
- URL: `https://api.wraps.dev/v1/agents/{id}/policy-sync`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `credentialUserArn` string
  - `enforcerFunctionArn` string
  - `awsAccountId` string

## Response `200`

- object
  - `agent` object, required
    - `id` string, required
    - `organizationId` string, required
    - `name` string, required
    - `emailAddress` string, required
    - `domain` string, required
    - `status` string, required: ACTIVE or KILLED
    - `policy` object, required
      - `maxPerHour` number, required: Max sends per rolling hour (0 flags every send)
      - `maxPerDay` number, required: Max sends per rolling day (0 flags every send)
      - `allowedRecipients` string[], required: Exact recipient addresses always allowed
      - `allowedRecipientDomains` string[], required: Recipient domains always allowed
    - `credentialUserArn` string, required
    - `enforcerFunctionArn` string, required
    - `awsAccountId` string, required
    - `createdBy` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `syncStatus` union, required
    - string
    - string
    - string
  - `warning` string

## Other responses

- `400`
- `401`: Missing, malformed, or revoked credentials. Send `Authorization: Bearer <api key>`.
- `403`
- `404`
- `422`: The request parsed but failed schema validation.
- `429`: Rate limit exceeded. Wait for the window named by the RateLimit headers.
- `500`: Unexpected server failure. Safe to retry with backoff; quote `requestId` if it persists.

---

[API](https://skmtc.dev/wraps/apis/wraps-platform-api.md) · [All operations](https://skmtc.dev/wraps/apis/wraps-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wraps/apis/wraps-platform-api/revisions/12116fb21af7?raw)
