Skip to main content
Get an API key, make your first call, and create a real product — in three surfaces (cURL, SDK, MCP) and under five minutes. The Crevio API is a REST API. Every request is authenticated with a bearer token and hits https://api.crevio.co/v1. The official @crevio/sdk wraps it with types and retries, and the same operations are exposed to AI agents over MCP.

Get your key and make a call

1

Create an API key

In your dashboard, go to Settings → Developer and click New API token. Give it a descriptive name. The token is shown once — copy it and store it in an environment variable.
Treat tokens like passwords. Never commit them or ship them in client-side code. A token acts on behalf of your account.
2

Make your first call

The friendliest first call is GET /status — a lightweight health check that confirms your token works and tells you which account you’re authenticated as.
A successful response looks like:
3

List your products

Now hit a real resource. List endpoints return a { object: "list", data: [...] } envelope.

Create your first product the right way

Publishing a product takes three calls in order. A product can’t go live without at least one price variant, so creating one with status: "active" in a single call fails with 422. Do it like this:
1

Create the product as a draft

Parameters go at the top level (not wrapped in a product key).
The response includes the new id, e.g. "id": "prod_abc123".
2

Add a price variant

Reference the product by its bare association name (product, not product_id) and its prefixed id. Money is in integer cents with a lowercase ISO currency.
amount: 4900 is $49.00. The response id looks like "id": "price_xyz789".
3

Publish the product

Now that a price exists, flip the product to active with a PATCH.
Prefer to skip the choreography? Ask the agent over MCP: “Create a one-time $49 course called Intro to Watercolor and publish it.” It runs the same three steps for you.

Next steps

Conventions

The full set of request and response rules — read before building.

Errors

Decode every status code and fix it fast.

TypeScript SDK

Type-safe access with automatic retries.

Usage & billing

How metered pay-per-call credits work.