Skip to main content
Glama
attio-smoke.tsβ€’876 B
import axios from 'axios'; const token = process.env.ATTIO_API_KEY!; const http = axios.create({ baseURL: (process.env.ATTIO_BASE_URL || 'https://api.attio.com/v2').replace(/\/+$/,''), headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json', Accept: 'application/json' }, }); async function main() { const probe = await http.get('/objects/companies'); console.log('probe companies keys:', Object.keys(probe.data || {}), probe.data); const create = await http.post('/objects/companies/records', { data: { values: { name: 'E2E Smoke Co', domains: [{ domain: `e2e-smoke-${Date.now()}.example.com` }] } }, }); console.log('create status:', create.status, 'body keys:', Object.keys(create.data || {})); } main().catch((e) => { console.error('SMOKE ERROR', e?.response?.status, e?.response?.data || e?.message); process.exit(1); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kesslerio/attio-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server