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.

AttributeTypeDescription
idstringUnique identifier for the product (e.g., prod_abc123)
slugstring | nullURL-friendly identifier for the product (e.g., my-saas-app)
namestringThe name of the product
descriptionstring | nullAn optional description of the product
stagestringOne of: idea, dev, growth, stable, paused, stopped
prioritystringOne of: P0, P1, P2, P3, P4. P0 is highest priority.
typestringOne of: app, web, pc, api, other
tagsstring[]Product tags: saas, tool, library, plugin, other
websitestring | nullProduct website URL
defaultCurrencystringDefault currency code (e.g., USD)
createdAtstringISO 8601 timestamp of creation
updatedAtstringISO 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

ParameterTypeRequiredDescription
stagestringNoFilter 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"
  }
}