NuminaDevelopers
Dashboard
Delete contact

Delete contact

DEL
/v1/contacts/{id}

Deletes a contact that nothing refers to, such as one created by mistake.

A contact with invoices, offers, subscriptions, journal entries or documents can't be deleted and returns 409; archive it with PUT /v1/contacts/{id} instead. Deleting a contact that's already gone returns 404.

Requires one ofcontacts:writewrite:draftwrite:ledger

Path parameters

  • idstring (uuid)Required
    Contact ID

Errors

  • 401Missing or invalid credentials
  • 403A scope is missing, or the company is archived
  • 404It doesn't exist in this company
  • 409The contact has history
  • 429You're over the rate limit
  • 500Something went wrong on our side

Every error has the same shape. See Errors.

cURL
curl -X DELETE https://api.numina.app/v1/contacts/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer numi_YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.numina.app/v1/contacts/550e8400-e29b-41d4-a716-446655440000", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.NUMINA_API_KEY}`,
  },
});

const data = await response.json();
Python
import os

import requests

response = requests.delete(
    "https://api.numina.app/v1/contacts/550e8400-e29b-41d4-a716-446655440000",
    headers={
        "Authorization": f"Bearer {os.environ['NUMINA_API_KEY']}",
    },
)
data = response.json()