---
title: "Get sync"
method: GET
path: "/companies/{companyId}/connections/{connectionId}/bankFeedAccounts/{sourceAccountId}/managedBankFeeds/syncs/{syncId}"
tags: ["Managed bank feeds"]
---

# Get sync

`GET /companies/{companyId}/connections/{connectionId}/bankFeedAccounts/{sourceAccountId}/managedBankFeeds/syncs/{syncId}`

## Request

- Base URL: `https://api.codat.io`
- URL: `https://api.codat.io/companies/{companyId}/connections/{connectionId}/bankFeedAccounts/{sourceAccountId}/managedBankFeeds/syncs/{syncId}`
- Auth: API key in header `Authorization`

The _Get sync_ endpoint returns the [sync status](https://docs.codat.io/bank-feeds-api#/schemas/SyncStatusResult) for a given 'syncId'. 

A sync is a single execution that fetches bank transactions from a connected bank account and records them in the company's accounting software.

## Response `200`

Success

- SyncStatusResult: Represents the status of a managed bank feed sync.
  - `syncId` string, uuid, required: The unique identifier for the sync.
  - `clientId` string, uuid, required: The ID of the client associated with the company that owns the source bank account.
  - `companyId` string, uuid, required: The ID of the company that owns the source bank account.
  - `companyName` string, required: The name of the company that owns the source bank account.
  - `dataConnectionId` string, uuid, required: The ID of the target accounting data connection.
  - `sourceAccountId` string, required: The ID of the source bank account from which transactions are fetched.
  - `periodStartUtc` string, date-time, required: The start of the sync period.
  - `periodEndUtc` string, date-time, required: The end of the sync period.
  - `executionStartUtc` string, date-time, required: The UTC timestamp when the sync started executing.
  - `status` string, required: The current status of the sync. Known values are `Started`, `Failed`, `SuccessDataPushed`, `SuccessNoDataPushed`, `PartialSuccessDataPushed`.
  - `executionEndUtc` string, date-time, nullable: The UTC timestamp when the sync execution ended, if completed (i.e. `status` is any value other than `Started`).
  - `errorMessage` string, nullable: Error message if the sync failed.
  - `errorCode` string, nullable: Error code if the sync failed.
  - `pushOperationKeys` string[], nullable: List of write operation keys associated with the sync, if the sync resulted in write attempts.

## Other responses

- `401`: Your API request was not properly authorized.
- `402`: An account limit has been exceeded. The type of limit is described in the error property: - You have exceeded the 50-company limit that applies to a Free plan. Delete any companies you no longer need and retry the request. - The requested sync schedule is not allowed. You requested an hourly sync schedule but this functionality is not included in the Free plan. - Your Free account is older than 365 days and has expired. Contact support@codat.io.
- `403`: You are using an outdated API key or a key not associated with that resource.
- `404`: One or more of the resources you referenced could not be found. This might be because your company or data connection id is wrong, or was already deleted.
- `429`: Too many requests were made in a given amount of time. Wait a short period and then try again.
- `500`: There is a problem with our server. Please try again later.
- `503`: The Codat API is temporarily offline for maintenance. Please try again later.

## Changes

- **2025-05-13** `338f1f6ddb42`: 11 info
  - api operation id `fetch-managed-bank-feed-sync-by-id` removed and replaced with `get-managed-bank-feed-sync`
  - the response property `clientId` became required for the status `200`
  - the response property `companyId` became required for the status `200`
  - the response property `companyName` became required for the status `200`
  - …7 more
- **2025-05-07** `e6db9c9af587`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/codatio/apis/bank-feeds/changes/companies/:companyId/connections/:connectionId/bankFeedAccounts/:sourceAccountId/managedBankFeeds/syncs/:syncId/get.md)

---

[API](https://skmtc.dev/codatio/apis/bank-feeds.md) - [All operations](https://skmtc.dev/codatio/apis/bank-feeds/llms.txt) - [OpenAPI document](https://skmtc.dev/codatio/apis/bank-feeds/revisions/ffea4a4680c5?raw)
