---
title: "Refresh OAuth Service (Realtime)"
slug: "refresh-oauth-service-realtime"
updated: 2026-05-18T14:33:40Z
published: 2026-05-18T14:33:40Z
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Refresh OAuth Service (Realtime)

![](https://cdn.us.document360.io/27ca1fd4-36d7-4cde-b4eb-97fc1652954c/Images/Documentation/Deprecated.svg)

Refresh the [OAuth services](https://docs.rocket.chat/v1/docs/oauth) in a workspace.

| Method | Requires Auth | Permission | Setting |
| --- | --- | --- | --- |
| `refreshOAuthService` | Yes | `add-oauth-service` | `None` |

## Example call

```json
{
    "msg": "method",
    "method": "refreshOAuthService",
    "id": "44728"
}
```

## Example response

### **Success**

```json
{
    "msg": "result",
    "id": "44728"
}
```

### Error

Any of the following errors can occur on the endpoint.

- **No Permission**: Occurs when the authenticated user doesn't have the `add-oauth-service` permission.

```json
{
    "msg": "result",
    "id": "44728",
    "error": {
        "isClientSafe": true,
        "error": "error-action-not-allowed",
        "reason": "Refresh OAuth Services is not allowed",
        "details": {
            "method": "refreshOAuthService",
            "action": "Refreshing_OAuth_Services"
        },
        "message": "Refresh OAuth Services is not allowed [error-action-not-allowed]",
        "errorType": "Meteor.Error"
    }
}
```

## Changelog

| Version | Description |
| --- | --- |
| 0.48.2 | Added |
