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.
| Resource | Method and path | Scope | Purpose |
|---|---|---|---|
customers |
|
| List active customers |
customers |
|
| Read one customer |
customers |
|
| Create a customer |
customers |
|
| Change a customer |
people |
|
| Read team members |
leads |
|
| Read leads |
leads |
|
| Create a lead |
leads |
|
| Change a lead |
deals |
|
| Read deals |
deals |
|
| Create a deal |
deals |
|
| Change a deal |
proposals |
|
| Read proposals |
estimates |
|
| Read estimates |
contracts |
|
| Read contracts |
forms |
|
| Read lead and survey forms |
form submissions |
|
| Read form responses |
Create and rename.
List: active customers only. No status or search filter.
POST /customersfields:kind(personororganisation),displayName, and optionalemail. Returns{ id, displayName }.PATCH /customers/:idfields:displayName,status.Not accepted: any other field. Addresses, tags, owners and custom fields cannot be written over the API. Create accepts
kind,displayNameandemail; update acceptsdisplayNameandstatus.
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 /leadsfields:email,name,companyName,source.PATCH /leads/:idfields: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:
emailonly. Optional:name,companyNameandsource.
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 /dealsfields:title,customerId,pipelineId,stageId,value,currency,expectedCloseOn,source.PATCH /deals/:idfields:title,value,currency,expectedCloseOn,source.Not accepted: a stage change. A
stageIdin 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
valueas a decimal string. It is in major units, for example"1500.50"withcurrency"AUD". Send both together.
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
afterandlimitpaging.
curl "https://app.terania.ai/api/v1/forms/FORM_ID/submissions?limit=50" \
-H "Authorization: Bearer $TERANIA_KEY"