// Replace API_KEY with your api keycurl --location --request POST 'https://api.supahub.com/api/v1/posts' \--header 'Content-Type: application/x-www-form-urlencoded' \--header 'Authorization: Bearer API_KEY' \--data-urlencode 'title=Post title will come here' \--data-urlencode 'board=clrjfu0l10009bfg8xy27xy8c' \--data-urlencode 'status=clrjfu0l1000cbfg8nkmdx3vl' \--data-urlencode 'desc=Post description.' \--data-urlencode 'tags=clrjfu0l1000ibfg8a5eezedw, clrjfu0l1000hbfg84kvyjexb'
Posts
Create Post
Create a new post.
Copy
// Replace API_KEY with your api keycurl --location --request POST 'https://api.supahub.com/api/v1/posts' \--header 'Content-Type: application/x-www-form-urlencoded' \--header 'Authorization: Bearer API_KEY' \--data-urlencode 'title=Post title will come here' \--data-urlencode 'board=clrjfu0l10009bfg8xy27xy8c' \--data-urlencode 'status=clrjfu0l1000cbfg8nkmdx3vl' \--data-urlencode 'desc=Post description.' \--data-urlencode 'tags=clrjfu0l1000ibfg8a5eezedw, clrjfu0l1000hbfg84kvyjexb'
Email of the admin creating the post. If anonymous posting is enabled then
userEmail is not required.
Copy
// Replace API_KEY with your api keycurl --location --request POST 'https://api.supahub.com/api/v1/posts' \--header 'Content-Type: application/x-www-form-urlencoded' \--header 'Authorization: Bearer API_KEY' \--data-urlencode 'title=Post title will come here' \--data-urlencode 'board=clrjfu0l10009bfg8xy27xy8c' \--data-urlencode 'status=clrjfu0l1000cbfg8nkmdx3vl' \--data-urlencode 'desc=Post description.' \--data-urlencode 'tags=clrjfu0l1000ibfg8a5eezedw, clrjfu0l1000hbfg84kvyjexb'