Teamleader Focus API lets you integrate your Teamleader account's features with Pipedream, enabling automation of various business processes. You can create, update, fetch, and manage data concerning contacts, companies, deals, projects, invoices, and tasks. Automating these aspects via Pipedream can streamline workflows, trigger actions based on events, and connect Teamleader Focus with other apps to enhance productivity.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
teamleader_focus: {
type: "app",
app: "teamleader_focus",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.focus.teamleader.eu/users.me`,
headers: {
Authorization: `Bearer ${this.teamleader_focus.$auth.oauth_access_token}`,
},
})
},
})
Sync New Contacts to Google Sheets: When a new contact is added in Teamleader Focus, trigger a workflow in Pipedream to append the contact's details to a Google Sheet. This keeps your records in sync and allows for easy sharing and analysis of contact data.
Send Slack Notifications for New Deals: Set up a Pipedream workflow that listens for new deals in Teamleader Focus. When a deal is created, automatically send a notification to a designated Slack channel, keeping your team instantly informed about sales progress.
Automate Invoice Creation and Emailing: Whenever a project is marked as completed in Teamleader Focus, trigger a Pipedream workflow to generate an invoice for the project, and then email it to the client using an email service like SendGrid. This automates billing processes and ensures timely payment requests.
Update a draft invoice. Booked invoices cannot be updated. See the documentation
Teamleader Focus uses OAuth authentication. When you connect your Teamleader Focus account, Pipedream will open a popup window where you can sign into Teamleader Focus and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Teamleader Focus API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://focus.teamleader.eu/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://focus.teamleader.eu/oauth2/access_token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://focus.teamleader.eu/oauth2/access_token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}