PedibeeDocs

Delete a list

Delete a list. The people in it are kept.

DELETE/api/v1/lists/:id
Scopelists:write

Deletes the list. Its people stay as contacts; they're only taken out of this list. removedFrom says how many were in it.

Path parameters

Prop

Type

Example request

curl -X DELETE "https://api.pedibee.com/api/v1/lists/66f1c2a9e4b0a1b2c3d4e101" \
  -H "Authorization: Bearer $PEDIBEE_API_KEY"

Response

200 OK
{
  "deleted": true,
  "id": "66f1c2a9e4b0a1b2c3d4e101",
  "removedFrom": 2
}

Errors

Every error is { "error": "…" } with a message you can show. See Errors and limits.

StatusWhen
403The key doesn’t have lists:write, or its creator’s role no longer allows it.
404No list with this id in your workspace.
401The API key is missing, invalid, revoked or expired.
429Too many requests. Wait for the seconds in Retry-After.

On this page