Use with AI
MyOpcs does not provide an SDK. Instead, copy our AI-optimized API docs and let your AI assistant write the integration code for you.
Why no SDK?
AI coding assistants (Claude, ChatGPT, Cursor, Copilot, etc.) are remarkably good at generating API integration code from documentation. Rather than maintaining SDKs in multiple languages, we provide AI-optimized docs that you can feed directly to your preferred AI tool. The AI generates code in your language, your framework, your style.
Works with any AI tool
How to use
Follow these three steps to integrate MyOpcs into your project:
Step 1: Copy the API docs
Navigate to any API Reference page (e.g. Products, Tasks, Metrics) and click the Copy as Markdown button in the page header.
The copied content includes everything your AI needs: authentication instructions, endpoint details, request/response examples, and error handling. All in a single copy.
Step 2: Paste into your AI tool
Open your AI coding assistant and paste the copied Markdown along with a prompt describing what you want to build.
Step 3: Replace the API key
The docs use YOUR_API_KEY as a placeholder. Make sure to replace it with your real API key from Dashboard → Settings → API Keys. Use environment variables to store it securely.
Example prompts
Here are some prompts you can use with the copied docs:
Generate a typed SDK
Here are the MyOpcs API docs:
[paste the copied Markdown here]
Generate a lightweight TypeScript SDK class that:
1. Initializes with an API key and handles Bearer auth automatically
2. Has one method per endpoint (e.g., listProducts, getProduct, createTask, getMetrics)
3. Returns typed responses (infer types from the docs)
4. Throws on errors with the error type and message
5. Supports pagination via page/pageSize params
Keep it as a single file, no dependencies. I'll use it in a Next.js project.Basic integration
I want to integrate MyOpcs API into my project. Here are the API docs:
[paste the copied Markdown here]
Please write a function that:
1. Lists all my products
2. Fetches monthly revenue for each product
3. Returns the data as a typed objectTrack custom metrics
Here are the MyOpcs Metrics API docs:
[paste the copied Metrics Markdown here]
I run a SaaS app. I want to track these custom metrics via the API:
- Total registered users (updated daily)
- Monthly active users (MAU)
- Free-to-paid conversion rate
Write me:
1. A function to submit a metric data point (name, value, date)
2. A function to query metrics by date range
3. A scheduled job that runs nightly, queries my DB for user stats, and pushes them to MyOpcsTask management integration
Here are the MyOpcs Tasks API docs:
[paste the copied Tasks Markdown here]
I have a Next.js app. Write me:
1. A function to create a task linked to a product
2. A function to list tasks filtered by status (todo/in-progress/done)
3. A React component that shows a kanban-style task board
grouped by status, with drag-to-reorder (just UI state, no API needed for ordering)Automated revenue reporting
Here are the MyOpcs API docs:
[paste the copied Finance + Products Markdown here]
Build a Node.js script that runs weekly and:
1. Lists all my products
2. Fetches this month's revenue and costs for each product
3. Calculates profit margin per product
4. Posts a summary to my Slack webhook with a formatted message
Use environment variables for the API key and Slack webhook URL.Feedback collection widget
Here are the MyOpcs Feedback API docs:
[paste the copied Feedback Markdown here]
Create a lightweight embeddable feedback widget:
1. A React component with a small floating button ("Feedback")
2. On click, opens a modal with: title, description, category dropdown (bug/feature/other)
3. On submit, calls the MyOpcs API to create a feedback entry
4. Shows a success toast and resets the form
5. The component should accept a productId propTips for best results
Copy only what you need
Each API module page is self-contained. If you only need Tasks, copy just the Tasks page.
Specify your tech stack
Tell the AI your language, framework, and any libraries you prefer (e.g., "Use Next.js Server Actions" or "Use Python with httpx").
Mention error handling
The docs include all error codes. Ask the AI to handle specific errors (e.g., rate limiting, 404s) if relevant to your use case.
Auth is already included
Each copy contains the auth header format and base URL, so you don't need to copy the Authentication page separately.
Need multiple APIs?