# API Methods Reference

| Category | Method | Description |
|----------|--------|-------------|
| **Auth** | `exchangeCodeForToken()` | Exchange OAuth code for token |
| | `getLongLivedToken()` | Get 60-day token |
| | `refreshAccessToken()` | Refresh token |
| **Post** | `postImage()` | Post single image |
| | `postVideo()` | Post video |
| | `postCarousel()` | Post carousel (2-10 items) |
| | `postStory()` | Post Instagram story |
| **Edit** | `updateMediaCaption()` | Edit post caption |
| | `deleteMedia()` | Delete post |
| | `setCommentsEnabled()` | Enable/disable comments |
| **Get** | `getMedia()` | Get post details |
| | `getAccountMedia()` | Get account posts |
| **Comments** | `commentOnMedia()` | Comment on post |
| | `replyToComment()` | Reply to comment |
| | `getMediaComments()` | Get post comments |
| | `getCommentReplies()` | Get comment replies |
| | `hideComment()` | Hide comment |
| | `unhideComment()` | Unhide comment |
| | `deleteComment()` | Delete comment |
| **DMs** | `getConversations()` | Get DM threads |
| | `getConversationMessages()` | Get messages |
| | `sendDirectMessage()` | Send DM |
| | `replyToMessage()` | Reply in thread |
| **Insights** | `getAccountInsights()` | Account analytics |
| | `getMediaInsights()` | Post analytics |
| | `getStoryInsights()` | Story analytics |
| **Hashtags** | `searchHashtag()` | Search hashtag |
| | `getHashtagTopMedia()` | Top posts |
| | `getHashtagRecentMedia()` | Recent posts |
| **Tags** | `getMentionedMedia()` | Get mentions |
| | `getTaggedMedia()` | Get tagged posts |
| **Account** | `getAccountInfo()` | Get account details |