SaaS APIInstagram OAuth
POST /ai/instagram/oauth/connect
Instagram 계정 연결
Instagram 계정 연결
프론트엔드에서 받은 authorization code로 Instagram 계정을 연결합니다.
HTTP 요청
POST /ai/instagram/oauth/connectQuery Parameters
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
code | string | 예 | Facebook에서 받은 authorization code |
state | string | 예 | OAuth 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
}
]
}에러 응답
| 상태 코드 | 에러 코드 | 설명 |
|---|---|---|
400 | INVALID_REQUEST | code 또는 state 누락 |
500 | CONNECTION_FAILED | 연결 실패 (토큰 교환 오류 등) |