Skip to main content

Companies

A company (crm_companies) groups contacts and deals. Scopes: crm.companies.read or crm.companies.write.

Endpoints

GET/api/workspace/v1/companies
GET/api/workspace/v1/companies/{id}
POST/api/workspace/v1/companies
PATCH/api/workspace/v1/companies/{id}

The company object

FieldTypeDescription
name*stringCompany name (required on create)
websitestring(url)Full HTTPS URL
industrystringFree-form industry label
sizestringFree-form company size
phonestringPrimary phone number
addressstringFull postal address
emailstringCorporate contact email
countrystring(2)ISO 3166-1 alpha-2
annual_revenuenumber | stringFree-form revenue estimate
descriptionstringNotes about the company
linkedin_urlstring(url)LinkedIn profile URL
tagsarray of stringsMax 50 tags
owner_user_idintegerTeam member who owns the company
primary_contact_idintegerWhich CRM contact is the primary contact
custom_fieldsobjectMerged on update

Create a company

curl "https://app.staffifyai.com/api/workspace/v1/companies" \
  -X POST \
  -H "Authorization: Bearer sfy_wsp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: aa11-bb22-cc33" \
  -d '{
    "name": "Acme B.V.",
    "website": "https://acme.example",
    "industry": "SaaS",
    "country": "NL"
  }'

List / search

Supports page, limit, search, archived.

curl "https://app.staffifyai.com/api/workspace/v1/companies?search=acme&limit=25" \
  -H "Authorization: Bearer sfy_wsp_live_YOUR_KEY"

Update

curl "https://app.staffifyai.com/api/workspace/v1/companies/42" \
  -X PATCH \
  -H "Authorization: Bearer sfy_wsp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "industry": "Fintech", "tags": ["strategic","q4"] }'

Delete / restore / bulk-delete

Soft-delete places a company in a 30-day recycle bin (hidden by default, listable via ?deleted=true). Restore within the window via POST /:id/restore. After 30 days a nightly purge cron hard-deletes it. Requires the separate crm.companies.delete scope.

# Soft-delete
curl -X DELETE "https://app.staffifyai.com/api/workspace/v1/companies/42" \
  -H "Authorization: Bearer sfy_wsp_live_YOUR_KEY"

# Restore
curl -X POST "https://app.staffifyai.com/api/workspace/v1/companies/42/restore" \
  -H "Authorization: Bearer sfy_wsp_live_YOUR_KEY"

# Bulk-delete (max 500 ids)
curl -X POST "https://app.staffifyai.com/api/workspace/v1/companies/bulk-delete" \
  -H "Authorization: Bearer sfy_wsp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "ids": [42, 43, 44] }'
Companies - Workspace API - Staffify