API

Read and update your HeySales data from your own code over a plain REST API that sends and receives JSON.

Getting a key

Sign in and open Settings, then API Access, to create your company's key. Send it as a bearer token with every request. Anyone with the key can read and change your company's data, so keep it secret, and create a new one in the same place if it ever leaks: the old key stops working straight away.

curl "https://www.heysales.co.uk/api/v1/deals?limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"

Most list endpoints return up to 50 items by default; pass limit for up to 100.

Endpoints

All paths are relative to https://www.heysales.co.uk/api/v1.

Deals

  • GET POST/deals
  • GET PATCH DELETE/deals/:id
  • PATCH/deals/:id/stage
  • GET/deals/:id/activity
  • GET POST/deals/:id/line-items
  • PATCH DELETE/deals/:id/line-items/:itemId
  • GET POST/deals/:id/quotes
  • GET PATCH DELETE/deals/:id/quotes/:quoteId

Pipelines

  • GET/pipelines
  • GET/pipeline
  • GET/leads/stale

Contacts and companies

  • GET POST/contacts
  • GET PATCH DELETE/contacts/:id
  • GET POST/companies
  • GET PATCH DELETE/companies/:id
  • GET POST/notes
  • GET/search

Tasks, calendar and goals

  • GET POST/tasks
  • GET PATCH DELETE/tasks/:id
  • GET POST/calendar
  • GET PATCH DELETE/calendar/:id
  • GET POST/goals
  • GET PATCH DELETE/goals/:id

Products, quotes and invoices

  • GET POST/products
  • GET PATCH DELETE/products/:id
  • GET/quotes
  • GET/quotes/:quoteId/pdf
  • GET POST/invoices
  • GET PATCH DELETE/invoices/:invoiceId
  • GET/invoices/:invoiceId/pdf

Email, forms and reports

  • GET/emails
  • GET/emails/:id
  • POST/emails/send
  • GET/forms
  • GET/forms/:id
  • GET/forms/:id/submissions
  • GET/reports
  • GET/analytics/website
  • GET/users

Stuck, or need an endpoint that isn't here? Contact us.