Your first agent over the API in 5 minutes
From zero to an AI agent's answer over the API with curl. Create your account, get your API key, check it with GET /me, list your Mets and run one.
By the end of this guide you have the answer of an AI agent (a Met) that you ran over the API from your terminal. You don't need to install anything: curl is enough. If you have jq, responses are easier to read, but you don't need it.
The whole path is five steps plus an optional one:
- Create your account.
- Get your API key.
- Check it with
GET /me. - List your Mets.
- Run one and read the result.
- (Optional) Receive an event when a run finishes.
If you would rather see it without a terminal, the same Met answers WhatsApp on its own with autopilot: WhatsApp AI agent.
1. Create your account
Create your account self-serve. Every new account starts with a 7-day trial and 5 USD of Energy, no card required, and the trial includes API access. Signing up creates your workspace, and it comes with its team of Mets ready, so the list in step 4 is not empty.
2. Get your API key
In the Meteor dashboard: Settings → Developers → Create API key.
- Environment: test. The key starts with
met_test_: your runs don't debit Energy and external effects (sending a WhatsApp message, running an integration) are blocked. It is not an isolated sandbox: it reads and writes your real workspace. See what test mode does and does not do. - Scopes:
agents:read(list Mets),runs:execute(run them) andruns:read(read a run again).GET /meneeds nothing: every key can ask who it is.
The key is shown only once. Keep it in an environment variable, never in your code:
export MET_API_KEY=met_test_your_key
3. Check the key with GET /me
curl https://api.met.meteor.com.co/api/v1/me \
-H "Authorization: Bearer $MET_API_KEY"
Every successful response comes inside an envelope, and the resource is in data:
{
"success": true,
"data": {
"object": "identity",
"livemode": false,
"api_key": {
"id": "key_01HXYZ",
"object": "api_key",
"owner_type": "workspace",
"env": "test",
"scopes": ["agents:read", "runs:execute", "runs:read"],
"rate_limit_rpm": 120,
"monthly_quota": null
},
"workspace": { "object": "workspace", "id": 7, "slug": "acme" },
"partner": null
}
}
Three things to look at:
workspace.idis the number that goes in the paths of the next steps. Save it:
export MET_WORKSPACE_ID=7
livemode: falseconfirms you are in test mode.api_key.scopesis the list a403 missing_scopeis checked against. If one is missing, create another key with that scope.
If you get a 401, the key was copied wrong or has been revoked. The other cases are in Errors and idempotency.
4. List your Mets
curl https://api.met.meteor.com.co/api/v1/workspaces/$MET_WORKSPACE_ID/agents \
-H "Authorization: Bearer $MET_API_KEY"
data is the list of Mets in the workspace. For each one you need id, name (what you call it by), title and mission (what it is for). active: false means it is paused. With jq, the list boils down to:
curl -s https://api.met.meteor.com.co/api/v1/workspaces/$MET_WORKSPACE_ID/agents \
-H "Authorization: Bearer $MET_API_KEY" | jq '.data[] | {id, name, title, active}'
Pick one and save its name:
export MET_NAME="Name of the Met"
5. Run it and read the result
curl -X POST https://api.met.meteor.com.co/api/v1/workspaces/$MET_WORKSPACE_ID/runs \
-H "Authorization: Bearer $MET_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"met\":\"$MET_NAME\",\"input\":\"Introduce yourself in two sentences: who you are and what you help with.\"}"
Without stream, the call waits for the Met to finish and returns the complete run:
| Field | What it is |
|---|---|
id | The run id, prefixed with run_. Use it to read the run again. |
status | completed if it finished well, failed if not. |
output | The Met's answer. null if the run failed. |
error | Why it failed, when status is failed. |
met | Which Met handled it. |
livemode | false with a met_test_ key: no Energy was debited. |
To read it again later, with the id you got back:
curl https://api.met.meteor.com.co/api/v1/runs/run_01HXYZ \
-H "Authorization: Bearer $MET_API_KEY"
If you leave out met, the workspace's main Met reads the request and decides who answers. If you already know which Met should answer, pass it: the run goes straight to it. Memory across runs, attachments and live responses are in Run Mets and Streaming.
The same with the SDK
import Met from '@meteor.ia/sdk'; // npm install @meteor.ia/sdk
const met = new Met(process.env.MET_API_KEY, {
workspaceId: Number(process.env.MET_WORKSPACE_ID),
});
const me = await met.me.retrieve();
const mets = await met.agents.list();
const run = await met.runs.create({ met: mets[0].name, input: 'Introduce yourself in two sentences.' });
console.log(me.livemode, run.status, run.output);import os
from meteor_ia import Met # pip install meteor-ia
met = Met(os.environ["MET_API_KEY"], workspace_id=int(os.environ["MET_WORKSPACE_ID"]))
me = met.me.retrieve()
mets = met.agents.list()
run = met.runs.create("Introduce yourself in two sentences.", met=mets[0]["name"])
print(me["livemode"], run["status"], run["output"])The SDKs hand you the contents of data directly.
6. (Optional) Receive an event when a run finishes
Instead of asking whether a run finished, let Meteor tell you. You need a public https URL that accepts POST and a key with webhooks:manage on top of runs:read. Register the endpoint from the dashboard (Developers → Activity → Webhooks) or over the API:
curl -X POST https://api.met.meteor.com.co/api/v1/webhook-endpoints \
-H "Authorization: Bearer $MET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://your-server.com/webhooks/met","enabled_events":["run.completed","run.failed"]}'
The response carries the signing secret (whsec_…) only once: keep it, it is how you verify every delivery. To test the URL without running anything, ask for a test delivery with the endpoint's id; it arrives with type: "ping":
curl -X POST https://api.met.meteor.com.co/api/v1/webhook-endpoints/ENDPOINT_ID/test \
-H "Authorization: Bearer $MET_API_KEY"
From then on, every run you start reaches you as run.completed or run.failed, with the X-Met-Signature header. How to verify it and survive retries without processing anything twice: Receive signed events in your backend. The full event catalog is in Webhooks.
What's next
- Go to production: create a
met_live_key with the same scopes. Every run debits Energy. See Authentication. - Pick your path: platforms and SaaS, chatbots and AI agents or agencies and integrators.
- Your editor as a client: connect Claude Desktop, Cursor or your own agent to the MCP server with the same key.