Create OAuth Application
🔑 Need JWT Authorization
Description
Create oauth application
Method And Path
js
POST /v2/developer/oauth/create
Request
Header
ts
{
"authorization": string;
"x-request-id": string;
"x-session-id": string;
}
Body
ts
{
"appName": string;
"appDesc": string;
"homepageURL": string;
"callbacksURL": string[];
"scopes": DeveloperOAuthScope[];
}
Extends Type: DeveloperOAuthScope
appName
Application Name
- minLength:
1
- maxLength:
20
appDesc
Application Description
- minLength:
1
- maxLength:
300
homepageURL
Application Homepage URL
- minLength:
1
- maxLength:
100
- format: https
callbacksURL
Application Callback URL
- minItems:
1
- maxItems:
5
- format: https
scopes
Application Permission Scopes
- minItems:
1
- maxItems:
DeveloperOAuthScope
size - enum:
DeveloperOAuthScope
Response
Success
HTTP Status Code: 200
ts
{
status: Status.Success,
data: {
oauthUUID: string;
}
}
Extends Type: Status
Failed
HTTP Status Code: 200
ts
{
status: Status.Failed,
code: ErrorCode
}