/flowcall/context
Get projects, rights and terms
Returns every reachable call project with your own rights in it, the ten permission names, the usual call outcomes and whether this key acts as owner. One call, so a program doesn't have to hard-code the terms of this API.
Bearer pk_… or at_…
curl -X GET "https://api.flowsuite.one/flowcall/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/flowcall/context');
$data = $response->json();
const response = await fetch('https://api.flowsuite.one/flowcall/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/flowcall/context',
headers=headers,
)
data = response.json()
{
"success": true,
"data": {
"acts_as_owner": false,
"permission_flags": [
"team_verwalten",
"team_rollen_verwalten",
"callhistory_all",
"projekte_verwalten",
"projekt_bearbeiten",
"projekt_alle_leads",
"projekt_leads_export",
"projekt_telefonie",
"projekt_lead_hinzufuegen",
"projekt_unstimmigkeiten"
],
"lead_statuses": [
"Offen",
"Übersprungen",
"Kein Interesse",
"Keinen erreicht",
"Falsche Rufnummer",
"AP nicht im hause",
"Wiedervorlage",
"E-Mail senden",
"Termin vereinbart"
],
"projects": [
{
"uuid": "8f1c4a72-3d95-4e06-b1a8-5c7e2d0f9b41",
"name": "Herbstaktion Handwerk",
"status": "active",
"rights": {
"projekt_telefonie": true,
"projekt_alle_leads": true,
"projekte_verwalten": false
}
}
]
}
}
Comments
/flowcall/leads/{uuid}/commentsList a lead's comments
The comments of a lead, newest first. Requires projekt_telefonie.
Bearer pk_… or at_…
Query parameters
/flowcall/leads/{uuid}/commentsWrite a comment
Records a note on the lead and answers with HTTP 201. Requires projekt_telefonie.
Bearer pk_… or at_…
Request body
/flowcall/leads/{uuid}/comments/{commentUuid}Update a comment
Rewrites a comment. Only the person who wrote it may do so; anyone else gets HTTP 403. Requires projekt_telefonie.
Bearer pk_… or at_…
Request body
/flowcall/leads/{uuid}/comments/{commentUuid}Delete a comment
Removes a comment. Only the person who wrote it may do so; anyone else gets HTTP 403. Requires projekt_telefonie.
Bearer pk_… or at_…