דילוג לתוכן

התיעוד למפתחים כתוב באנגלית.

Taseli API

Read a business's ads as Taseli runs them, and get an event when something waits or changes.

Base URLhttps://taseli.co.il/api/v1
FormatJSON over HTTPS. Dates in ISO 8601, money in the account's currency.
AuthAuthorization: Bearer <key>
SpecOpenAPI 3.1: import it into Postman, Insomnia or a client generator.

What it's for

You want toUse
Pull daily numbers into a dashboardGET /accounts/{id}/metrics
Tell a CRM or Slack that a decision waitsWebhook proposal.created
Keep a record of what Taseli changedGET /proposals with status=done, and GET /activity
Rank creatives by their own resultsGET /creatives
Work from an AI agentMCP server at https://mcp.taseli.co.il/mcp, not this API

The API reads. It never changes an ad account and never approves. Every change is a proposal the owner approves in Taseli; each proposal's approvalUrl is the link. The only things you can write are your own webhooks.

Quickstart

1. Create a key

In Taseli: Settings › AI agents. Copy the key when it's shown; it starts with tsl_. Keep it on your server, in an environment variable.

curl
export TASELI_KEY="tsl_..."

2. Make a request

curl https://taseli.co.il/api/v1/workspace \
  -H "Authorization: Bearer $TASELI_KEY"
Response 200
{
  "data": {
    "id": "0b6f3c1e-7a42-4c55-9b1d-2f6e8a1c4d90",
    "name": "Dan Plumbing",
    "slug": "dan-plumbing",
    "currency": "ILS",
    "plan": "pro",
    "accounts": 2
  }
}

3. See what waits for the owner

curl
curl "https://taseli.co.il/api/v1/proposals?status=waiting&language=en" \
  -H "Authorization: Bearer $TASELI_KEY"

Most valuable first. Show title, why and monthlyValue, and link to approvalUrl.

4. Get told instead of asking

Register a URL and Taseli posts signed events to it. See Webhooks.

curl -X POST https://taseli.co.il/api/v1/webhooks \
  -H "Authorization: Bearer $TASELI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://crm.example.com/hooks/taseli","events":["proposal.created"],"language":"en"}'

No test mode

There's no sandbox. Reads change nothing and the only writes are your own webhooks, so a real key is safe to try. Create a read-only key if reading is all you need.