Companies

Accounts: the organisations you sell to or support.

#List companies

GET/api/v1/companies

Operation list_companies · needs scope companies:read

ParameterInTypeNotes
limitqueryintegerPage size, at most 100.
cursorquerystringpagination.nextCursor from the previous page.
sortquery-updated_at | updated_at | -created_at | created_atSort order. A leading minus sorts descending.
updated_sincequerydatetimeOnly records updated at or after this instant.
qquerystringFree-text search over the object's main columns.
domainquerystringOnly records whose domain equals this.
industryquerystringOnly records whose industry equals this.
lifecycle_stagequerystringOnly records whose lifecycle_stage equals this.
ownerquerystringOnly records whose owner equals this.
countryquerystringOnly records whose country equals this.
tierquerystringOnly records whose tier equals this.
bash
curl https://synconone.com/api/v1/companies \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
json
{
  "data": [
    {
      "id": "pr_1a2b3c4d5e6f7a8b",
      "object": "string",
      "name": "Emily Carter",
      "domain": "example.com",
      "website": "https://example.com",
      "industry": "string",
      "employee_count": 1,
      "annual_revenue_cents": 1,
      "phone": "+61 400 000 000",
      "lifecycle_stage": "lead"
    }
  ],
  "pagination": {
    "nextCursor": null,
    "hasMore": false
  }
}

Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.

#Create a company

POST/api/v1/companies

Operation create_company · needs scope companies:write

Built-in and custom fields by key. Relations take public ids.

Body fieldTypeNotes
namestringName
domainstringDomain
websitestringWebsite
industrystringIndustry
employee_countnumberEmployees
annual_revenue_centsnumberAnnual revenue
phonestringPhone
lifecycle_stagelead | prospect | customer | churnedLifecycle stage
tierstringTier
sourcestringSource
ownerstringOwner
address_linestringAddress
citystringCity
regionstringRegion
countrystringCountry
time_zonestringTime zone
tagslist of stringTags
descriptionstringAbout
bash
curl -X POST https://synconone.com/api/v1/companies \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Emily Carter","domain":"example.com","website":"https://example.com","industry":"string","employee_count":1}'
json
{
  "data": {
    "id": "pr_1a2b3c4d5e6f7a8b",
    "object": "string",
    "name": "Emily Carter",
    "domain": "example.com",
    "website": "https://example.com",
    "industry": "string",
    "employee_count": 1,
    "annual_revenue_cents": 1,
    "phone": "+61 400 000 000",
    "lifecycle_stage": "lead"
  }
}

Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 409: Conflict, approval required, or idempotent request in progress. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.

#Get a company

GET/api/v1/companies/{id}

Operation get_company · needs scope companies:read

ParameterInTypeNotes
id requiredpathstringPublic id of the company.
bash
curl https://synconone.com/api/v1/companies/pr_1a2b3c4d5e6f7a8b \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
json
{
  "data": {
    "id": "pr_1a2b3c4d5e6f7a8b",
    "object": "string",
    "name": "Emily Carter",
    "domain": "example.com",
    "website": "https://example.com",
    "industry": "string",
    "employee_count": 1,
    "annual_revenue_cents": 1,
    "phone": "+61 400 000 000",
    "lifecycle_stage": "lead"
  }
}

Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 404: Not found, or not visible to this key. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.

#Update a company

PATCH/api/v1/companies/{id}

Operation update_company · needs scope companies:write

Only the keys sent are changed. Fields are applied in order; the first refusal stops the request and details.applied lists what was already changed.

ParameterInTypeNotes
id requiredpathstringPublic id of the company.
Body fieldTypeNotes
namestringName
domainstringDomain
websitestringWebsite
industrystringIndustry
employee_countnumberEmployees
annual_revenue_centsnumberAnnual revenue
phonestringPhone
lifecycle_stagelead | prospect | customer | churnedLifecycle stage
tierstringTier
sourcestringSource
ownerstringOwner
address_linestringAddress
citystringCity
regionstringRegion
countrystringCountry
time_zonestringTime zone
tagslist of stringTags
descriptionstringAbout
bash
curl -X PATCH https://synconone.com/api/v1/companies/pr_1a2b3c4d5e6f7a8b \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Emily Carter","domain":"example.com","website":"https://example.com","industry":"string","employee_count":1}'
json
{
  "data": {
    "id": "pr_1a2b3c4d5e6f7a8b",
    "object": "string",
    "name": "Emily Carter",
    "domain": "example.com",
    "website": "https://example.com",
    "industry": "string",
    "employee_count": 1,
    "annual_revenue_cents": 1,
    "phone": "+61 400 000 000",
    "lifecycle_stage": "lead"
  }
}

Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 404: Not found, or not visible to this key. · 409: Conflict, approval required, or idempotent request in progress. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.

#Archive a company

DELETE/api/v1/companies/{id}

Operation archive_company · needs scope companies:write

Archives the record (it can be restored in the app). Nothing is destroyed.

ParameterInTypeNotes
id requiredpathstringPublic id of the company.
bash
curl -X DELETE https://synconone.com/api/v1/companies/pr_1a2b3c4d5e6f7a8b \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
json
{
  "data": {
    "id": "pr_1a2b3c4d5e6f7a8b",
    "object": "string",
    "archived": true
  }
}

Errors: 401: Missing, invalid, revoked or expired API key. · 403: The key lacks the scope, or its role cannot do this. · 404: Not found, or not visible to this key. · 422: Validation failed. · 429: Rate limited. Honour Retry-After.. See errors.