# Last Price PCN Functions API

**Canonical:** https://apis.io/apis/last-price-ai/last-price-ai-pcn-functions-api/  
**Provider:** Last Price — https://apis.io/providers/last-price-ai/  
**Base URL:** https://api.last-price.ai  
**Documentation:** https://last-price.ai/api-docs

Last Price PCN Functions API is one of 49 APIs that [Last Price](https://apis.io/providers/last-price-ai/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include PCN Functions. The published artifact set on APIs.io includes an OpenAPI specification.

Pricing function registry — register, list, update, and delete pricing functions

## Operations (23)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/vendor-adapters` | List vendor adapters |
| GET | `/api/functions` | List pricing functions |
| POST | `/api/functions` | Register a pricing function |
| GET | `/api/functions/catalog` | Browse the public function catalog |
| GET | `/api/functions/{id}` | Get a pricing function |
| PATCH | `/api/functions/{id}` | Update a pricing function |
| DELETE | `/api/functions/{id}` | Delete a pricing function |
| POST | `/api/functions/{id}/test` | Test a pricing function with sample data |
| GET | `/api/functions/{id}/review` | Read a function's marketplace review |
| POST | `/api/functions/{id}/review` | Run a function's marketplace review now |
| GET | `/api/functions/{id}/health` | Read a function's endpoint health probes |
| POST | `/api/functions/{id}/health` | Probe a function's endpoint now |
| GET | `/api/hosted-models` | List hosted pricing models, and whether they are switched on |
| POST | `/api/hosted-models` | Create a hosted pricing model |
| GET | `/api/hosted-models/{modelId}` | Read a hosted model and its versions |
| PATCH | `/api/hosted-models/{modelId}` | Change a hosted model's description or nightly retraining |
| DELETE | `/api/hosted-models/{modelId}` | Delete a hosted model and every version |
| POST | `/api/hosted-models/{modelId}/versions` | Upload an ONNX model as a new version |
| GET | `/api/hosted-models/{modelId}/versions/{version}` | Download a version's ONNX file |
| POST | `/api/hosted-models/{modelId}/train` | Train a new version of a demand model on the workspace's outcomes |
| POST | `/api/hosted-models/{modelId}/promote` | Make a version the active one |
| POST | `/api/hosted-models/{modelId}/rollback` | Make the previously active version active again |
| POST | `/api/hosted-models/{modelId}/predict` | Try a version on a request context |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/last-price-ai/openapi/last-price-ai-pcn-functions-api-openapi.yml

## Other Last Price APIs (12)

- [Last Price Agents API](https://apis.io/apis/last-price-ai/last-price-ai-agents-api/)
- [Last Price API Keys API](https://apis.io/apis/last-price-ai/last-price-ai-api-keys-api/)
- [Last Price Approvals API](https://apis.io/apis/last-price-ai/last-price-ai-approvals-api/)
- [Last Price Audit API](https://apis.io/apis/last-price-ai/last-price-ai-audit-api/)
- [Last Price Auth API](https://apis.io/apis/last-price-ai/last-price-ai-auth-api/)
- [Last Price Authentication API](https://apis.io/apis/last-price-ai/last-price-ai-authentication-api/)
- [Last Price Billing API](https://apis.io/apis/last-price-ai/last-price-ai-billing-api/)
- [Last Price Blocks API](https://apis.io/apis/last-price-ai/last-price-ai-blocks-api/)
- [Last Price Commerce API](https://apis.io/apis/last-price-ai/last-price-ai-commerce-api/)
- [Last Price Compute API](https://apis.io/apis/last-price-ai/last-price-ai-compute-api/)
- [Last Price Contacts API](https://apis.io/apis/last-price-ai/last-price-ai-contacts-api/)
- [Last Price Costs API](https://apis.io/apis/last-price-ai/last-price-ai-costs-api/)

## Tags

PCN Functions

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/last-price-ai` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/last-price-ai/last-price-ai-pcn-functions-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/last-price-ai/.
