Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
51 lines (40 loc) · 1.63 KB

File metadata and controls

51 lines (40 loc) · 1.63 KB

Get OAuth App

Retrieves an OAuth App by ID or client ID.

URL Requires Auth HTTP Method
/api/v1/oauth-apps.get yes GET

{% hint style="info" %} Permission required: manage-oauth-apps {% endhint %}

Query Parameters

KeyExample ValueDescription
appIdjn32kjnnd0943j4njkThe app's ID. This value is required if clientId is not used.
clientIdnkn8jk67b8b99b78The client's ID. This value is required if the appId is not used.

Example

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/oauth-apps.get?appId=jn32kjnnd0943j4njk

Example Response

{
  "oauthApp": {
    "_id": "zapier",
    "name": "Zapier",
    "active": true,
    "clientId": "zapier",
    "clientSecret": "RTK6TlndaCIolhQhZ7_KHIGOKj41RnlaOq_o-7JKwLr",
    "redirectUri": "https://zapier.com/dashboard/auth/oauth/return/RocketChatDevAPI/",
    "_createdAt": "2019-10-17T22:55:32.787Z",
    "_createdBy": {
      "_id": "system",
      "username": "system"
    },
    "_updatedAt": "2019-10-17T22:55:32.787Z"
  },
  "success": true
}

Change Log

Version Description
2.4.0 Added