Create Project
Create a project, optionally with its own routing policy and a spending budget. Without a routing policy, the project routes with the organization's default.
Authentication
AuthorizationBearer
A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.
Request
This endpoint expects an object.
name
The project's name.
budget_config
A spending budget for the project.
description
What the project is for.
routing_policy
The project’s own routing policy. Send it with uses_organization_default_routing false.
uses_organization_default_routing
true routes the project with the organization’s default policy. false needs routing_policy, which becomes the project’s own policy.
Response
The created project
budget_config
The project’s spending budget; null when it has none.
created_at
When the project was created.
description
What the project is for.
id
The project's id.
is_active
false while the project's prompt injection, DLP and controls overrides are switched off.
name
The project's name.
organization_id
The organization the project belongs to.
routing_policy
The project’s own routing policy; null when it uses the organization default.
slug
Derived from the name at creation and unique in the organization. It doesn't change when the project is renamed.
updated_at
When the project last changed.
uses_organization_default_routing
true when the project routes with the organization's default policy, having no policy of its own.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
502
Bad Gateway Error