ApiManagementThird party apps
POST
/v1/mgmt/thirdparty/app/secret/add

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

id?string
name?string
expireTime?integer
Formatint32

Add a new named client secret to a third party application, using a valid management key. Returns the new secret metadata and its cleartext value (shown only once).

curl -X POST "https://api.descope.com/v1/mgmt/thirdparty/app/secret/add" \  -H "Content-Type: application/json" \  -d '{}'
{  "meta": {    "id": "string",    "name": "string",    "status": "string",    "expireTime": 0,    "createdTime": 0  },  "cleartext": "string"}
export interface Response {meta?: {id?: stringname?: stringstatus?: stringexpireTime?: numbercreatedTime?: number}cleartext?: string}
Was this helpful?