API reference
Remove a person from the Leads table
Takes a person an agent saved out of the Leads table, by the id GET /tables/leads gives (sav_… or per_…). Leads from the signals on Signals stay: the user archives those in mySDR. Nothing else is deleted; the search that found the person keeps its results.
DELETEhttps://mysdr.app/api/v1/tables/leads/{id}
Authentication
Send Authorization: Bearer gtk_…. Create the key under Connect assistant → API keys. Every gtk_ key can call these routes, also while the Signals API is closed. A missing, invalid or revoked key is 401.
Path parameters
idstring· required — Theidof a row withsourceassistant.
Response
idstring· required — The id you sent.removedboolean· required — Always true.dashboard_urlstring· required — The Leads table in mySDR.
Credits
Free. This call never uses credits.
Errors
- 400
invalid_request— The id is not asav_…orper_…. An oldlead_…id says those ids no longer exist. - 404
not_found— Nothing an agent saved in the Leads table has this id. - 409
invalid_state— The id is a lead from a signal on Signals; only the user archives those. - 401
authentication_error— The Authorization header is missing, or the key is unknown or revoked. - 403
permission_error— API access is not part of your plan, or your account is suspended. - 429
rate_limit_error— More than 60 requests per minute, or more than 3 at the same time, on one key. Wait for the Retry-After header. - 503
service_unavailable— The API is temporarily unavailable. Retry later. - 500
internal_error— Something went wrong on our side.
Example
cURL
curl -X DELETE "https://mysdr.app/api/v1/tables/leads/sav_7c1f2a40-5b0e-4c3e-9a71-2f7d3e0c9b11" \
-H "Authorization: Bearer $MYSDR_API_KEY"
JavaScript
const response = await fetch('https://mysdr.app/api/v1/tables/leads/sav_7c1f2a40-5b0e-4c3e-9a71-2f7d3e0c9b11', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.MYSDR_API_KEY}`
}
});
const body = await response.json();
Python
import json
import os
import urllib.request
request = urllib.request.Request(
"https://mysdr.app/api/v1/tables/leads/sav_7c1f2a40-5b0e-4c3e-9a71-2f7d3e0c9b11",
headers={
"Authorization": f"Bearer {os.environ['MYSDR_API_KEY']}"
},
method="DELETE",
)
with urllib.request.urlopen(request) as response:
body = json.load(response)
Example response
{
"id": "sav_7c1f2a40-5b0e-4c3e-9a71-2f7d3e0c9b11",
"removed": true,
"dashboard_url": "https://mysdr.app/en/gtm/leads"
}