openapi: 3.1.0 info: title: env0 Agents Projects API version: 1.0.0 description: REST API for the env0 infrastructure-as-code automation platform. Provides programmatic access to organizations, projects, environments, deployments, templates, modules, agents, configuration variables, credentials, RBAC, approval policies, and VCS provider mappings. Rate limited to 1,000 requests per 60 seconds. Best-effort spec derived from publicly documented surfaces; not exhaustive. contact: name: env0 Support url: https://docs.envzero.com/ license: name: Proprietary servers: - url: https://api.env0.com description: env0 API production base URL security: - basicAuth: [] tags: - name: Projects paths: /projects: get: tags: - Projects summary: List projects in an organization operationId: listProjects parameters: - in: query name: organizationId required: true schema: type: string responses: '200': description: Projects list content: application/json: schema: type: array items: $ref: '#/components/schemas/Project' post: tags: - Projects summary: Create a new project operationId: createProject requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Project' responses: '201': description: Project created content: application/json: schema: $ref: '#/components/schemas/Project' /projects/{projectId}: parameters: - in: path name: projectId required: true schema: type: string get: tags: - Projects summary: Get a project operationId: getProject responses: '200': description: Project content: application/json: schema: $ref: '#/components/schemas/Project' put: tags: - Projects summary: Update a project operationId: updateProject requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Project' responses: '200': description: Updated project delete: tags: - Projects summary: Delete a project operationId: deleteProject responses: '204': description: Project deleted components: schemas: Project: type: object properties: id: type: string name: type: string description: type: string organizationId: type: string createdAt: type: string format: date-time securitySchemes: basicAuth: type: http scheme: basic description: HTTP Basic Authentication. Username is the env0 API Key ID and the password is the API Key Secret, both created in the env0 organization settings.