Documentation
Quick Start
Make your first authenticated request to Teamfluence API
This guide helps you call Teamfluence API in a few minutes.
Prerequisites
Before you begin, make sure you have:
- A Teamfluence account
- An API key generated in workspace settings
- A terminal with curl installed
First API Call
Export your API key
Save your API key as an environment variable:
export TEAMFLUENCE_API_KEY="your_api_key"Call the health endpoint
Verify connectivity and API availability:
curl -X GET "https://api.teamfluence.com/v2/health" \
-H "Accept: application/json"Call an authenticated endpoint
Fetch your workspace credits balance:
curl -X GET "https://api.teamfluence.com/v2/workspace/credits" \
-H "Authorization: Bearer $TEAMFLUENCE_API_KEY" \
-H "Accept: application/json"List leads with filters
Query leads created in a recent period:
curl -G "https://api.teamfluence.com/v2/leads" \
-H "Authorization: Bearer $TEAMFLUENCE_API_KEY" \
--data-urlencode "days=30" \
--data-urlencode "sort_by=newest_first"Update a Lead
curl -X PATCH "https://api.teamfluence.com/v2/leads/<lead_id>" \
-H "Authorization: Bearer $TEAMFLUENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "QUALIFIED",
"tags": ["priority", "demo-requested"],
"crm_id": "crm-12345",
"crm_contact_url": "https://crm.example.com/contacts/12345",
"is_icp_match": true,
"note": {
"note_id": null,
"note_content": "Reached out and booked a call."
}
}'Common Headers
Accept: application/json
Authorization: Bearer <your_api_key>
Content-Type: application/jsonInfo
All endpoint paths are prefixed with /v2 and served from https://api.teamfluence.com.