ProductIndex Org API
The Org API from ProductIndex — 4 operation(s) for org.
The Org API from ProductIndex — 4 operation(s) for org.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/productindex-ai:productindex-ai-org-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Productindex Ai Org API
version: 1.0.0
contact:
name: ProductIndex
url: https://productindex.ai/contact
description: 'Operations tagged Org across 2 of this provider''s published API definitions: productindex-ai-mcp.json, productindex-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://productindex.ai
description: Production
security: []
tags:
- name: Org
paths:
/api/org/register/:
parameters:
- $ref: '#/components/parameters/ApiVersion'
post:
operationId: registerOrg
summary: Create a new producer organization
description: Creates a new organization and adds the caller as its `owner`. Session-only — there is no bearer-token path for this route (a Shopify plugin token can't create an org, since the org doesn't exist yet). If the org's `domain` matches the caller's verified email domain (and isn't a freemail domain), the org is auto-verified via `email_domain` and `verification_status` is returned as `verified` instead of `pending`.
security:
- producerSession: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- org_type
properties:
name:
type: string
maxLength: 255
description: Organization name.
org_type:
type: string
enum:
- manufacturer
- retailer
- distributor
domain:
type: string
description: Bare domain, e.g. `example.com` (scheme/path stripped if present).
website_url:
type: string
format: uri
shopify_shop:
type: string
responses:
'201':
description: Organization created.
content:
application/json:
schema:
type: object
required:
- org_id
- verification_status
- skipped_verification
properties:
org_id:
type: string
verification_status:
type: string
enum:
- pending
- verified
skipped_verification:
type: boolean
'400':
description: Missing/invalid `name` (required, ≤ 255 chars), invalid `org_type`, malformed `domain`, or malformed `website_url`.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: No signed-in session.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Caller's email is not verified (`EMAIL_UNVERIFIED_CODE`).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Database error creating the organization or updating the user's account type.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Org
servers:
- url: https://productindex.ai
description: Production
/api/org/register-agent-card/:
parameters:
- $ref: '#/components/parameters/ApiVersion'
post:
operationId: registerAgentCard
summary: Register a self-hosted A2A agent card for RFQ automation
description: Registers (or replaces) the org's self-hosted agent card URL for receiving RFQ/pricing requests. Requires the org to already be domain-verified, the card URL's hostname to match (or be a subdomain of) that verified domain, and the fetched card to declare a `respond-to-rfq` skill. Includes an SSRF guard (`resolvesToPrivateIp`) before ever fetching the card URL. Session callers must be an org `owner` or `admin`; bearer-token (Shopify plugin) callers are exempt from that role gate.
security:
- producerSession: []
- producerBearerToken: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- agent_card_url
properties:
agent_card_url:
type: string
format: uri
description: Must be https and on (or a subdomain of) the org's verified domain.
auth_type:
type: string
enum:
- none
- bearer
- hmac
default: none
bearer_token:
type: string
minLength: 16
description: Required when auth_type is "bearer". Stored encrypted.
hmac_secret:
type: string
minLength: 16
description: Required when auth_type is "hmac". Stored encrypted.
responses:
'200':
description: Agent card registered.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
validated:
type: boolean
'400':
description: Missing `agent_card_url`, invalid URL, invalid `auth_type`, or `bearer_token`/`hmac_secret` shorter than 16 characters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: No valid session or bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Session caller isn't an org owner/admin, the org's verification_status isn't `verified`, or the card URL's hostname doesn't match the org's verified domain (`domain_mismatch`).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Organization not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Agent card URL resolves to a private IP (SSRF guard), the fetch failed or returned a non-2xx status, or the fetched card doesn't declare a `respond-to-rfq` skill.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Org
servers:
- url: https://productindex.ai
description: Production
/api/org/agent-integration/:
parameters:
- $ref: '#/components/parameters/ApiVersion'
get:
operationId: getAgentIntegration
summary: Get the org's RFQ agent-integration configuration
description: Returns the org's current Managed/self-hosted agent configuration. `reserve_price_usd` is always stripped from `managed_rules` before it's returned, regardless of caller.
security:
- producerSession: []
- producerBearerToken: []
responses:
'200':
description: Current agent-integration configuration.
content:
application/json:
schema:
type: object
properties:
is_managed:
type: boolean
managed_rules:
type:
- object
- 'null'
description: Never includes reserve_price_usd.
agent_card_url:
type:
- string
- 'null'
auth_type:
type: string
enum:
- none
- bearer
- hmac
status:
type: string
enum:
- pending
- active
- unreachable
last_response_ms:
type:
- number
- 'null'
last_checked_at:
type:
- string
- 'null'
format: date-time
'401':
description: No valid session or bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Org
patch:
operationId: updateAgentIntegration
summary: Update the org's RFQ agent-integration mode
description: Toggles `is_managed` (ProductIndex-managed pricing/RFQ responses vs. self-hosted agent card) and updates `managed_rules`. To set or clear `agent_card_url` to a real URL, use `POST /api/org/register-agent-card/` instead — this endpoint only accepts `null` here (to clear it). Body validation runs before the owner/admin role check, so a malformed body from a non-owner/admin still returns 400 rather than 403.
security:
- producerSession: []
- producerBearerToken: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- is_managed
properties:
is_managed:
type: boolean
managed_rules:
type:
- object
- 'null'
properties:
volume_discounts:
type: array
description: '`volume_discounts` is the only org-level pricing rule this endpoint validates (checked for array type). Per-product rules (max_discount_pct, lead_time_days, return_policy_days) belong on the product in the catalog, not here — but note the server does not currently reject them if included in this body; any field other than `reserve_price_usd`/`min_margin_pct` (both always stripped before storage) is passed through and persisted as-is.'
agent_card_url:
type: 'null'
description: Only `null` is accepted (clears the agent card). Pass a string via POST /api/org/register-agent-card/ instead.
responses:
'200':
description: Updated.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
'400':
description: '`is_managed` missing/not a boolean, or `managed_rules.volume_discounts` present but not an array.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: No valid session or bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Session caller isn't an org owner/admin.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Org
servers:
- url: https://productindex.ai
description: Production
/api/org/ucp-check/:
parameters:
- $ref: '#/components/parameters/ApiVersion'
post:
operationId: ucpCheck
summary: Re-check UCP (Universal Commerce Protocol) support for the org's domain
description: Probes the org's verified domain (falling back to its Shopify shop subdomain) for UCP discovery support and persists the result. Session-only — there is no bearer-token path. Requires the org's `domain` to already be `verification_status = 'verified'` before it will fetch it, since `domain` is owner-settable with no DNS-ownership check at write time and this endpoint would otherwise be usable as an SSRF proxy against an unverified value. `shopify_shop` is exempt from that check since it's set server-side via OAuth, not owner-editable.
security:
- producerSession: []
responses:
'200':
description: Check complete (whether or not UCP support was found).
content:
application/json:
schema:
type: object
properties:
ucp_supported:
type: boolean
profile_url:
type:
- string
- 'null'
checkout_endpoint:
type:
- string
- 'null'
'401':
description: No signed-in session.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Caller isn't a producer account, or the org's `domain` is set but not yet `verified`.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Org has neither `domain` nor `shopify_shop` configured.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Org
servers:
- url: https://productindex.ai
description: Production
components:
parameters:
ApiVersion:
name: ProductIndex-API-Version
in: header
required: false
description: 'API version to use. Optional: the only version is 1, requests without this header get version 1, and any other value is rejected with a 400 (code unsupported_api_version). See the versioning policy in info.description.'
schema:
type: string
enum:
- '1'
default: '1'
schemas:
ErrorResponse:
type: object
required:
- error
properties:
error:
type: string
additionalProperties: true
description: Common error envelope across every route in this spec. Some validation branches add extra fields alongside `error` (e.g. `field`, `max`, `valid`, `code`) — see each operation's per-status description for the exact fields a given failure mode adds.
securitySchemes:
integrationSignature:
type: http
scheme: signature
description: 'RFC 9421 HTTP Message Signature with Ed25519, ProductIndex profile (full recipe and a tested Node implementation: https://productindex.ai/docs/developers#dev-sales-reporting). Headers: `Content-Digest: sha-256=:<base64 SHA-256 of the body>:`, `Signature-Input: pi=("@method" "@authority" "@path" "@query" "content-digest");created=<unix>;expires=<unix>;nonce="<22 base64url chars>";keyid="<kid>";alg="ed25519";tag="productindex-integration"`, `Signature: pi=:<base64 signature>:`. `@authority` is productindex.ai, `@path` has no trailing slash, `expires` is at most 60 s after `created`, and each nonce is accepted once. A producer''s own key (kid `custom_…`, created in Producer Dashboard → Sales reporting; ProductIndex stores only the public key) may call only the two /api/attribution/ postbacks, and only for its own organization''s `store`.'
producerSession:
type: apiKey
in: cookie
name: authjs.session-token
description: Browser session cookie from signing in at /auth/signin, for a producer account (accountType='producer'). Served as "__Secure-authjs.session-token" over HTTPS. Not directly obtainable by a pure API/agent client — this auth mode is for the dashboard's own fetch() calls and the human-driven signup/verification flow, not for third-party integrations. Third-party/agent integrations should use producerBearerToken where the route supports it.
producerBearerToken:
type: http
scheme: bearer
description: Shopify-plugin producer link token (issued via the Shopify OAuth/link flow, validated with validateShopifyLinkToken). Only accepted on routes built on resolveProducerAuth — not every producer route supports this; register.ts and ucp-check.ts are session-only.
x-refined-from:
- productindex-ai-mcp.json
- productindex-ai-openapi.json