API actions for the Reddit integration.
Create posts, comment, and interact with content on Reddit using OAuth.
Comment on a post
Add a comment to a Reddit post or reply to a comment.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
parent_id | string | Yes | Parent fullname ID. |
text | string | Yes | Comment text. |
Response
{
"comment": {
"body": "Great point!",
"id": "xyz789",
"link_id": "t3_1a2b3c"
},
"status": "success"
}Create text post
Create a text-based post in a subreddit.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
subreddit | string | Yes | Target subreddit. |
title | string | Yes | Post title. |
text | string | No | Post body text. |
Response
{
"post": {
"id": "1a2b3c",
"subreddit": "programming",
"title": "Interesting Discussion",
"url": "https://reddit.com/r/programming/comments/1a2b3c/"
},
"status": "success"
}Fetch new subreddit posts
Retrieve the newest posts from a subreddit.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
subreddit | string | Yes | Subreddit name. |
limit | number | No | Maximum posts to return. |
Response
{
"posts": [
{
"id": "1a2b3c",
"subreddit": "technology",
"title": "New Feature Announcement",
"url": "https://reddit.com/r/technology/comments/1a2b3c/"
}
],
"status": "success"
}Upvote a post or comment
Upvote a Reddit post or comment by fullname ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
thing_id | string | Yes | Thing fullname ID. |
Response
{
"status": "success"
}