Every API here is available over the APIs.io API and to AI agents over MCP.
{
"openapi": "3.1.0",
"info": {
"title": "BirdSift API",
"version": "1.0.0",
"description": "BirdSift API v1 \u2014 list saved leads, run bounded local-business searches, and draft outreach. Human-readable reference: https://www.birdsift.com/docs/api. Agent instructions: https://www.birdsift.com/agent-instructions. Rate limit: 60 requests/minute per API key. Searches and outreach drafts consume workspace credits.",
"contact": {
"name": "BirdSift",
"url": "https://www.birdsift.com/developers"
}
},
"servers": [
{
"url": "https://api.birdsift.com"
}
],
"externalDocs": {
"description": "BirdSift API reference",
"url": "https://www.birdsift.com/docs/api"
},
"tags": [
{
"name": "docs",
"description": "Public reference material"
},
{
"name": "auth",
"description": "OAuth 2.0 discovery metadata"
},
{
"name": "leads",
"description": "Saved workspace leads"
},
{
"name": "searches",
"description": "Bounded lead discovery"
},
{
"name": "credits",
"description": "Workspace credit balance"
},
{
"name": "mcp",
"description": "Model Context Protocol server"
}
],
"paths": {
"/openapi.json": {
"get": {
"tags": [
"docs"
],
"summary": "OpenAPI specification",
"description": "Returns this OpenAPI 3.1 document for codegen and agent function calling.",
"operationId": "getOpenApiSpec",
"security": [],
"responses": {
"200": {
"description": "OpenAPI 3.1 JSON document",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/v1/docs": {
"get": {
"tags": [
"docs"
],
"summary": "API reference (markdown)",
"description": "Public markdown API reference. No authentication required \u2014 use to discover endpoints before calling /v1.",
"operationId": "getV1Docs",
"security": [],
"responses": {
"200": {
"description": "Markdown API reference",
"content": {
"text/markdown": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/.well-known/oauth-authorization-server": {
"get": {
"tags": [
"auth"
],
"summary": "OAuth 2.0 authorization server metadata",
"description": "RFC 8414 authorization server metadata for the OAuth 2.0 flow behind /mcp. No authentication required \u2014 fetch this first to discover the authorization, token and dynamic client registration endpoints.",
"operationId": "getOAuthAuthorizationServerMetadata",
"security": [],
"responses": {
"200": {
"description": "RFC 8414 authorization server metadata",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/.well-known/oauth-protected-resource": {
"get": {
"tags": [
"auth"
],
"summary": "OAuth 2.0 protected resource metadata",
"description": "RFC 9728 protected resource metadata naming the authorization server that guards /mcp. No authentication required.",
"operationId": "getOAuthProtectedResourceMetadata",
"security": [],
"responses": {
"200": {
"description": "RFC 9728 protected resource metadata",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/mcp": {
"post": {
"tags": [
"mcp"
],
"summary": "MCP Streamable HTTP endpoint",
"description": "Model Context Protocol endpoint (Streamable HTTP transport) exposing the BirdSift tools for local-business search, saved leads and outreach drafts. Unlike /v1 \u2014 which takes a workspace API key \u2014 this endpoint authenticates with an OAuth 2.0 access token; see /.well-known/oauth-protected-resource. Request and response bodies are JSON-RPC 2.0 messages defined by the MCP specification, not by this document.",
"operationId": "postMcpMessage",
"security": [
{
"OAuth2": [
"email",
"profile"
]
}
],
"requestBody": {
"required": true,
"description": "JSON-RPC 2.0 request as defined by the MCP specification",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
},
"responses": {
"200": {
"description": "JSON-RPC 2.0 response, or an SSE stream when the client accepts one",
"content": {
"application/json": {
"schema": {
"type": "object"
}
},
"text/event-stream": {
"schema": {
"type": "string"
}
}
}
},
"401": {
"description": "Missing or invalid access token. The WWW-Authenticate header carries a `resource_metadata` pointer to /.well-known/oauth-protected-resource/mcp, which is where an MCP client starts OAuth discovery.",
"headers": {
"WWW-Authenticate": {
"description": "RFC 9728 challenge naming the protected resource metadata URL",
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OAuthErrorResponse"
}
}
}
}
}
}
},
"/v1/leads": {
"get": {
"tags": [
"leads"
],
"summary": "List saved leads",
"description": "Returns a cursor-paginated list of leads saved in the authenticated workspace.",
"operationId": "listLeads",
"parameters": [
{
"name": "limit",
"in": "query",
"description": "Page size (1\u2013100)",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 25
}
},
{
"name": "cursor",
"in": "query",
"schema": {
"type": "string"
},
"description": "Opaque cursor from a previous response's next_cursor"
}
],
"responses": {
"200": {
"description": "Lead page",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LeadListResponse"
}
}
}
},
"400": {
"description": "Invalid query",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"OAuthErrorResponse": {
"type": "object",
"required": [
"error"
],
"description": "RFC 6749 \u00a75.2 error object, as returned by the OAuth-guarded /mcp endpoint.",
"properties": {
"error": {
"type": "string",
"description": "OAuth error code, e.g. `invalid_token`"
},
"error_description": {
"type": "string",
"description": "Human-readable error message"
}
}
},
"LeadListResponse": {
"type": "object",
"required": [
"leads",
"next_cursor"
],
"properties": {
"leads": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LeadSummary"
}
},
"next_cursor": {
"type": "string",
"nullable": true,
"description": "Pass as ?cursor= on the next page"
}
}
},
"ErrorResponse": {
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable error code"
},
"message": {
"type": "string",
"description": "Human-readable error message"
}
}
}
}
},
"LeadSummary": {
"type": "object",
"required": [
"id",
"place_id",
"name",
"category",
"address",
"website",
"email",
"outreach_status",
"added_at"
],
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "BirdSift lead UUID"
},
"place_id": {
"type": "string",
"description": "Google Places ID"
},
"name": {
"type": "string"
},
"category": {
"type": "string",
"description": "Business category or trade"
},
"address": {
"type": "string",
"nullable": true
},
"website": {
"type": "string",
"nullable": true
},
"email": {
"type": "string",
"nullable": true
},
"outreach_status": {
"type": "string",
"enum": [
"new",
"contacted",
"replied",
"won",
"lost"
],
"description": "Where the lead sits in the outreach pipeline"
},
"added_at": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}