An Attio API mock for updating customer records.
Your agent queries seeded companies through REST API v2, then updates a company record. Check the update call and read back the changed attribute values.
company_updatedCalls PATCH /v2/objects/companies/records/*
Starting records
records / companies
- ref
ridgeway- name
Ridgeway Robotics- description
Warehouse robotics; pilot started this week.
records / companies
- ref
kestrel- name
Kestrel Credit Union
attributes / companies
- title
Segment
records / people
- ref
grace- name
Grace Lin
Connect your agent to the Attio mock
When ancha runs your agent, it sets:
ATTIO_API_URLATTIO_API_KEY
Point the client you already use at them.
const response = await fetch(process.env.ATTIO_API_URL + '/v2/objects/companies/records/query', { method: 'POST', headers: { Authorization: 'Bearer ' + process.env.ATTIO_API_KEY, 'Content-Type': 'application/json' }, body: JSON.stringify({ limit: 10 }) });
const companies = await response.json();Locally, ancha runs your agent as an ordinary process, so keep real Attio credentials out of its environment.
See all 30 endpoints
attributes
/v2/:target/:identifier/attributeslists
/v2/lists/v2/lists/:list/v2/lists/:list/entries/v2/lists/:list/entries/:entry_id/v2/lists/:list/entries/:entry_id/v2/lists/:list/entries/querynotes
/v2/notes/v2/notes/v2/notes/:note_id/v2/notes/:note_idobjects
/v2/objects/v2/objects/:object/v2/objects/:object/records/v2/objects/:object/records/v2/objects/:object/records/:record_id/v2/objects/:object/records/:record_id/v2/objects/:object/records/:record_id/v2/objects/:object/records/:record_id/v2/objects/:object/records/:record_id/attributes/:attribute/values/v2/objects/:object/records/:record_id/entries/v2/objects/:object/records/queryself
/v2/selftasks
/v2/tasks/v2/tasks/v2/tasks/:task_id/v2/tasks/:task_id/v2/tasks/:task_idworkspace_members
/v2/workspace_members/v2/workspace_members/:idSeed your own data
The data the Attio mock starts with on every run, cut to a few records. ancha twins seed attio prints every field.
Full seed YAML
twins:
- attio
seed:
attio:
workspace:
name: Acme
slug: acme
agent: ancha
members:
- ref: ancha
first_name: Ancha
last_name: assistant
email: ancha@acme.example
- ref: tom
first_name: Tom
last_name: Hughes
email: tom@acme.example
access_level: admin
attributes:
companies:
- api_slug: segment
title: Segment
type: select
options:
- Enterprise
records:
companies:
- ref: ridgeway
values:
name: Ridgeway Robotics
domains:
- ridgeway-robotics.example
description: Warehouse robotics; pilot started this week.
categories:
- Manufacturing
created: -400h
- ref: kestrel
values:
name: Kestrel Credit Union
domains:
- kestrel-cu.example
categories:
- Financial Services
created: -8760h
people:
- ref: grace
values:
name: Grace Lin
email_addresses:
- grace.lin@bluefield-logistics.example
job_title: IT Security Lead
created: -500h
deals:
- ref: ridgeway_rollout
values:
name: "Ridgeway Robotics: analytics rollout"
stage: In Progress
owner: tom
value: 96000
associated_company: ridgeway
created: -300h
lists:
- ref: renewals
name: Renewals
api_slug: renewals
parent_object: companies
created: -2000h
attributes:
- api_slug: renewal_stage
title: Renewal stage
type: status
options:
- Upcoming
entries:
- record: kestrel
values: {}
created: -200h
notes:
- record: ridgeway
title: Discovery call
content: They care about connecting warehouse data to their sales pipeline. Erin Walsh is our champion; the pilot kicked off on Monday.
author: tom
created: -31h
tasks:
- content: Send the SOC 2 Type II report to Grace Lin
deadline: 2026-11-02T17:00:00Z
records:
- grace
assignees:
- tom
author: tom
created: -8h
Check what your agent did
Checks YAML
checks:
- id: company_updated
trace:
called: PATCH /v2/objects/companies/records/*More CRM and sales tools
All 43 toolsAttio API mock FAQ
How can I test an Attio agent that creates or updates the same customer record?
Use PUT / with matching_attribute set to a unique attribute and include its value in values. Ancha updates the matching record or creates one when there is no match; values matching several records return multiple_match_results.
Why do PATCH and PUT produce different multiselect values in Attio?
On /, the mock's PATCH adds to the supplied multiselect attributes, while PUT replaces their values. Read the record again to inspect the resulting values.
Which filters can I use to find Attio records during a test?
POST / accepts attribute filters such as $eq, $contains and $gte, combined with $and, $or or $not. The mock applies sorts before limit and offset.
Install the CLI and run your agent against the Attio mock.
Ancha is not affiliated with Attio.