/flowsaas/context
Get portals, vocabulary and own permissions
Returns all of the team's portals with statuses, tags and open moderation counts, plus the possible moderation states, the available webhook events and whether this key has the manager permission.
Bearer pk_… or at_…
curl -X GET "https://api.flowsuite.one/flowsaas/context" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
use Illuminate\Support\Facades\Http;
$response = Http::withToken('YOUR_API_TOKEN')
->get('https://api.flowsuite.one/flowsaas/context');
$data = $response->json();
const response = await fetch('https://api.flowsuite.one/flowsaas/context', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
},
});
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
}
response = requests.get(
'https://api.flowsuite.one/flowsaas/context',
headers=headers,
)
data = response.json()
{
"success": true,
"data": {
"is_manager": true,
"moderation_states": [
"pending",
"approved",
"rejected",
"spam"
],
"webhook_events": [
"post.created",
"post.status_changed",
"post.updated",
"comment.created",
"vote.created"
],
"portals": [
{
"uuid": "9d2f4c1a-7b3e-4f8a-9c5d-1e6a8b0c2d4f",
"name": "Produktfeedback",
"public_url": "https://creativeskyline.de/p/produktfeedback",
"statuses": [],
"tags": [],
"pending_posts": 2,
"pending_comments": 0
}
]
}
}
Comments
/flowsaas/posts/{uuid}/commentsList the comments of an idea
All comments of the idea, oldest first, including internal notes and waiting posts.
Bearer pk_… or at_…
Query parameters
/flowsaas/posts/{uuid}/commentsWrite a comment
Writes a comment on behalf of the user of the API key. It counts as approved straight away. A parent comment must belong to the same idea, otherwise the route responds with HTTP 422 and error parent_not_in_post.
Bearer pk_… or at_…
Request body
/flowsaas/comments/{uuid}/replyReply to a comment
Replies to the comment in the path. The idea follows from this comment, so a reply can never end up in someone else's thread.
Bearer pk_… or at_…
Request body
/flowsaas/comments/{uuid}/approveApprove a comment
Approves a waiting comment for the portal and notifies its author. Requires the manager permission.
Bearer pk_… or at_…
/flowsaas/comments/{uuid}/rejectReject a comment
Rejects a comment and notifies its author. Requires the manager permission.
Bearer pk_… or at_…
/flowsaas/comments/{uuid}/spamMark a comment as spam
Marks a comment as spam without notifying anyone. Requires the manager permission.
Bearer pk_… or at_…
/flowsaas/comments/{uuid}/moderationSet the moderation state of a comment
Sets the state explicitly. Unlike the three shortcuts, this endpoint also reaches pending and so puts a comment back into the queue. Requires the manager permission.
Bearer pk_… or at_…
Request body