Authentication and permissions
Every request to the API carries a credential in the Authorization header:
Authorization: Bearer tpk_...
There are two ways to get one:
- API key (
tpk_…): the simplest option when the integration is yours. You create it in the app and keep it on your server. - OAuth 2.1: when you build an application that other people connect to their TaskersPro account, by signing in and approving permissions.
Each key, and each OAuth connection, counts as one connection on the connected account's plan and shares its monthly calls (see Plans and limits).
The API doesn't accept calls from the browser (no CORS). Call it from your server and never put your key in the code of a web page or a mobile app.
API keys
Create a key
- In the app, go to Settings → Connected assistants.
- Click "Create API key".
- Give it a name you'll recognize (for example, "My store"). You'll see it in the connections list and on the cards in Approvals.
- Choose its permissions (each one is explained below).
- Copy the key and store it somewhere safe. It is shown only once: TaskersPro can't show it again.
Only the account owner or an admin can create keys.
Good to know
- The key is tied to whoever created it. If that person leaves the team or changes their password, the key stops working and you need to create a new one.
- It doesn't expire on its own. To rotate it, create a new one, update your integration and then disconnect the old one.
- If you lose it or it leaks, disconnect it in Settings → Connected assistants (Disconnect button). It stops working immediately and its pending proposals are cancelled.
- The list shows when it was last used and who created it, and the Activity tab shows its recent calls.
- An API key only works with the REST API (
/v1). It can't be used to connect an AI assistant over MCP.
Example
curl https://api.taskerpro.ai/v1/usage \
-H "Authorization: Bearer $TASKERSPRO_API_KEY"
OAuth 2.1
Use OAuth if other businesses connect your application to their own accounts. The flow is authorization code with PKCE (S256), for public clients.
- Resource: request
resource=https://api.taskerpro.ai/v1when authorizing and when exchanging the code. A token issued for the MCP server (/mcp) doesn't work on/v1, and vice versa. - Discovery: the resource metadata is at
https://api.taskerpro.ai/.well-known/oauth-protected-resource/v1, and the authorization server metadata athttps://api.taskerpro.ai/.well-known/oauth-authorization-server. - Endpoints:
/oauth/authorize,/oauth/tokenand/oauth/revoke, all onhttps://api.taskerpro.ai. - Client identity: your
client_idis the HTTPS URL of a Client ID Metadata Document that you publish (there is no dynamic registration). Eachredirect_urimust match the ones in that document exactly. - Tokens: the access token lasts 1 hour; the refresh token, 60 days since its last use, and it rotates on every refresh (always use the newest one).
- Permissions: request the ones you need in
scope(list below). The person sees them as checkboxes and may approve fewer than you asked for. - If the same person connects your application to the API again, the new connection replaces the previous one (it doesn't use up another slot on the plan).
When a request arrives without a valid credential, the response is 401 with a
WWW-Authenticate header pointing to the resource metadata, so your client knows where to
authorize.
Permissions
Each key or connection has its own permissions. If you call a route without the permission it
needs, you get 403 with the code insufficient_scope. In the Reference
each route says which permission it needs.
Permission (scope) | In the app | What it allows |
|---|---|---|
taskerspro:read | Read your account | Contacts (name, stage, score, tags) and their history, events detected in conversations, the list of conversations (channel, dates, message count), your calendar (bookings and free slots), your content, your WhatsApp templates, your Business Memory and the month's usage. Phone numbers and emails, hidden. |
taskerspro:conversations | Read your customers' messages | Read the messages of a conversation and the free text in the history (team notes, escalation reasons). WhatsApp messages are never shared. |
taskerspro:write | Make changes inside TaskersPro | Create contacts, change their name or tags, add notes and save content drafts. It never writes to your customers or publishes anything. |
taskerspro:act | Act with your customers | Propose messages and templates, book, move and cancel appointments, change a contact's stage, publish content and change your Memory. What reaches your customers waits for your approval on your CoachTasker Telegram or in the app (except booking or changing the stage of a contact who already wrote to you). |
taskerspro:contact-details | See phone numbers and emails | Reveal a contact's full phone number or email and see the ones that appear inside names, tags and texts (without this permission they're hidden). Every reveal is logged. |
Notes:
- Permissions don't inherit:
taskerspro:actdoesn't includetaskerspro:read. Tick every one your integration uses. taskerspro:actmay not be available for your account yet; if it doesn't show up when you create the key, the routes that need it won't work for you.- Mind the spelling: permissions say
taskerspro(with an "s"), even though the API domain istaskerpro.ai.