post
https://stage.openapi.sauce.im/oauth2/token
API 를 호출할 때 필요한 액세스 토큰을 발급받습니다.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
- OAuth 2.0 Client Credentials 방식입니다. 모비두 운영팀에서 발급받은
clientId·clientSecret으로 요청합니다. - 토큰은 1시간 동안 유효합니다. refresh token 은 없으며, 만료되면 같은 요청으로 다시 발급받습니다.
- 호출할 때마다 새로 발급받지 말고, 만료 전까지 저장해 두고 재사용하세요.
clientId · clientSecret 이 없다면 모비두 고객성공팀에 문의해 주세요.
이메일
[email protected]· 카카오톡 채널로 문의하세요.
요청
| 위치 | 이름 | 필수 | 설명 |
|---|---|---|---|
| 헤더 | Authorization | Y | Basic {base64(clientId:clientSecret)}. 본문에 client_id·client_secret 을 넣는 방식도 지원합니다. |
| 헤더 | x-api-version | Y | API 버전. 없거나 다르면 400 G010. 예: 2026-10-28 |
| 헤더 | Content-Type | Y | application/x-www-form-urlencoded |
| 헤더 | X-Request-Id | N | 요청 추적 ID. 보내지 않으면 서버가 만듭니다. 응답 헤더로 항상 돌려줍니다 |
| 폼 데이터 | grant_type | Y | client_credentials 고정 |
응답
| 필드 | 타입 | 설명 |
|---|---|---|
access_token | string | API 호출에 쓰는 액세스 토큰. Authorization: Bearer {access_token} 으로 보냅니다 |
token_type | string | Bearer |
expires_in | integer | 남은 유효 시간(초). 약 3600 |
오류
400 G010—x-api-version헤더가 없거나 값이 다름. 본문 형식은 오류 코드와 같습니다401{"error": "invalid_client"}—clientId·clientSecret이 틀렸거나 폐기됨400{"error": "invalid_request"}—grant_type이 없음400{"error": "unsupported_grant_type"}—grant_type이client_credentials가 아님
clientId·clientSecret 을 먼저 확인하므로, 자격 증명이 틀리면 grant_type 오류보다 401 invalid_client 가 먼저 납니다.
