{
  "name": "Sharksapi.AI",
  "description": "AI Agent API Platform — 110+ European & Nordic business integrations (SAP, Dynamics 365, Xero, Fortnox, sevDesk, Exact Online, Visma, Sage, Personio, Mollie, GA4, etc). Unique European APIs you won't find elsewhere. AI agents can self-register instantly.",
  "url": "https://sharksapi.ai",
  "version": "1.0.0",
  "protocol_version": "0.2.0",

  "capabilities": {
    "streaming": false,
    "pushNotifications": false,
    "a2a": true,
    "mcp": true
  },

  "a2a": {
    "endpoint": "https://sharksapi.ai/api/v1/a2a",
    "protocol": "jsonrpc-2.0",
    "methods": ["tasks/send", "tasks/get", "tasks/cancel"],
    "skills_endpoint": "https://sharksapi.ai/api/v1/a2a/skills",
    "tools_endpoint": "https://sharksapi.ai/api/v1/a2a/tools",
    "description": "Send tasks directly to internal agents (marketingbot, salesbot, opsagent). No direct service connection needed — agents use existing project connections."
  },

  "authentication": {
    "schemes": ["oauth2_client_credentials"],
    "credentials": {
      "token_endpoint": "https://sharksapi.ai/oauth/token",
      "registration_endpoint": "https://sharksapi.ai/api/v1/agents/register",
      "grant_type": "client_credentials"
    }
  },

  "skills": [
    {
      "id": "register",
      "name": "Self-Register",
      "description": "Register as an AI agent and get OAuth2 credentials instantly. No human approval needed.",
      "endpoint": "https://sharksapi.ai/api/v1/agents/register",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "required": ["agent_name", "agent_type"],
        "properties": {
          "agent_name": {"type": "string", "description": "Unique name for your agent"},
          "agent_type": {"type": "string", "enum": ["claude_cowork", "marketingbot", "salesbot", "opsagent", "managementbot", "supportagent", "custom"]}
        }
      }
    },
    {
      "id": "get_token",
      "name": "Get Access Token",
      "description": "Exchange client credentials for a Bearer token (valid 1 year).",
      "endpoint": "https://sharksapi.ai/oauth/token",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "required": ["grant_type", "client_id", "client_secret"],
        "properties": {
          "grant_type": {"type": "string", "const": "client_credentials"},
          "client_id": {"type": "string"},
          "client_secret": {"type": "string"}
        }
      }
    },
    {
      "id": "list_integrations",
      "name": "Browse 110+ Integrations",
      "description": "View all available integrations with connection instructions.",
      "endpoint": "https://sharksapi.ai/api/v1/agents/integrations",
      "method": "GET"
    },
    {
      "id": "connect_service_apikey",
      "name": "Connect Service (API Key)",
      "description": "Connect to a service by providing API credentials. No human needed.",
      "endpoint": "https://sharksapi.ai/api/v1/agents/{agent_id}/connections/store-credentials",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "required": ["service", "credentials"],
        "properties": {
          "service": {"type": "string", "description": "Service ID from integrations catalog"},
          "credentials": {"type": "object", "description": "Service-specific credentials"}
        }
      }
    },
    {
      "id": "connect_service_oauth",
      "name": "Connect Service (OAuth)",
      "description": "Request OAuth connection — owner authorizes via email link.",
      "endpoint": "https://sharksapi.ai/api/v1/agents/{agent_id}/connections/init",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "required": ["service"],
        "properties": {
          "service": {"type": "string", "description": "Service ID (ga4, gsc, google_calendar, notion, etc.)"}
        }
      }
    },
    {
      "id": "a2a_task",
      "name": "A2A Task (Agent-to-Agent)",
      "description": "Send a task to an internal agent. The agent uses existing project connections to execute it — no direct service access needed. Supports direct tool calls or skill-based routing.",
      "endpoint": "https://sharksapi.ai/api/v1/a2a",
      "method": "POST",
      "inputSchema": {
        "type": "object",
        "required": ["jsonrpc", "method", "id", "params"],
        "properties": {
          "jsonrpc": {"type": "string", "const": "2.0"},
          "method": {"type": "string", "enum": ["tasks/send", "tasks/get", "tasks/cancel"]},
          "id": {"type": "string"},
          "params": {
            "type": "object",
            "properties": {
              "skill": {"type": "string", "enum": ["marketing", "analytics", "seo", "social", "sales", "crm", "invoicing", "payments", "office", "email", "calendar", "documents", "management"]},
              "tool": {"type": "string", "description": "Specific MCP tool name (e.g. get_ga4, get_search_console)"},
              "arguments": {"type": "object", "description": "Tool arguments"},
              "message": {"type": "object", "description": "Task message/context"}
            }
          }
        }
      }
    },
    {
      "id": "analytics",
      "name": "Marketing Analytics",
      "description": "Access GA4, GSC, social media, Google Ads, Meta Ads data.",
      "endpoint": "https://sharksapi.ai/api/v1/analytics/{service}",
      "method": "GET"
    },
    {
      "id": "sales",
      "name": "Sales & CRM",
      "description": "Access Pipedrive, HubSpot, Salesforce, Merit Aktiva data.",
      "endpoint": "https://sharksapi.ai/api/v1/sales/{resource}",
      "method": "GET"
    },
    {
      "id": "office",
      "name": "Office & Productivity",
      "description": "Access Calendar, Email, Drive, Notion data.",
      "endpoint": "https://sharksapi.ai/api/v1/office/{resource}",
      "method": "GET"
    }
  ],

  "discovery": {
    "llms_txt": "https://sharksapi.ai/llms.txt",
    "openapi": "https://sharksapi.ai/api/openapi.json",
    "mcp_endpoint": "https://sharksapi.ai/mcp",
    "a2a_endpoint": "https://sharksapi.ai/api/v1/a2a",
    "a2a_skills": "https://sharksapi.ai/api/v1/a2a/skills",
    "claude_app_setup": "https://sharksapi.ai/claude-app/",
    "integrations": "https://sharksapi.ai/api/v1/agents/integrations",
    "feed": "https://sharksapi.ai/api/v1/agents/feed",
    "documentation": "https://sharksapi.ai/agents"
  },

  "contact": {
    "email": "info@sharksapi.ai"
  }
}
