Glowb Dev Docs
Main API인플루언서 API

POST /influence/token

인플루언서 토큰 발급

토큰 발급

인플루언서 계정용 토큰을 발급합니다.

항목
메서드POST
경로/influence/token
인증불필요

요청

POST /influence/token HTTP/1.1
Host: api.glowb.com
Content-Type: application/json

"influencer_id"
curl -X POST "https://api.glowb.com/influence/token" \
  -H "Content-Type: application/json" \
  -d '"influencer_id"'
const response = await fetch('/influence/token', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify('influencer_id')
});
const tokenData = await response.json();

Request Body

타입설명
string인플루언서 ID

응답

성공 응답 (200 OK)

{
  "id": "influencer_id",
  "accessToken": "eyJhbGciOiJIUzI1NiIs...",
  "refreshToken": "eyJhbGciOiJIUzI1NiIs...",
  "isNewUser": false
}

Response 스키마 (TokenDto)

Prop

Type

API 테스트

On this page