토큰 폐기
curl --request POST \
--url https://openapi.rocketpunch.com/oauth/revoke \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'token=<string>' \
--data token_type_hint=refresh_token \
--data 'client_id=<string>' \
--data 'client_secret=<string>'import requests
url = "https://openapi.rocketpunch.com/oauth/revoke"
payload = {
"token": "<string>",
"token_type_hint": "refresh_token",
"client_id": "<string>",
"client_secret": "<string>"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
token: '<string>',
token_type_hint: 'refresh_token',
client_id: '<string>',
client_secret: '<string>'
})
};
fetch('https://openapi.rocketpunch.com/oauth/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openapi.rocketpunch.com/oauth/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "token=%3Cstring%3E&token_type_hint=refresh_token&client_id=%3Cstring%3E&client_secret=%3Cstring%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openapi.rocketpunch.com/oauth/revoke"
payload := strings.NewReader("token=%3Cstring%3E&token_type_hint=refresh_token&client_id=%3Cstring%3E&client_secret=%3Cstring%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openapi.rocketpunch.com/oauth/revoke")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("token=%3Cstring%3E&token_type_hint=refresh_token&client_id=%3Cstring%3E&client_secret=%3Cstring%3E")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.rocketpunch.com/oauth/revoke")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "token=%3Cstring%3E&token_type_hint=refresh_token&client_id=%3Cstring%3E&client_secret=%3Cstring%3E"
response = http.request(request)
puts response.read_body{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"error": "invalid_grant",
"error_description": "Authorization code expired or already used."
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}OAuth Token
토큰 폐기
refresh token 을 폐기한다. 존재하지 않거나 이미 폐기된 토큰도 성공으로 응답한다.
POST
/
oauth
/
revoke
토큰 폐기
curl --request POST \
--url https://openapi.rocketpunch.com/oauth/revoke \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'token=<string>' \
--data token_type_hint=refresh_token \
--data 'client_id=<string>' \
--data 'client_secret=<string>'import requests
url = "https://openapi.rocketpunch.com/oauth/revoke"
payload = {
"token": "<string>",
"token_type_hint": "refresh_token",
"client_id": "<string>",
"client_secret": "<string>"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
token: '<string>',
token_type_hint: 'refresh_token',
client_id: '<string>',
client_secret: '<string>'
})
};
fetch('https://openapi.rocketpunch.com/oauth/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openapi.rocketpunch.com/oauth/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "token=%3Cstring%3E&token_type_hint=refresh_token&client_id=%3Cstring%3E&client_secret=%3Cstring%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openapi.rocketpunch.com/oauth/revoke"
payload := strings.NewReader("token=%3Cstring%3E&token_type_hint=refresh_token&client_id=%3Cstring%3E&client_secret=%3Cstring%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openapi.rocketpunch.com/oauth/revoke")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("token=%3Cstring%3E&token_type_hint=refresh_token&client_id=%3Cstring%3E&client_secret=%3Cstring%3E")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.rocketpunch.com/oauth/revoke")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "token=%3Cstring%3E&token_type_hint=refresh_token&client_id=%3Cstring%3E&client_secret=%3Cstring%3E"
response = http.request(request)
puts response.read_body{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}{
"error": "invalid_grant",
"error_description": "Authorization code expired or already used."
}{
"code": "C0005",
"message": "요청 값이 올바르지 않습니다.",
"timestamp": "2026-05-20T09:00:00",
"details": "startDate"
}헤더
Basic base64(client_id:client_secret) — form 의 client_id/client_secret 사용 시 생략 가능
응답 지원 로케일: ko, en, ja, zh-CN, zh-TW, es, fr, de, pt, th, vi. 미지정 시 ko 기본값
예시:
"ko"
본문
application/x-www-form-urlencoded
응답
폐기 요청 처리 완료
이 페이지가 도움이 되었나요?
⌘I