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.

Connect your agent
The test
  • company_updated

    Calls 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_URL
  • ATTIO_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

GET/v2/:target/:identifier/attributes

lists

GET/v2/lists
GET/v2/lists/:list
POST/v2/lists/:list/entries
PATCH/v2/lists/:list/entries/:entry_id
DELETE/v2/lists/:list/entries/:entry_id
POST/v2/lists/:list/entries/query

notes

GET/v2/notes
POST/v2/notes
GET/v2/notes/:note_id
DELETE/v2/notes/:note_id

objects

GET/v2/objects
GET/v2/objects/:object
POST/v2/objects/:object/records
PUT/v2/objects/:object/records
GET/v2/objects/:object/records/:record_id
PUT/v2/objects/:object/records/:record_id
PATCH/v2/objects/:object/records/:record_id
DELETE/v2/objects/:object/records/:record_id
GET/v2/objects/:object/records/:record_id/attributes/:attribute/values
GET/v2/objects/:object/records/:record_id/entries
POST/v2/objects/:object/records/query

self

GET/v2/self

tasks

GET/v2/tasks
POST/v2/tasks
GET/v2/tasks/:task_id
PATCH/v2/tasks/:task_id
DELETE/v2/tasks/:task_id

workspace_members

GET/v2/workspace_members
GET/v2/workspace_members/:id

Seed 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 tools

Attio API mock FAQ

How can I test an Attio agent that creates or updates the same customer record?

Use PUT /v2/objects/:object/records 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 /v2/objects/:object/records/:record_id, 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 /v2/objects/:object/records/query 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.

Book a demo

Ancha is not affiliated with Attio.