Skip to main content
POST
토큰 발급·갱신

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
authorization_code,
refresh_token
client_id
string
required

발급받은 클라이언트 ID

Example:

"your-client-id"

code
string

authorization_code: 로그인 후 돌아온 code (5분, 1회)

redirect_uri
string

authorization_code: 로그인 주소에 넣은 값과 같은 주소

Example:

"http://127.0.0.1:53682/callback"

code_verifier
string

authorization_code: PKCE 원래 값

refresh_token
string

refresh_token: 마지막으로 받은 refresh token

Response

발급 성공

access_token
string
required

API 호출에 쓰는 토큰

token_type
enum<string>
required
Available options:
Bearer
expires_in
integer
required

access token 유효 시간(초)

Example:

3600

refresh_token
string

토큰 갱신용. 갱신할 때마다 새 값으로 바뀝니다.

refresh_expires_in
integer

refresh token 유효 시간(초)

Example:

5184000