Skip to content
Go to Micro
Using the API

Errors

Error codes and how to handle them

The Micro API uses standard HTTP status codes. Errors return a JSON body with a message field describing what went wrong.

{
"message": "Invalid filter: unknown property slug 'emial'"
}
CodeNameWhen it happens
400Bad RequestMalformed request body, invalid filter operator, unknown property slug, missing required field
401UnauthorizedMissing x-api-key header
403ForbiddenAPI key is invalid, revoked, or doesn’t have access to the requested team
404Not FoundObject ID doesn’t exist or isn’t accessible
429Too Many RequestsRate limit exceeded — see Rate Limits
500Internal Server ErrorSomething went wrong on our end
const res = await fetch(`https://api.micro.so/v2/prism/query/${teamId}/contact`, {
method: 'POST',
headers: { 'x-api-key': apiKey, 'Content-Type': 'application/json' },
body: JSON.stringify({ query: { select: ['full_name'] } }),
});
if (!res.ok) {
const error = await res.json();
throw new Error(`Micro API error ${res.status}: ${error.message}`);
}
  • Unknown property slug — check the slug against the Objects reference
  • Invalid operator — filter operators are case-sensitive (= not ==)
  • Missing select — every query requires at least one property in select
  • Invalid objectType — must be one of contact, organization, identity, deal, action, event, document