✓ Verified 💻 Development ✓ Enhanced Data

Attio Cli

Interact with your Attio CRM workspace via the attio-cli.

Rating
4.7 (142 reviews)
Downloads
9,018 downloads
Version
1.0.0

Overview

Interact with your Attio CRM workspace via the attio-cli.

Complete Documentation

View Source →

attio-cli

Interact with your Attio CRM workspace via the attio-cli.

Install

  • Clone and install the CLI:
bash
git clone https://github.com/FroeMic/attio-cli
cd attio-cli
npm install
npm link
  • Set ATTIO_API_KEY environment variable (get it from Attio Settings > Developers > API Keys):
  • Recommended: Add to ~/.claude/.env for Claude Code
  • Alternative: Add to ~/.bashrc or ~/.zshrc: export ATTIO_API_KEY="your-api-key"
Repository: https://github.com/FroeMic/attio-cli

Commands

List objects and records:

bash
attio object list                      # List all objects
attio record list people               # List people records
attio record list companies            # List company records

Work with lists (pipelines):

bash
attio list list-all                    # List all lists
attio entry list <list-slug>           # List entries in a list

Get detailed info:

bash
attio object get <object-slug>         # Get object details
attio object attributes <object-slug>  # Get object attributes
attio list attributes <list-slug>      # Get list entry attributes

Generate Workspace Schema

Generate a markdown schema of your workspace for context:

bash
bash {baseDir}/scripts/generate-schema.sh > {baseDir}/workspace.schema.md

This creates a reference file documenting all objects, attributes, lists, and field options in your workspace.

Key Concepts

ConceptPurposeExample
ObjectsBase record typesPeople, Companies, Deals
ListsPipeline/workflow managementSales Pipeline, Hiring
RecordsIndividual items in objectsA specific person or company
EntriesRecords added to a listA deal in the Sales Pipeline

API Reference

  • Base URL: https://api.attio.com/v2
  • Auth: Authorization: Bearer $ATTIO_API_KEY
  • Rate Limits: 100 requests per 10 seconds per workspace

Common API Operations

Search for a person:

bash
curl -X POST https://api.attio.com/v2/objects/people/records/query \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filter": {"email_addresses": {"contains": "[email protected]"}}}'

Create a record:

bash
curl -X POST https://api.attio.com/v2/objects/<object-slug>/records \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": {"values": {"name": [{"value": "Record Name"}]}}}'

Add entry to a list:

bash
curl -X POST https://api.attio.com/v2/lists/<list-slug>/entries \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": {"parent_record_id": "<record-id>"}}'

Notes

  • Run generate-schema.sh after installing to create a workspace schema file with all your objects, lists, and field options.
  • Lists are commonly used to manage pipelines (sales stages, hiring workflows, etc.).
  • The CLI requires jq for JSON processing in schema generation.

Installation

Terminal bash

openclaw install attio-cli
    
Copied!

💻Code Examples

1. Clone and install the CLI:

1-clone-and-install-the-cli.sh
git clone https://github.com/FroeMic/attio-cli
cd attio-cli
npm install
npm link

List objects and records:

list-objects-and-records.sh
attio object list                      # List all objects
attio record list people               # List people records
attio record list companies            # List company records

Work with lists (pipelines):

work-with-lists-pipelines.sh
attio list list-all                    # List all lists
attio entry list <list-slug>           # List entries in a list

Get detailed info:

get-detailed-info.sh
attio object get <object-slug>         # Get object details
attio object attributes <object-slug>  # Get object attributes
attio list attributes <list-slug>      # Get list entry attributes

Search for a person:

search-for-a-person.sh
curl -X POST https://api.attio.com/v2/objects/people/records/query \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filter": {"email_addresses": {"contains": "[email protected]"}}}'

Create a record:

create-a-record.sh
curl -X POST https://api.attio.com/v2/objects/<object-slug>/records \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": {"values": {"name": [{"value": "Record Name"}]}}}'

Add entry to a list:

add-entry-to-a-list.sh
curl -X POST https://api.attio.com/v2/lists/<list-slug>/entries \
  -H "Authorization: Bearer $ATTIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": {"parent_record_id": "<record-id>"}}'

Tags

#web_and-frontend-development #cli

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author froemic
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install attio-cli