Developers and agents

Connect your agents and systems to OperationsLens.

The MCP connector lets Claude, or any other AI agent, work in OperationsLens as a member of your team. The REST API lets your own systems read tickets and customers and create new tickets.

01 · MCP connector

For Claude and other AI agents: the MCP connector

A remote MCP server with OAuth sign-in. Connect it to Claude on the web, desktop and mobile, or in Claude Code, or to any MCP client that supports remote servers. The agent signs in as you and acts with exactly your role and company access, under the same rules as the OperationsLens app.

You need an OperationsLens account. Our team opens accounts; if your organization doesn't use OperationsLens yet, contact us.

Server URL

https://app.operationslens.ai/mcp

Connecting Claude

  1. In Claude, open Settings → Connectors. Find OperationsLens in the directory, or add a custom connector with the server URL above.
  2. Sign in with your OperationsLens account and choose the organization to connect.
  3. Choose what Claude may read and what it may change, area by area, and select Allow.
  4. Other MCP clients connect the same way: add the server URL as a remote server and sign in.

Changes and approvals

  • Claude asks for your confirmation before it changes anything, and always before something reaches a person: a reply to a customer, an invitation, an order sent to the ERP.
  • Every change also follows your organization's policy for changes an AI makes. A change may go through at once, be refused, or wait in the OperationsLens inbox for someone to approve it. Claude tells you when a change is pending, not done.
  • A change to that policy itself always waits for a person to approve it in OperationsLens.

Things to ask Claude

  • What's waiting in my inbox today, and what is most urgent?
  • Summarize ticket ACME-AB12CD and draft a reply for me to review.
  • Which tickets have missed their response target this week?
  • Find our knowledge base article on returns and update it with the new 30-day window.
  • Show the order drafts that need a decision, and what is missing from each.
  • Add a company called Acme Nordic and tell me what's left to set up.

Disconnecting

Remove OperationsLens under Settings → Connectors in Claude, or disconnect it in OperationsLens under Your account → Connected apps. That page also shows when each connection was last used, and lets you change its areas.

What you allow

You allow each area separately: read only, or read and change. Claude never gets more than your own role allows, and you can change the areas later without reconnecting.

The tools Claude can use, by the area that allows them. Claude sees only the tools your role permits.

  • Tickets and inbox

    Tickets with their internal notes, customers, chats and inbox cases. Changing means replying to customers, adding notes, and changing status, priority and assignee.

    Tools: whoami, list_members, search_tickets, get_ticket, search_ticket_content, find_similar_resolved_tickets, get_ticket_case, get_ticket_stats, get_ticket_analytics, get_sla_breaches, get_sla_targets, get_inbox, get_work_item, summarize_inbox, get_case_activity, get_recent_activity, get_service_case, search_customers, get_customer, search_canned_responses, find_record, get_record_details, list_conversations, get_conversation_details, get_dashboard_stats, list_ticket_categories, how_do_i, explain_feature, create_ticket, reply_to_customer, add_internal_note, update_ticket, assign_work_item, snooze_work_item, hand_off_ticket_to_agent, close_conversation, create_canned_response, update_canned_response

  • Knowledge base

    Wiki articles and knowledge documents. Changing means writing, publishing and deleting them.

    Tools: search_knowledge_base, search_wiki_pages, get_wiki_page, search_knowledge_documents, list_knowledge_collections, create_wiki_page, update_wiki_page, publish_wiki_page, delete_wiki_page, create_knowledge_document, delete_knowledge_document

  • Orders

    Order and service request drafts, order rules and item data. Changing means deciding drafts and sending orders into your ERP.

    Tools: get_order_case, search_erp_items, get_order_intake_metrics, list_order_rules, get_order_rule_history, decide_order_case, release_order_to_erp

  • Setup

    Companies, team, AI agents and policies. Changing means creating companies, inviting people and changing how things are configured.

    Tools: get_setup_status, list_companies, get_email_connect_link, list_invitations, list_policies, list_agents, get_agent_details, get_agent_analytics, list_workflows, create_company, update_company, invite_member, cancel_invitation, set_member_company_access, update_member_role, create_ticket_category, update_ticket_category, set_sla_targets, update_chatbot_settings, create_agent, update_agent, update_business_agent, update_policy

Good to know

  • Changes have real effects: a reply is emailed to the customer, just as when your team sends it from the app.
  • Text written by customers is marked as customer data in tool results, so the agent can tell it apart from instructions.
  • Up to 120 requests a minute per connection.
  • Claude receives only what the tools return for your requests. OperationsLens keeps a record of each connection (the app, the areas you allowed, when it was last used) and of every change made through it.

Privacy policy · Help with the connector: support@operationslens.ai

02 · REST API

For your systems: the REST API

Server-to-server access for your own systems: read tickets and customers, create tickets, add messages and fetch resolution figures. Requests authenticate with an organization API key.

API keys are issued by our team on request. A key has read access, write access or both, can have an expiry date, and can be limited to one company.

Endpoints

  • GET /api/v1/tickets Read

    List tickets, newest first, optionally filtered by status

  • GET /api/v1/tickets/:id Read

    One ticket with its messages and tags

  • POST /api/v1/tickets Write

    Create a ticket. The customer is found, or created, by email address

  • POST /api/v1/tickets/:id/messages Write

    Add a message or an internal note to a ticket

  • GET /api/v1/customers Read

    List customers, most recently active first

  • GET /api/v1/customers/:id Read

    One customer and their latest tickets

  • GET /api/v1/analytics/resolutions Read

    Resolution figures for a date range

Authentication

Authorization: Bearer sl_live_…

Example: create a ticket

curl -X POST https://app.operationslens.ai/api/v1/tickets \
  -H "Authorization: Bearer $OPERATIONSLENS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject":"Order 4411 arrived damaged","customerEmail":"ana@example.com","content":"Two of six boxes crushed."}'

Good to know

  • Up to 100 requests a minute per key. Every response reports the remaining quota in X-RateLimit-* headers.
  • A successful response returns the result in data, with paging details in meta on lists. An error returns error and message.
  • There is no idempotency key: retrying a request that creates a ticket creates a second ticket.

What's available today

The MCP connector covers tickets and the inbox, the knowledge base, Order Intake drafts and setup. The REST API covers tickets and customers: the Customer Desk side of OperationsLens.

We're developing them all the time. If you'd like to connect something that isn't here yet, such as Invoice Check data, tell us: your feedback shapes what we build next.

Building an integration, need an API key, or missing something?

Contact us