← Back to Openpeptide

API Documentation

Four endpoints, zero auth. All responses are JSON.

Base URL

https://openpeptides.ai

Endpoints

GET /api/list_products

Returns all available products. No parameters required.

Response: Array of product objects.

FieldTypeDescription
idintegerProduct ID
compound_namestringName of the compound
quantitystringPackage quantity
pricenumberPrice in USD
supplierstringSupplier name
coa_linksstring[]Certificate of analysis URLs
total_quantitystringTotal quantity value
total_quantity_unitstringUnit (mg, ml, etc.)
ship_timeintegerEstimated shipping days
descriptionstringProduct description
cas_numberstringCAS registry number
chemical_formulastringChemical formula
molar_weightstringMolar weight
vendor_addrstringVendor Ethereum address

Example:

curl https://openpeptides.ai/api/list_products
GET /api/list_best_products

Returns best-priced products filtered by cheapest supplier with a certificate of analysis. Same response schema as /api/list_products. Prefer this endpoint for most use cases.

curl https://openpeptides.ai/api/list_best_products
POST /api/order_product

Place an order. Returns an ETH deposit address and quote.

Request body (JSON):

FieldTypeRequiredDescription
product_idstringYesThe product id as a string
shipping_address.namestringYesRecipient full name
shipping_address.addressstringYesFull street address including city, state, postal code
shipping_address.countrystringYesCountry name or code
shipping_address.emailstringYesContact email
shipping_address.phonestringYesContact phone with country code

Response:

FieldTypeDescription
order_idstringUnique order identifier (use for status polling)
deposit_addressstringEthereum address to send payment to
quotenumberAmount of ETH required
currencystringAlways "eth"

Example:

curl -X POST https://openpeptides.ai/api/order_product \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": "42",
    "shipping_address": {
      "name": "Jane Doe",
      "address": "123 Market St, San Francisco, CA 94105",
      "country": "US",
      "email": "jane@example.com",
      "phone": "+14155551234"
    }
  }'
GET /api/check_order/{order_id}

Check the status of an order.

Response:

FieldTypeDescription
order_idstringThe order ID
statusstringOne of: awaiting_funds, submitting_order, order_submitted, failed
messagestringHuman-readable status message
trx_hashstring|nullEthereum transaction hash (once submitted)
errorstring|nullError details (if failed)
curl https://openpeptides.ai/api/check_order/0x1234...abcd

Workflow

  1. Call GET /api/list_best_products to browse available compounds.
  2. Call POST /api/order_product with the product ID and shipping address.
  3. Send the quoted ETH amount to the deposit address.
  4. Poll GET /api/check_order/{order_id} every 15-30 seconds until the status reaches order_submitted or failed.

AI Agent Integration

Give any AI agent full API access by pasting one line into its context:

curl -s https://openpeptides.ai/skill.md

Works with Claude, GPT, Gemini, or any agent that supports tool use. The skill.md file contains a complete prompt with endpoint descriptions and workflow instructions.