Skip to content
On this page

Create OAuth Secret

🔑 Need JWT Authorization

Description

Create oauth Secret

Only oauth owner can request.

Method And Path

js
POST /v2/developer/oauth/secret/create

Request

ts
{
    "authorization": string;
    "x-request-id": string;
    "x-session-id": string;
}

Body

ts
{
    "oauthUUID": string;
}

oauthUUID

OAuth Application UUID

Response

Success

HTTP Status Code: 200

ts
{
    status: Status.Success;
    data: {
        secretUUID: string;
        clientSecret: string;
    }
}

Extends Type: Status

secretUUID

secrect UUID

secrect

secret string. e.g. 1234abcdxxxxxxxx

Not included *

Failed

HTTP Status Code: 200

ts
{
    status: Status.Failed,
    code: ErrorCode,
}

Extends Type: Status, ErrorCode

Released under the MIT License.