Skip to main content
attio-hello-world Make your first Attio API calls -- list objects, create a person,
query companies, and read attributes.
Use when starting a new Attio integration or learning the API.
Trigger: "attio hello world", "attio example", "first attio call",
"attio quick start", "try attio API".
설치로 이동 Skills Marketplace 커뮤니티가 만든 AI 스킬을 발견하고 탐색하세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill attio-hello-world명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Zip 다운로드 다운로드 중... jeremylongshore
jeremylongshore/claude-code-plugins-plus-skills
GitHub 저장소 열기 name attio-hello-world description Make your first Attio API calls -- list objects, create a person,
query companies, and read attributes.
Use when starting a new Attio integration or learning the API.
Trigger: "attio hello world", "attio example", "first attio call",
"attio quick start", "try attio API".
allowed-tools Read, Write, Edit, Bash(curl:*), Bash(npx:*) version 1.6.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","crm","attio"] compatibility Designed for Claude Code
Attio Hello World
Overview
Five progressively deeper API calls that exercise the Attio object/record model. Every call targets https://api.attio.com/v2 and returns JSON.
Prerequisites
Completed attio-install-auth (valid ATTIO_API_KEY in env)
Scopes: object_configuration:read, record_permission:read, record_permission:read-write
Instructions
Step 1: List Workspace Objects
Every Attio workspace has system objects (people, companies) and optional objects (deals, users, workspaces). Custom objects can be created.
curl -s https://api.attio.com/v2/objects \
-H "Authorization: Bearer ${ATTIO_API_KEY} " | jq '.data[] | {slug: .api_slug, singular: .singular_noun}'
{ "slug" : "people" , "singular" : "Person" }
{ "slug" : "companies" , "singular" : "Company" }
{ "slug" : "deals" , "singular" : "Deal" }
Step 2: List Attributes on an Object
Objects have attributes (fields). Use the slug from Step 1.
curl -s "https://api.attio.com/v2/objects/people/attributes" \
-H "Authorization: Bearer ${ATTIO_API_KEY} " | jq
'.data[] | {slug: .api_slug, type: .type}'
Common people attributes: name (personal-name), email_addresses (email-address), phone_numbers (phone-number), description (text), primary_location (location), company (record-reference).
Step 3: Create a Person Record const person = await attioFetch<{ data : { id : { record_id : string } } }>({
method : "POST" ,
path : "/objects/people/records" ,
body : {
data : {
values : {
email_addresses : ["ada@example.com" ],
name : [
{
first_name : "Ada" ,
last_name : "Lovelace" ,
full_name : "Ada Lovelace" ,
},
],
description : ["First computer programmer" ],
},
},
},
});
console .log ("Created person:" , person.data .id .record_id );
Key detail: Values are keyed by attribute slug. Most attributes accept an array (Attio supports multiselect by default). String shortcuts work for emails and domains.
Step 4: Query Records with Filters
const results = await attioFetch<{
data : Array <{ id : { record_id : string }; values : Record <string , any > }>;
}>({
method : "POST" ,
path : "/objects/people/records/query" ,
body : {
filter : {
email_addresses : {
email_address : { $contains : "example.com" },
},
},
sorts : [
{
attribute : "created_at" ,
field : "created_at" ,
direction : "desc" ,
},
],
limit : 10 ,
},
});
console .log (`Found ${results.data.length} people` );
Step 5: Create a Company and Link It
const company = await attioFetch<{ data : { id : { record_id : string } } }>({
method : "POST" ,
path : "/objects/companies/records" ,
body : {
data : {
values : {
name : ["Acme Corp" ],
domains : ["acme.com" ],
description : ["Enterprise widget manufacturer" ],
},
},
},
});
await attioFetch ({
method : "PATCH" ,
path : `/objects/people/records/${person.data.id.record_id} ` ,
body : {
data : {
values : {
company : [
{
target_object : "companies" ,
target_record_id : company.data .id .record_id ,
},
],
},
},
},
});
Attio Data Model Quick Reference Workspace
└── Objects (people, companies, deals, custom)
├── Attributes (name, email, phone, custom)
└── Records (individual people, companies)
└── Values (attribute data on each record)
└── Lists (pipelines, boards, custom groupings)
└── Entries (records added to a list with list-specific attributes)
Error Handling Error Status Cause Solution not_found404 Wrong object slug or record ID Verify slug with GET /v2/objects validation_error422 Invalid attribute value format Check attribute type in docs insufficient_scopes403 Token missing write scope Add record_permission:read-write duplicate_record409 Record with same unique field exists Use PUT (assert) instead
Resources
Next Steps Proceed to attio-local-dev-loop for development workflow, or attio-core-workflow-a for record CRUD patterns.
이 저장소의 다른 Skills Implement user sign-up and sign-in flows with Clerk.
Use when building authentication UI, customizing sign-in experience,
or implementing OAuth social login.
Trigger with phrases like "clerk sign-in", "clerk sign-up",
"clerk login flow", "clerk OAuth", "clerk social login".
Implement session management and middleware with Clerk.
Use when managing user sessions, configuring route protection,
or implementing token refresh and custom JWT templates.
Trigger with phrases like "clerk session", "clerk middleware",
"clerk route protection", "clerk token", "clerk JWT".
Configure enterprise SSO, role-based access control, and organization management.
Use when implementing SSO integration, configuring role-based permissions,
or setting up organization-level controls.
Trigger with phrases like "clerk SSO", "clerk RBAC",
"clerk enterprise", "clerk roles", "clerk permissions", "clerk organizations".