Projects
A project is a named group inside your account. It does three things:
- It holds routing defaults for every request made with its keys.
- It owns sandboxes and images. A key sees only the sandboxes and images of its own project.
- It holds the webhook URL and webhook secret for sandbox events.
Your account starts with one project. Next step: create a project for each workload that needs its own routing or its own set of sandboxes.
All project routes need a key with the admin scope. An admin key can manage every project in the account, whichever project the key itself belongs to.
Create a project
Only name is required. webhook_secret is returned on create and after a rotation, and never on a read. Store it when you see it.
max_sandboxes caps how many sandboxes of the project may be alive at once, whichever key made them. Left out, there is no cap. See Sandboxes.
The project samples on this page were captured before 2026-11-28. A project object now also carries max_sandboxes, null when not set. That is read from the server’s code: no new sample was captured.
Send an Idempotency-Key header with POST /v1/projects so a retry cannot create a second project. A retry by the same API key with the same Idempotency-Key and body within 24 hours returns the first response with Idempotent-Replayed: true and without webhook_secret: Meadow never saves a one-time secret. If you lost the first response, rotate the secret (see Webhooks). Two projects may share a name.
A new project has no keys. Create one with POST /v1/keys and the new project_id. See Authentication.
Routing defaults for models
routing.models says which providers may serve a model call and in what order.
In every case Meadow skips providers you have no provider key for and providers that do not accept the request’s format. A request can override these fields for one call, and a per_model entry overrides them for one model. Routing and fallbacks gives the default route, the order in which the layers apply, and what triggers a fallback.
This project puts OpenRouter first:
A call with one of the project’s keys follows that order. Read the response headers to see who served it:
Two attempts: in this run the OpenRouter account did not allow that model, so Meadow fell back to Google. A request can override the project for one call:
Routing defaults for sandboxes
routing.sandboxes does the same for sandbox creates.
A request’s provider object overrides these field by field. A project cannot set a default sandbox lifetime: timeout_seconds is set on each create.
Lock a project
"lock": true inside routing stops requests from overriding the project. Use it when a project must stay on approved providers.
On a locked project:
- A model request that sends a
providerobject gets a 403. - A model ID pinned as
<provider>/<model>gets a 403. - A sandbox create that sends any routing field in
provider, includingoptions, gets a 403. GET /v1/modelslists only the providers the project’s routing allows.- Requests with no routing fields work, and follow the project’s defaults and
per_modelentries.
A lock is a rule on requests. An admin key can still change or remove it with PATCH.
Update a project
PATCH /v1/projects/{project_id} changes name, webhook_url, max_sandboxes, and routing. Fields you leave out stay as they are.
routing is replaced as a whole. A patch that sends routing with one field drops every other routing field:
The models.order this project had before the patch is gone. To change one routing field, read the project, edit the routing object, and send all of it.
Set "webhook_url": null to remove the webhook URL. A webhook URL must use https and resolve to a public address.
Bad input returns 400 with a message that names the field. error.param carries the field too. For an unsupported provider option it names the key, such as routing.sandboxes.options.daytona.<key> with error.code parameter_unknown (seen on the hosted beta on 2026-11-28):
Rotate the webhook secret
Send {"rotate_webhook_secret": true}. The response carries the new webhook_secret once, and the old secret stays valid for 24 hours. Webhooks shows the call and how a receiver handles both secrets.
Read projects
GET /v1/projects returns every project in the account under data, oldest first, with "object": "list" and "has_more": false. It is not paginated.
Delete a project
Deleting a project deletes every key in it. Those keys stop working at once. It cannot be undone.
Meadow rejects the delete with a 409 while any of these holds. A rejected delete removes nothing.
The last case, from a real run:
A 409 uses the error type conflict. See Errors.
Restricted projects
A restricted project is for some of the people in the account. Owners and admins see every project. A member or viewer sees an unrestricted project, and a restricted project only after an owner or admin adds them to it. Keys do not change: a key works in its own project whoever can see it.
Restrict a project, then add a person by their user id from GET /v1/members:
To a person who cannot see it, a restricted project answers like a project of another account: 404 project_not_found on its id and in x-meadow-project. Its keys, sandboxes, images, usage records and requests are left out of every list and total, and so are provider keys that serve only hidden projects. The change applies from their next request. Removing a person from the account removes them from every project.
These calls need the admin scope, or an owner or admin session. GET /v1/projects/{project_id}/members lists who was added. DELETE /v1/projects/{project_id}/members/{user_id} removes a person, and returns 404 member_not_found when they were not added. See Known limits for what a restricted project does not hide yet.
API reference
Operations on this page: createProject, listProjects, getProject, updateProject, deleteProject, listProjectMembers, addProjectMember, removeProjectMember.