---
title: "Refresh sync job source token"
method: POST
path: "/api/v1/edit/syncjob_source/refresh_token"
tags: ["Sync jobs"]
---

# Refresh sync job source token

`POST /api/v1/edit/syncjob_source/refresh_token`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/edit/syncjob_source/refresh_token`
- Auth: API key in header `X-API-Key`

Force an OAuth2 access-token refresh for a XOAUTH2 client_credentials source (other sources: `imapsync_source_refresh_unsupported`). Requires edit rights on the source and the `syncjobs` ACL.

## Request body

- object
  - `items` string[]: source id (only the first one is used)

## Response `200`

OK

- object
  - `log` unknown[]: contains request object (secrets are masked as "*")
    - unknown
  - `msg` unknown[]
    - unknown
  - `type` 'success' | 'danger' | 'error'

## Other responses

- `401`: Unauthorized

## Changes

- **2026-10-22** `cf82ac1f801a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mailcow/apis/mailcow-api/changes/api/v1/edit/syncjob_source/refresh_token/post.md)

---

[API](https://skmtc.dev/mailcow/apis/mailcow-api.md) - [All operations](https://skmtc.dev/mailcow/apis/mailcow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailcow/apis/mailcow-api/revisions/bc8a5589ddad?raw)
