---
title: "Sync Agent Workflow"
method: POST
path: "/v1/agents/{agent_id}/workflow/sync"
tags: ["Agent Workflow"]
---

# Sync Agent Workflow

`POST /v1/agents/{agent_id}/workflow/sync`

Pull the latest workflow from the agent's source provider into Bluejay.

``branch_id`` is opaque metadata — adapters that don't support branching ignore it.

## Path parameters

- `agent_id` string, required

## Query parameters

- `branch_id` string, nullable

## Headers

- `X-API-Key` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/getbluejay/apis/bluejay-api.md) · [All operations](https://skmtc.net/getbluejay/apis/bluejay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbluejay/bluejay-api/versions/f48cef80963f/schema)
