Overview
SLUG: REDDIT
Description
Reddit is a social news platform with user-driven communities (subreddits), offering content sharing, discussions, and viral marketing opportunities for brands
Authentication Details
OAuth2
Connecting to Reddit
Create an auth config
Use the dashboard to create an auth config for the Reddit toolkit. This allows you to connect multiple Reddit accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create Reddit Auth Config”. After creation, copy the displayed ID starting with ac_. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using OAuth2
Tools
Executing tools
To prototype you can execute some tools to see the responses and working on the Reddit toolkit’s playground
For code examples, see the Tool calling guide and Provider examples.
Tool List
REDDIT_CREATE_REDDIT_POST
Tool Name: Create a Reddit post
Description
Action Parameters
Action Response
REDDIT_DELETE_REDDIT_COMMENT
Tool Name: Delete Reddit comment
Description
Action Parameters
Action Response
REDDIT_DELETE_REDDIT_POST
Tool Name: Delete a Reddit post
Description
Action Parameters
Action Response
REDDIT_EDIT_REDDIT_COMMENT_OR_POST
Tool Name: Edit comment or post
Description
Action Parameters
Action Response
REDDIT_GET
Tool Name: Get Reddit listing by sort
Description
Action Parameters
Action Response
REDDIT_GET_ME_PREFS
Tool Name: Get user preferences
Description
Action Parameters
Action Response
REDDIT_GET_RANDOM
Tool Name: Get random Reddit post
Description
Action Parameters
Action Response
REDDIT_GET_REDDIT_USER_ABOUT
Tool Name: Get user information
Description
Action Parameters
Action Response
REDDIT_GET_R_SUBREDDIT_LINK_FLAIR_V2
Tool Name: Get link flair templates v2
Description
Action Parameters
Action Response
REDDIT_GET_R_TOP
Tool Name: Get top posts from subreddit
Description
Action Parameters
Action Response
REDDIT_GET_SUBREDDIT_RULES
Tool Name: Get subreddit rules
Description
Action Parameters
Action Response
REDDIT_GET_SUBREDDITS_SEARCH
Tool Name: Search subreddits
Description
Action Parameters
Action Response
REDDIT_GET_USER_FLAIR
Tool Name: Get user flair
Description
Action Parameters
Action Response
REDDIT_GET_USERNAME_AVAILABLE
Tool Name: Check username availability
Description
Action Parameters
Action Response
REDDIT_POST_REDDIT_COMMENT
Tool Name: Post a comment
Description
Action Parameters
Action Response
REDDIT_RETRIEVE_POST_COMMENTS
Tool Name: Retrieve Comments for a Post
Description
Action Parameters
Action Response
REDDIT_RETRIEVE_REDDIT_POST
Tool Name: Retrieve posts from subreddit
Description
Action Parameters
Action Response
REDDIT_RETRIEVE_SPECIFIC_COMMENT
Tool Name: Retrieve specific comment or post
Description
Action Parameters
Action Response
REDDIT_SEARCH_ACROSS_SUBREDDITS
Tool Name: Search across subreddits
Description
Action Parameters
Action Response