Glowb Dev Docs
SaaS APIInstagram OAuth

POST /ai/instagram/oauth/connect

Instagram 계정 연결

Instagram 계정 연결

프론트엔드에서 받은 authorization code로 Instagram 계정을 연결합니다.

HTTP 요청

POST /ai/instagram/oauth/connect

Query Parameters

파라미터타입필수설명
codestringFacebook에서 받은 authorization code
statestringOAuth URL 생성 시 포함된 state 값

응답

성공 응답 (200 OK)

{
  "status": 200,
  "code": null,
  "message": "Instagram 계정이 연결되었습니다.",
  "data": [
    {
      "accountId": 1,
      "platform": 1,
      "platformUserId": "17841400000000000",
      "username": "my_instagram_account",
      "name": "My Instagram",
      "profilePictureUrl": "https://scontent.cdninstagram.com/...",
      "biography": "인스타그램 소개글",
      "website": "https://mywebsite.com",
      "followersCount": 15000,
      "followingCount": 500,
      "mediaCount": 120,
      "connectionStatus": "CONNECTED",
      "priceTier": "B",
      "price": 150000
    }
  ]
}

에러 응답

상태 코드에러 코드설명
400INVALID_REQUESTcode 또는 state 누락
500CONNECTION_FAILED연결 실패 (토큰 교환 오류 등)

API 테스트

On this page