Skip to Content
Developers

All routes

Every route of the Account API, with the scope it needs. Each links to its own page.

Addresses start https://api.traki.io/v1/account/. Send your key in the Authorization header on every request.

RouteWhat it answersScope
GET /v1/account/keyThe key making this requestNone
POST /v1/account/payouts/{id}/approveApprove a payoutmoney:write
POST /v1/account/payouts/{id}/holdHold a payoutmoney:write
POST /v1/account/payouts/{id}/releaseRelease a held payoutmoney:write
POST /v1/account/disputes/{id}/settleSettle a buyer’s disputemoney:write
GET /v1/account/numbers/availableSearch numbers for salenumbers-purchase:read
POST /v1/account/numbers/ordersOrder numbers (costs money)numbers-purchase:write
POST /v1/account/numbers/{id}/carrier-releaseGive a number back to the carriernumbers-purchase:write
GET /v1/account/call-campaigns/{id}/routingA call campaign’s routing and bidding settingsrouting:read
PATCH /v1/account/call-campaigns/{id}/routingChange a call campaign’s routingrouting:write
GET /v1/account/call-flowsList call flowsrouting:read
GET /v1/account/call-flows/{id}One call flow, with its draftrouting:read
PATCH /v1/account/call-flows/{id}Change a call flow’s name, description or draftrouting:write
POST /v1/account/call-flows/{id}/publishPublish a call flow’s draftrouting:write
GET /v1/account/lead-campaignsList lead campaigns, with their buyers and publisherscampaigns:read
POST /v1/account/lead-campaignsCreate a lead campaigncampaigns:write
GET /v1/account/lead-campaigns/{id}One lead campaigncampaigns:read
PATCH /v1/account/lead-campaigns/{id}Change a lead campaigncampaigns:write
POST /v1/account/lead-campaigns/{id}/pausePause a lead campaigncampaigns:write
POST /v1/account/lead-campaigns/{id}/resumeResume or activate a lead campaigncampaigns:write
POST /v1/account/lead-campaigns/{id}/buyersAttach a buyer to a lead campaigncampaigns:write
DELETE /v1/account/lead-campaigns/{id}/buyers/{buyerId}Detach a buyer from a lead campaigncampaigns:write
POST /v1/account/lead-campaigns/{id}/publishersAttach a publisher to a lead campaigncampaigns:write
DELETE /v1/account/lead-campaigns/{id}/publishers/{publisherId}Detach a publisher from a lead campaigncampaigns:write
GET /v1/accountThe account: profile, current limits and API usageaccount:read
GET /v1/account/buyersList buyersbuyers:read
POST /v1/account/buyersCreate a buyerbuyers:write
GET /v1/account/buyers/{id}One buyerbuyers:read
PATCH /v1/account/buyers/{id}Change a buyerbuyers:write
GET /v1/account/publishersList publisherspublishers:read
POST /v1/account/publishersCreate a publisherpublishers:write
GET /v1/account/publishers/{id}One publisherpublishers:read
PATCH /v1/account/publishers/{id}Change a publisherpublishers:write
GET /v1/account/call-campaignsList call campaigns, with their buyers and publisherscampaigns:read
POST /v1/account/call-campaignsCreate a call campaigncampaigns:write
GET /v1/account/call-campaigns/{id}One call campaigncampaigns:read
PATCH /v1/account/call-campaigns/{id}Change a call campaigncampaigns:write
GET /v1/account/numbersList the account’s numbers and their assignmentsnumbers:read
GET /v1/account/numbers/{id}One numbernumbers:read
GET /v1/account/callsThe call log, newest firstcalls:read
GET /v1/account/calls/{id}One callcalls:read
GET /v1/account/leadsThe lead log, newest firstleads:read
GET /v1/account/leads/{id}One leadleads:read
GET /v1/account/statementsBuyer statements and publisher payout statementsmoney:read
GET /v1/account/statements/{id}One statementmoney:read
GET /v1/account/payoutsPayouts to publishersmoney:read
GET /v1/account/payouts/{id}One payoutmoney:read
GET /v1/account/reports/callsCall totals over a period, grouped by day, campaign, buyer or publisherreports:read
GET /v1/account/reports/leadsLead totals over a period, grouped by day, campaign, buyer or publisherreports:read
POST /v1/account/buyers/by-external-id/{externalId}Create or update a buyer by the account’s own idbuyers:write
POST /v1/account/buyers/{id}/pausePause a buyerbuyers:write
POST /v1/account/buyers/{id}/resumeResume a paused buyerbuyers:write
POST /v1/account/publishers/by-external-id/{externalId}Create or update a publisher by the account’s own idpublishers:write
POST /v1/account/publishers/{id}/pausePause a publisherpublishers:write
POST /v1/account/publishers/{id}/resumeResume a paused publisherpublishers:write
POST /v1/account/publishers/{id}/approveApprove a publisher’s application to a campaignpublishers:write
POST /v1/account/call-campaigns/{id}/pausePause a call campaigncampaigns:write
POST /v1/account/call-campaigns/{id}/resumeResume or activate a call campaigncampaigns:write
POST /v1/account/call-campaigns/{id}/buyersAttach a buyer to a call campaigncampaigns:write
DELETE /v1/account/call-campaigns/{id}/buyers/{buyerId}Detach a buyer from a call campaigncampaigns:write
POST /v1/account/call-campaigns/{id}/publishersAttach a publisher to a call campaigncampaigns:write
DELETE /v1/account/call-campaigns/{id}/publishers/{publisherId}Detach a publisher from a call campaigncampaigns:write
POST /v1/account/numbers/{id}/assignAssign a number to a campaign and publishernumbers:write
POST /v1/account/numbers/{id}/releaseTake a number off its campaign (and publisher)numbers:write
GET /v1/account/eventsEvery event of the last 30 days, oldest first, for catching up after downtimeevents:read
GET /v1/account/auditWho changed what in the account, newest firstaudit:read
GET /v1/account/webhooksWebhook endpointswebhooks:read
POST /v1/account/webhooksAdd a webhook endpoint; its signing secret is answered oncewebhooks:write
PATCH /v1/account/webhooks/{id}Change an endpoint’s address or eventswebhooks:write
DELETE /v1/account/webhooks/{id}Remove an endpointwebhooks:write
POST /v1/account/webhooks/{id}/roll-secretRoll the signing secret; the old one keeps signing for 24 hourswebhooks:write
POST /v1/account/webhooks/{id}/pausePause an endpoint (events are kept)webhooks:write
POST /v1/account/webhooks/{id}/resumeResume a paused endpointwebhooks:write
GET /v1/account/webhooks/{id}/deliveriesAn endpoint’s delivery logwebhooks:read
POST /v1/account/webhook-deliveries/{id}/replaySend a delivered or failed event againwebhooks:write
GET /v1/account/suppressionBlocked caller numberssuppression:read
POST /v1/account/suppressionBlock caller numbers, for the account or one campaignsuppression:write
GET /v1/account/suppression/checkIs a number blocked?suppression:read
DELETE /v1/account/suppression/{id}Unblock a numbersuppression:write
GET /v1/account/lead-ordersList lead ordersorders:read
POST /v1/account/lead-ordersPlace a lead order for one of your buyersorders:write
GET /v1/account/lead-orders/{id}Get a lead orderorders:read
PATCH /v1/account/lead-orders/{id}Change a lead order’s termsorders:write
POST /v1/account/lead-orders/{id}/actionsPause, resume, hold, release, cancel or mark a lead order paidorders:write
GET /v1/account/lead-walletsList buyers’ lead walletsorders:read
GET /v1/account/buyers/{buyerId}/lead-walletGet a buyer’s lead walletorders:read
GET /v1/account/buyers/{buyerId}/lead-wallet/entriesA buyer’s wallet ledger, newest firstorders:read
POST /v1/account/buyers/{buyerId}/lead-wallet/entriesAdd cash or credit to a buyer’s wallet, or take it backorders:write
GET /v1/account/lead-paymentsList lead paymentsorders:read
GET /v1/account/partner-keysThe Buyer API and Publisher API keys of the account’s parties (never their secrets)partner-keys:read
POST /v1/account/partner-keysIssue a key for one of the account’s buyers or publishers; the key is answered oncepartner-keys:write
POST /v1/account/partner-keys/{id}/rollRoll a partner key: a new secret, the old one working for the chosen overlappartner-keys:write
POST /v1/account/partner-keys/{id}/revokeRevoke a partner key; it stops working at oncepartner-keys:write
POST /v1/account/portal-sessionsA short-lived token for one buyer or publisher, for your own web page to useNone
DELETE /v1/account/portal-sessions/{id}End a portal session at onceNone

This list is built from the same route declarations that run the API, so a new route appears here when it ships. The changelog says what changed.