Skip to content
Rolling out

REST API reference

Every endpoint of the IA Compa REST API v1 with its method, path, scope, parameters and examples.

Who can do this
Software holding an API key with the scope each endpoint lists.
On this page

22 operations under https://iac.manage.iacompa.com/api/v1. Paths below are relative to that base. The machine-readable version is the OpenAPI document at https://iac.manage.iacompa.com/api/v1/openapi.json.

Workspace

GET /workspace

The account this key belongs to, its turned-on features, this key's scopes and today's usage against its daily limits.

  • Scope: workspace:read. Answers 200 with one record.
Example request
curl https://iac.manage.iacompa.com/api/v1/workspace \
  -H "Authorization: Bearer $IACOMPA_API_KEY"
Example response
{
  "data": {
    "id": "6f0c…",
    "object": "workspace",
    "name": "Rivera Plumbing",
    "is_demo": false,
    "status": "active",
    "features": ["crm", "…"],
    "api_key": {
      "name": "Website sync",
      "display_prefix": "iac_live_AbC…",
      "scopes": ["workspace:read", "crm:read", "crm:write"],
      "expires_at": null,
      "made_by_name": "Ana Rivera"
    },
    "limits": { "writes_per_day": 2000, "records_read_per_day": 50000, "writes_today": 12, "records_read_today": 340 }
  }
}

Contacts

GET /contacts

Lists contacts, newest change first. Filter by text, company, last change or archived state.

  • Scope: crm:read. Answers 200 with a page of records.
Parameters of GET /contacts
ParameterInTypeRequired
queryquerystring (max 100)No
company_idqueryuuidNo
updated_afterquerystring (date-time)No
archivedqueryone of: true, falseNo
limitqueryinteger (min 1, max 100)No
cursorquerystringNo
Example request
curl "https://iac.manage.iacompa.com/api/v1/contacts?query=rivera&limit=25" \
  -H "Authorization: Bearer $IACOMPA_API_KEY"
Example response
{
  "data": [
    { "id": "1b7e…", "object": "contact", "name": "Luis Rivera", "…": "…" }
  ],
  "next_cursor": "eyJ0IjoiMjAyNi0xMS0yOF…"
}

GET /contacts/{id}

Gets one contact with its details, tags and version.

  • Scope: crm:read. Answers 200 with one record.
  • id in the path is the record's id (a UUID).

POST /contacts

Creates a contact. Answers 201 with the record as it is now.

  • Scope: crm:write. Answers 201 with one record.
Parameters of POST /contacts
ParameterInTypeRequired
first_namebodystring (max 120) or nullNo
last_namebodystring (max 120) or nullNo
emailbodystring (email) or nullNo
phonebodystring (max 40) or nullNo
job_titlebodystring (max 120) or nullNo
company_idbodyuuid or nullNo
localebodystring (max 35)No
preferred_contact_methodbodystring (max 20)No
Example request
curl https://iac.manage.iacompa.com/api/v1/contacts \
  -H "Authorization: Bearer $IACOMPA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: form-4821" \
  -d '{"first_name":"Luis","last_name":"Rivera","email":"luis@example.com","phone":"+15135550142"}'
Example response
{
  "data": {
    "id": "1b7e…",
    "object": "contact",
    "first_name": "Luis",
    "last_name": "Rivera",
    "name": "Luis Rivera",
    "email": "luis@example.com",
    "phone": "+15135550142",
    "job_title": null,
    "company_id": null,
    "locale": "en",
    "preferred_contact_method": null,
    "owner_name": "Ana Rivera",
    "tags": [],
    "version": 1,
    "archived": false,
    "created_at": "2026-11-28T15:04:05Z",
    "updated_at": "2026-11-28T15:04:05Z"
  }
}

PATCH /contacts/{id}

Updates only the fields you send. Send the version you read to avoid overwriting someone else's change.

  • Scope: crm:write. Answers 200 with one record.
  • id in the path is the record's id (a UUID).
Parameters of PATCH /contacts/{id}
ParameterInTypeRequired
first_namebodystring (max 120) or nullNo
last_namebodystring (max 120) or nullNo
emailbodystring (email) or nullNo
phonebodystring (max 40) or nullNo
job_titlebodystring (max 120) or nullNo
company_idbodyuuid or nullNo
localebodystring (max 35)No
preferred_contact_methodbodystring (max 20)No
versionbodyinteger (min 1)No
Example request
curl -X PATCH https://iac.manage.iacompa.com/api/v1/contacts/1b7e… \
  -H "Authorization: Bearer $IACOMPA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job_title":"Owner","version":1}'

Companies

GET /companies

Lists companies, newest change first.

  • Scope: crm:read. Answers 200 with a page of records.
Parameters of GET /companies
ParameterInTypeRequired
queryquerystring (max 100)No
updated_afterquerystring (date-time)No
archivedqueryone of: true, falseNo
limitqueryinteger (min 1, max 100)No
cursorquerystringNo

GET /companies/{id}

Gets one company.

  • Scope: crm:read. Answers 200 with one record.
  • id in the path is the record's id (a UUID).

POST /companies

Creates a company. name is required.

  • Scope: crm:write. Answers 201 with one record.
Parameters of POST /companies
ParameterInTypeRequired
namebodystring (max 200)Yes
domainbodystring (max 253) or nullNo
websitebodystring (uri) or nullNo
phonebodystring (max 40) or nullNo
industrybodystring (max 120) or nullNo

PATCH /companies/{id}

Updates only the fields you send.

  • Scope: crm:write. Answers 200 with one record.
  • id in the path is the record's id (a UUID).
Parameters of PATCH /companies/{id}
ParameterInTypeRequired
namebodystring (max 200)No
domainbodystring (max 253) or nullNo
websitebodystring (uri) or nullNo
phonebodystring (max 40) or nullNo
industrybodystring (max 120) or nullNo
versionbodyinteger (min 1)No

Opportunities

GET /opportunities

Lists opportunities, newest change first. Filter by state, pipeline, stage, company or contact.

  • Scope: crm:read. Answers 200 with a page of records.
Parameters of GET /opportunities
ParameterInTypeRequired
queryquerystring (max 100)No
statequeryone of: open, won, lostNo
pipeline_idqueryuuidNo
stage_idqueryuuidNo
company_idqueryuuidNo
contact_idqueryuuidNo
updated_afterquerystring (date-time)No
archivedqueryone of: true, falseNo
limitqueryinteger (min 1, max 100)No
cursorquerystringNo

GET /opportunities/{id}

Gets one opportunity with its current pipeline and stage.

  • Scope: crm:read. Answers 200 with one record.
  • id in the path is the record's id (a UUID).

POST /opportunities

Creates an opportunity, optionally in a pipeline stage (send pipeline_id and stage_id together).

  • Scope: crm:write. Answers 201 with one record.
Parameters of POST /opportunities
ParameterInTypeRequired
titlebodystring (max 200)Yes
company_idbodyuuid or nullNo
contact_idbodyuuid or nullNo
prioritybodystring (max 20)No
value_centsbodyinteger (min 0) or nullNo
currencybodystringNo
expected_close_datebodystring (date) or nullNo
pipeline_idbodyuuidNo
stage_idbodyuuidNo

PATCH /opportunities/{id}

Updates only the fields you send. It can't mark an opportunity won or lost.

  • Scope: crm:write. Answers 200 with one record.
  • id in the path is the record's id (a UUID).
Parameters of PATCH /opportunities/{id}
ParameterInTypeRequired
titlebodystring (max 200)No
company_idbodyuuid or nullNo
contact_idbodyuuid or nullNo
prioritybodystring (max 20)No
value_centsbodyinteger (min 0) or nullNo
currencybodystringNo
expected_close_datebodystring (date) or nullNo
versionbodyinteger (min 1)No

POST /opportunities/{id}/move

Moves an opportunity to another stage of its pipeline. It can't move into or out of Won or Lost.

  • Scope: crm:write. Answers 200 with one record.
  • id in the path is the record's id (a UUID).
Parameters of POST /opportunities/{id}/move
ParameterInTypeRequired
stage_idbodyuuidYes
reasonbodystring (max 500)No
Example request
curl https://iac.manage.iacompa.com/api/v1/opportunities/9c2d…/move \
  -H "Authorization: Bearer $IACOMPA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stage_id":"4e1a…","reason":"Quote sent"}'

Pipelines

GET /pipelines

Lists the opportunity pipelines and their stages.

  • Scope: crm:read. Answers 200 with a page of records.
Example request
curl https://iac.manage.iacompa.com/api/v1/pipelines \
  -H "Authorization: Bearer $IACOMPA_API_KEY"

Tasks

GET /tasks

Lists tasks, soonest due first. Open and in-progress tasks unless you ask for a status.

  • Scope: crm:read. Answers 200 with a page of records.
Parameters of GET /tasks
ParameterInTypeRequired
statusqueryone of: open, in_progress, resolved, cancelledNo
assigned_to_mequeryone of: true, falseNo
record_typequeryone of: contact, company, opportunityNo
record_idqueryuuidNo
limitqueryinteger (min 1, max 100)No
cursorquerystringNo

POST /tasks

Creates a task on a contact, company or opportunity, assigned to the key's maker.

  • Scope: crm:write. Answers 201 with one record.
Parameters of POST /tasks
ParameterInTypeRequired
record_typebodyone of: contact, company, opportunityYes
record_idbodyuuidYes
titlebodystring (max 200)Yes
descriptionbodystring (max 4000) or nullNo
prioritybodystring (max 20)No
due_atbodystring (date-time) or nullNo

POST /tasks/{id}/complete

Marks a task done.

  • Scope: crm:write. Answers 200 with one record.
  • id in the path is the record's id (a UUID).

Notes

POST /notes

Adds a note to a contact, company or opportunity.

  • Scope: crm:write. Answers 201 with one record.
Parameters of POST /notes
ParameterInTypeRequired
record_typebodyone of: contact, company, opportunityYes
record_idbodyuuidYes
bodybodystring (max 10000)Yes
subjectbodystring (max 200)No
Example request
curl https://iac.manage.iacompa.com/api/v1/notes \
  -H "Authorization: Bearer $IACOMPA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"record_type":"contact","record_id":"1b7e…","body":"Asked for a Monday visit."}'

Tags

GET /tags

Lists the account's tags.

  • Scope: crm:read. Answers 200 with a page of records.
Parameters of GET /tags
ParameterInTypeRequired
queryquerystring (max 100)No
limitqueryinteger (min 1, max 100)No
cursorquerystringNo

POST /tags/apply

Applies an existing tag to a contact, company or opportunity.

  • Scope: crm:write. Answers 200 with one record.
Parameters of POST /tags/apply
ParameterInTypeRequired
tag_idbodyuuidYes
record_typebodyone of: contact, company, opportunityYes
record_idbodyuuidYes

POST /tags/remove

Removes a tag from a contact, company or opportunity.

  • Scope: crm:write. Answers 200 with one record.
Parameters of POST /tags/remove
ParameterInTypeRequired
tag_idbodyuuidYes
record_typebodyone of: contact, company, opportunityYes
record_idbodyuuidYes