Skip to content
Go to Micro
Getting Started

Quick Start

Make your first API request in under 5 minutes

This guide walks you through authenticating with the Micro API and making your first request.

  • A Micro account
  • An API key — go to Settings → API → Generate API key

Query your contacts using curl:

Terminal window
curl https://api.micro.so/v2/prism/query/{teamId}/contact \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": {
"select": ["full_name", "email", "title"],
"limit": 10
}
}'

Replace {teamId} with your team ID (found in Settings → API) and YOUR_API_KEY with your key.

The response looks like:

[
{
"id": "c1a2b3c4-...",
"properties": {
"full_name": "Sarah Chen",
"email": "sarah@example.com",
"title": "Partner"
}
}
]

Add a filter to narrow results. For example, contacts labeled investor who you’ve interacted with recently:

Terminal window
curl https://api.micro.so/v2/prism/query/{teamId}/contact \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": {
"select": ["full_name", "email", "last_interaction_date"],
"filter": [
{ "labels": { "in": ["investor"] } },
{ "last_interaction_date": { ">=": "2024-01-01" } }
],
"sort": [{ "last_interaction_date": "desc" }],
"limit": 25
}
}'

Install the SDK:

Terminal window
npm install micro
import Micro from 'micro';
const client = new Micro({
apiKey: process.env.MICRO_API_KEY,
teamId: process.env.MICRO_TEAM_ID,
});
const result = await client.contacts.list({
query: {
select: ['full_name', 'email', 'title'],
filter: [{ labels: { in: ['investor'] } }],
limit: 25,
},
});
console.log(result); // array of { id, properties }
  • Querying — filters, sorting, pagination, and relationship traversal
  • Authentication — keeping your API key secure
  • Errors — handling errors gracefully
  • Objects — full property reference for each object type