Customers and sales

Reference: customers and sales

Nine resources. Three can change. Customers, leads and deals accept creates and updates. People, proposals, estimates, contracts, forms and form submissions are read only. There are no delete endpoints for any of them. Base URL: https://app.terania.ai/api/v1. For request rules see conventions. For scope names see scopes.

Every path.

ResourceMethod and pathScopePurpose

customers

GET /customers

customer:read

List active customers

customers

GET /customers/:id

customer:read

Read one customer

customers

POST /customers

customer:create

Create a customer

customers

PATCH /customers/:id

customer:update

Change a customer

people

GET /people, GET /people/:id

member:read

Read team members

leads

GET /leads, GET /leads/:id

lead:read

Read leads

leads

POST /leads

lead:create

Create a lead

leads

PATCH /leads/:id

lead:update

Change a lead

deals

GET /deals, GET /deals/:id

deal:read

Read deals

deals

POST /deals

deal:create

Create a deal

deals

PATCH /deals/:id

deal:update

Change a deal

proposals

GET /proposals, GET /proposals/:id

proposal:read

Read proposals

estimates

GET /estimates, GET /estimates/:id

estimate:read

Read estimates

contracts

GET /contracts, GET /contracts/:id

contract:read

Read contracts

forms

GET /forms, GET /forms/:id

form:read

Read lead and survey forms

form submissions

GET /forms/:id/submissions, GET /forms/:id/submissions/:submissionId

form-submission:read

Read form responses

Create and rename.

  • List: active customers only. No status or search filter.

  • POST /customers fields: kind (person or organisation), displayName, and optional email. Returns { id, displayName }.

  • PATCH /customers/:id fields: displayName, status.

  • Not accepted: any other field. Addresses, tags, owners and custom fields cannot be written over the API. Create accepts kind, displayName and email; update accepts displayName and status.

bash
curl -X POST https://app.terania.ai/api/v1/customers \
  -H "Authorization: Bearer $TERANIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kind":"organisation","displayName":"Sample Customer Ltd","email":"accounts@samplecustomer.example"}'

Capture, then update.

  • POST /leads fields: email, name, companyName, source.

  • PATCH /leads/:id fields: email, name, companyName, source, notes, value, currency, nextFollowUpAt.

  • Not accepted: converting a lead to a customer or a deal. Conversion is done in the app.

  • Required fields on create: email only. Optional: name, companyName and source.

bash
curl -X POST https://app.terania.ai/api/v1/leads \
  -H "Authorization: Bearer $TERANIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Sample Lead","companyName":"Sample Customer Ltd","email":"lead@samplecustomer.example","source":"website"}'

Create in a stage. Move it in the app.

  • POST /deals fields: title, customerId, pipelineId, stageId, value, currency, expectedCloseOn, source.

  • PATCH /deals/:id fields: title, value, currency, expectedCloseOn, source.

  • Not accepted: a stage change. A stageId in a PATCH is refused as an unknown field. Moving a deal between stages is done in the app. A deal list read is refused if there are more than 100 pipelines or more than 100 stages in a pipeline.

  • Values are money: send value as a decimal string. It is in major units, for example "1500.50" with currency "AUD". Send both together.

bash
curl -X PATCH https://app.terania.ai/api/v1/deals/DEAL_ID \
  -H "Authorization: Bearer $TERANIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Hot water replacement","expectedCloseOn":"2026-12-15","currency":"AUD"}'

Six you can read and not change.

  • People (member:read): the organisation's team members. Not customers.

  • Proposals, estimates and contracts: read status and fields. Accepting, signing or sending is done in the app. Contract e-signing is Preview.

  • Forms and form submissions: read a form, then read its responses at /forms/:id/submissions. Forms are built in the app. To receive submissions as they arrive, use the webhook events for leads and customers, or read this list.

  • Each has the same after and limit paging.

bash
curl "https://app.terania.ai/api/v1/forms/FORM_ID/submissions?limit=50" \
  -H "Authorization: Bearer $TERANIA_KEY"

The edges.