Products API
Retrieve product information with the Products API. Products are the core entity in MyOpcs.
Endpoints
Product Object
The product object represents a single product in MyOpcs.
| Attribute | Type | Description |
|---|---|---|
id | string | Unique identifier for the product (e.g., prod_abc123) |
slug | string | null | URL-friendly identifier for the product (e.g., my-saas-app) |
name | string | The name of the product |
description | string | null | An optional description of the product |
stage | string | One of: idea, dev, growth, stable, paused, stopped |
priority | string | One of: P0, P1, P2, P3, P4. P0 is highest priority. |
type | string | One of: app, web, pc, api, other |
tags | string[] | Product tags: saas, tool, library, plugin, other |
website | string | null | Product website URL |
defaultCurrency | string | Default currency code (e.g., USD) |
createdAt | string | ISO 8601 timestamp of creation |
updatedAt | string | ISO 8601 timestamp of last update |
GET
List Products
Returns all your products.
Request
Bash
curl https://api.myopcs.com/api/v1/products \
-H "Authorization: Bearer YOUR_API_KEY"Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
stage | string | No | Filter by stage: idea, dev, growth, stable, paused, stopped |
Response
{}JSON
{
"data": [
{
"id": "prod_abc123",
"slug": "my-saas-app",
"name": "My SaaS App",
"description": "A great productivity tool",
"stage": "growth",
"priority": "P1",
"type": "web",
"tags": ["saas", "tool"],
"website": "https://mysaasapp.com",
"defaultCurrency": "USD",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z"
}
]
}GET
Retrieve a Product
Retrieves the details of an existing product. You can use either the product ID or slug as the identifier.
Request by ID
Bash
curl https://api.myopcs.com/api/v1/products/prod_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"Request by Slug
Bash
curl https://api.myopcs.com/api/v1/products/my-saas-app \
-H "Authorization: Bearer YOUR_API_KEY"Response
{}JSON
{
"data": {
"id": "prod_abc123",
"slug": "my-saas-app",
"name": "My SaaS App",
"description": "A great productivity tool",
"stage": "growth",
"priority": "P1",
"type": "web",
"tags": ["saas", "tool"],
"website": "https://mysaasapp.com",
"defaultCurrency": "USD",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z"
}
}