---
title: "POST /api/organization/upsert"
method: POST
path: "/api/organization/upsert"
tags: ["organization"]
---

# POST /api/organization/upsert

`POST /api/organization/upsert`

Upsert a Organization

## Request body

- OrganizationUpsertArgs
  - `select` OrganizationSelect
    - `id` boolean
    - `name` boolean
    - `pictureUrl` boolean
    - `stripeCustomerId` boolean
    - `createdAt` boolean
    - `updatedAt` boolean
    - `roles` union
      - boolean
      - OrganizationRoleFindManyArgs
        - `select` OrganizationRoleSelect
          - `id` boolean
          - `name` boolean
          - `createdAt` boolean
          - `updatedAt` boolean
          - `userId` boolean
          - `user` union
            - boolean
            - UserArgs
              - …
          - `organizationId` boolean
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `include` OrganizationRoleInclude
          - `user` union
            - boolean
            - UserArgs
              - …
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `where` OrganizationRoleWhereInput
          - `AND` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `OR` OrganizationRoleWhereInput[]
          - `NOT` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `userId` union
            - StringFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `user` union
            - UserRelationFilter
              - …
            - UserWhereInput
              - …
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput
              - …
        - `meta` Meta — Meta information about the request or response
          - `serialization` unknown
    - `projects` union
      - boolean
      - ProjectFindManyArgs
        - `select` ProjectSelect
          - `id` boolean
          - `name` boolean
          - `description` boolean
          - `organizationId` boolean
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
          - `tests` union
            - boolean
            - TestFindManyArgs
              - …
          - `createdAt` boolean
          - `updatedAt` boolean
          - `cookies` boolean
          - `session` boolean
          - `localStorage` boolean
          - `_count` union
            - boolean
            - ProjectCountOutputTypeArgs
              - …
        - `include` ProjectInclude
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
          - `tests` union
            - boolean
            - TestFindManyArgs
              - …
          - `_count` union
            - boolean
            - ProjectCountOutputTypeArgs
              - …
        - `where` ProjectWhereInput
          - `AND` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `OR` ProjectWhereInput[]
          - `NOT` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `description` union
            - StringNullableFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `cookies` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `session` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `localStorage` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `organization` union
            - OrganizationNullableRelationFilter
              - …
            - OrganizationWhereInput
              - …
          - `tests` TestListRelationFilter
            - `every` TestWhereInput
              - …
            - `some` TestWhereInput
              - …
            - `none` TestWhereInput
              - …
        - `meta` Meta — Meta information about the request or response
          - `serialization` unknown
    - `agentCredentials` union
      - boolean
      - AgentFindManyArgs
        - `select` AgentSelect
          - `id` boolean
          - `provider` boolean
          - `modelType` boolean
          - `numAgents` boolean
          - `isActive` boolean
          - `anthropicApiKey` boolean
          - `awsAccessKeyId` boolean
          - `awsSecretAccessKey` boolean
          - `awsSessionToken` boolean
          - `awsRegion` boolean
          - `apiEndpoint` boolean
          - `apiKey` boolean
          - `organizationId` boolean
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
          - `createdAt` boolean
          - `updatedAt` boolean
        - `include` AgentInclude
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `where` AgentWhereInput
          - `AND` union
            - AgentWhereInput — recursive
            - AgentWhereInput[]
          - `OR` AgentWhereInput[]
          - `NOT` union
            - AgentWhereInput — recursive
            - AgentWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `provider` union
            - StringFilter
              - …
            - string
          - `modelType` union
            - StringFilter
              - …
            - string
          - `numAgents` union
            - IntFilter
              - …
            - integer
          - `isActive` union
            - BoolFilter
              - …
            - boolean
          - `anthropicApiKey` union
            - StringNullableFilter
              - …
            - string
          - `awsAccessKeyId` union
            - StringNullableFilter
              - …
            - string
          - `awsSecretAccessKey` union
            - StringNullableFilter
              - …
            - string
          - `awsSessionToken` union
            - StringNullableFilter
              - …
            - string
          - `awsRegion` union
            - StringNullableFilter
              - …
            - string
          - `apiEndpoint` union
            - StringNullableFilter
              - …
            - string
          - `apiKey` union
            - StringNullableFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput
              - …
        - `meta` Meta — Meta information about the request or response
          - `serialization` unknown
    - `integration` union
      - boolean
      - IntegrationFindManyArgs
        - `select` IntegrationSelect
          - `id` boolean
          - `type` boolean
          - `name` boolean
          - `config` boolean
          - `createdAt` boolean
          - `updatedAt` boolean
          - `organizationId` boolean
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `include` IntegrationInclude
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `where` IntegrationWhereInput
          - `AND` union
            - IntegrationWhereInput — recursive
            - IntegrationWhereInput[]
          - `OR` IntegrationWhereInput[]
          - `NOT` union
            - IntegrationWhereInput — recursive
            - IntegrationWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `type` union
            - EnumIntegrationTypeFilter
              - …
            - 'jira' | 'linear' | 'slack' | 'discord' | 'github'
          - `name` union
            - StringFilter
              - …
            - string
          - `config` JsonFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput
              - …
        - `meta` Meta — Meta information about the request or response
          - `serialization` unknown
    - `_count` union
      - boolean
      - OrganizationCountOutputTypeArgs
        - `select` OrganizationCountOutputTypeSelect
          - `roles` boolean
          - `projects` boolean
          - `agentCredentials` boolean
          - `integration` boolean
  - `include` OrganizationInclude
    - `roles` union
      - boolean
      - OrganizationRoleFindManyArgs
        - `select` OrganizationRoleSelect
          - `id` boolean
          - `name` boolean
          - `createdAt` boolean
          - `updatedAt` boolean
          - `userId` boolean
          - `user` union
            - boolean
            - UserArgs
              - …
          - `organizationId` boolean
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `include` OrganizationRoleInclude
          - `user` union
            - boolean
            - UserArgs
              - …
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `where` OrganizationRoleWhereInput
          - `AND` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `OR` OrganizationRoleWhereInput[]
          - `NOT` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `userId` union
            - StringFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `user` union
            - UserRelationFilter
              - …
            - UserWhereInput
              - …
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput
              - …
        - `meta` Meta — Meta information about the request or response
          - `serialization` unknown
    - `projects` union
      - boolean
      - ProjectFindManyArgs
        - `select` ProjectSelect
          - `id` boolean
          - `name` boolean
          - `description` boolean
          - `organizationId` boolean
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
          - `tests` union
            - boolean
            - TestFindManyArgs
              - …
          - `createdAt` boolean
          - `updatedAt` boolean
          - `cookies` boolean
          - `session` boolean
          - `localStorage` boolean
          - `_count` union
            - boolean
            - ProjectCountOutputTypeArgs
              - …
        - `include` ProjectInclude
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
          - `tests` union
            - boolean
            - TestFindManyArgs
              - …
          - `_count` union
            - boolean
            - ProjectCountOutputTypeArgs
              - …
        - `where` ProjectWhereInput
          - `AND` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `OR` ProjectWhereInput[]
          - `NOT` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `description` union
            - StringNullableFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `cookies` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `session` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `localStorage` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `organization` union
            - OrganizationNullableRelationFilter
              - …
            - OrganizationWhereInput
              - …
          - `tests` TestListRelationFilter
            - `every` TestWhereInput
              - …
            - `some` TestWhereInput
              - …
            - `none` TestWhereInput
              - …
        - `meta` Meta — Meta information about the request or response
          - `serialization` unknown
    - `agentCredentials` union
      - boolean
      - AgentFindManyArgs
        - `select` AgentSelect
          - `id` boolean
          - `provider` boolean
          - `modelType` boolean
          - `numAgents` boolean
          - `isActive` boolean
          - `anthropicApiKey` boolean
          - `awsAccessKeyId` boolean
          - `awsSecretAccessKey` boolean
          - `awsSessionToken` boolean
          - `awsRegion` boolean
          - `apiEndpoint` boolean
          - `apiKey` boolean
          - `organizationId` boolean
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
          - `createdAt` boolean
          - `updatedAt` boolean
        - `include` AgentInclude
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `where` AgentWhereInput
          - `AND` union
            - AgentWhereInput — recursive
            - AgentWhereInput[]
          - `OR` AgentWhereInput[]
          - `NOT` union
            - AgentWhereInput — recursive
            - AgentWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `provider` union
            - StringFilter
              - …
            - string
          - `modelType` union
            - StringFilter
              - …
            - string
          - `numAgents` union
            - IntFilter
              - …
            - integer
          - `isActive` union
            - BoolFilter
              - …
            - boolean
          - `anthropicApiKey` union
            - StringNullableFilter
              - …
            - string
          - `awsAccessKeyId` union
            - StringNullableFilter
              - …
            - string
          - `awsSecretAccessKey` union
            - StringNullableFilter
              - …
            - string
          - `awsSessionToken` union
            - StringNullableFilter
              - …
            - string
          - `awsRegion` union
            - StringNullableFilter
              - …
            - string
          - `apiEndpoint` union
            - StringNullableFilter
              - …
            - string
          - `apiKey` union
            - StringNullableFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput
              - …
        - `meta` Meta — Meta information about the request or response
          - `serialization` unknown
    - `integration` union
      - boolean
      - IntegrationFindManyArgs
        - `select` IntegrationSelect
          - `id` boolean
          - `type` boolean
          - `name` boolean
          - `config` boolean
          - `createdAt` boolean
          - `updatedAt` boolean
          - `organizationId` boolean
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `include` IntegrationInclude
          - `organization` union
            - boolean
            - OrganizationArgs
              - …
        - `where` IntegrationWhereInput
          - `AND` union
            - IntegrationWhereInput — recursive
            - IntegrationWhereInput[]
          - `OR` IntegrationWhereInput[]
          - `NOT` union
            - IntegrationWhereInput — recursive
            - IntegrationWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `type` union
            - EnumIntegrationTypeFilter
              - …
            - 'jira' | 'linear' | 'slack' | 'discord' | 'github'
          - `name` union
            - StringFilter
              - …
            - string
          - `config` JsonFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput
              - …
        - `meta` Meta — Meta information about the request or response
          - `serialization` unknown
    - `_count` union
      - boolean
      - OrganizationCountOutputTypeArgs
        - `select` OrganizationCountOutputTypeSelect
          - `roles` boolean
          - `projects` boolean
          - `agentCredentials` boolean
          - `integration` boolean
  - `where` OrganizationWhereUniqueInput, required
    - `id` string
    - `AND` union
      - OrganizationWhereInput
        - `AND` union
          - OrganizationWhereInput — recursive
          - OrganizationWhereInput[]
        - `OR` OrganizationWhereInput[]
        - `NOT` union
          - OrganizationWhereInput — recursive
          - OrganizationWhereInput[]
        - `id` union
          - StringFilter
            - `equals` string
            - `in` string[]
            - `notIn` string[]
            - `lt` string
            - `lte` string
            - `gt` string
            - `gte` string
            - `contains` string
            - `startsWith` string
            - `endsWith` string
            - `mode` 'default' | 'insensitive'
            - `not` union
              - …
          - string
        - `name` union
          - StringFilter
            - `equals` string
            - `in` string[]
            - `notIn` string[]
            - `lt` string
            - `lte` string
            - `gt` string
            - `gte` string
            - `contains` string
            - `startsWith` string
            - `endsWith` string
            - `mode` 'default' | 'insensitive'
            - `not` union
              - …
          - string
        - `pictureUrl` union
          - StringNullableFilter
            - `equals` string, nullable
            - `in` string[], nullable
            - `notIn` string[], nullable
            - `lt` string
            - `lte` string
            - `gt` string
            - `gte` string
            - `contains` string
            - `startsWith` string
            - `endsWith` string
            - `mode` 'default' | 'insensitive'
            - `not` union
              - …
          - string
        - `stripeCustomerId` union
          - StringNullableFilter
            - `equals` string, nullable
            - `in` string[], nullable
            - `notIn` string[], nullable
            - `lt` string
            - `lte` string
            - `gt` string
            - `gte` string
            - `contains` string
            - `startsWith` string
            - `endsWith` string
            - `mode` 'default' | 'insensitive'
            - `not` union
              - …
          - string
        - `createdAt` union
          - DateTimeFilter
            - `equals` string, date-time
            - `in` string[]
            - `notIn` string[]
            - `lt` string, date-time
            - `lte` string, date-time
            - `gt` string, date-time
            - `gte` string, date-time
            - `not` union
              - …
          - string, date-time
        - `updatedAt` union
          - DateTimeFilter
            - `equals` string, date-time
            - `in` string[]
            - `notIn` string[]
            - `lt` string, date-time
            - `lte` string, date-time
            - `gt` string, date-time
            - `gte` string, date-time
            - `not` union
              - …
          - string, date-time
        - `roles` OrganizationRoleListRelationFilter
          - `every` OrganizationRoleWhereInput
            - `AND` union
              - …
            - `OR` OrganizationRoleWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `userId` union
              - …
            - `organizationId` union
              - …
            - `user` union
              - …
            - `organization` union
              - …
          - `some` OrganizationRoleWhereInput
            - `AND` union
              - …
            - `OR` OrganizationRoleWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `userId` union
              - …
            - `organizationId` union
              - …
            - `user` union
              - …
            - `organization` union
              - …
          - `none` OrganizationRoleWhereInput
            - `AND` union
              - …
            - `OR` OrganizationRoleWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `userId` union
              - …
            - `organizationId` union
              - …
            - `user` union
              - …
            - `organization` union
              - …
        - `projects` ProjectListRelationFilter
          - `every` ProjectWhereInput
            - `AND` union
              - …
            - `OR` ProjectWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `description` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `cookies` JsonNullableFilter
              - …
            - `session` JsonNullableFilter
              - …
            - `localStorage` JsonNullableFilter
              - …
            - `organization` union
              - …
            - `tests` TestListRelationFilter
              - …
          - `some` ProjectWhereInput
            - `AND` union
              - …
            - `OR` ProjectWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `description` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `cookies` JsonNullableFilter
              - …
            - `session` JsonNullableFilter
              - …
            - `localStorage` JsonNullableFilter
              - …
            - `organization` union
              - …
            - `tests` TestListRelationFilter
              - …
          - `none` ProjectWhereInput
            - `AND` union
              - …
            - `OR` ProjectWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `description` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `cookies` JsonNullableFilter
              - …
            - `session` JsonNullableFilter
              - …
            - `localStorage` JsonNullableFilter
              - …
            - `organization` union
              - …
            - `tests` TestListRelationFilter
              - …
        - `agentCredentials` AgentListRelationFilter
          - `every` AgentWhereInput
            - `AND` union
              - …
            - `OR` AgentWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `provider` union
              - …
            - `modelType` union
              - …
            - `numAgents` union
              - …
            - `isActive` union
              - …
            - `anthropicApiKey` union
              - …
            - `awsAccessKeyId` union
              - …
            - `awsSecretAccessKey` union
              - …
            - `awsSessionToken` union
              - …
            - `awsRegion` union
              - …
            - `apiEndpoint` union
              - …
            - `apiKey` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organization` union
              - …
          - `some` AgentWhereInput
            - `AND` union
              - …
            - `OR` AgentWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `provider` union
              - …
            - `modelType` union
              - …
            - `numAgents` union
              - …
            - `isActive` union
              - …
            - `anthropicApiKey` union
              - …
            - `awsAccessKeyId` union
              - …
            - `awsSecretAccessKey` union
              - …
            - `awsSessionToken` union
              - …
            - `awsRegion` union
              - …
            - `apiEndpoint` union
              - …
            - `apiKey` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organization` union
              - …
          - `none` AgentWhereInput
            - `AND` union
              - …
            - `OR` AgentWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `provider` union
              - …
            - `modelType` union
              - …
            - `numAgents` union
              - …
            - `isActive` union
              - …
            - `anthropicApiKey` union
              - …
            - `awsAccessKeyId` union
              - …
            - `awsSecretAccessKey` union
              - …
            - `awsSessionToken` union
              - …
            - `awsRegion` union
              - …
            - `apiEndpoint` union
              - …
            - `apiKey` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organization` union
              - …
        - `integration` IntegrationListRelationFilter
          - `every` IntegrationWhereInput
            - `AND` union
              - …
            - `OR` IntegrationWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `type` union
              - …
            - `name` union
              - …
            - `config` JsonFilter
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organizationId` union
              - …
            - `organization` union
              - …
          - `some` IntegrationWhereInput
            - `AND` union
              - …
            - `OR` IntegrationWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `type` union
              - …
            - `name` union
              - …
            - `config` JsonFilter
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organizationId` union
              - …
            - `organization` union
              - …
          - `none` IntegrationWhereInput
            - `AND` union
              - …
            - `OR` IntegrationWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `type` union
              - …
            - `name` union
              - …
            - `config` JsonFilter
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organizationId` union
              - …
            - `organization` union
              - …
      - OrganizationWhereInput[]
        - `AND` union
          - OrganizationWhereInput — recursive
          - OrganizationWhereInput[]
        - `OR` OrganizationWhereInput[]
        - `NOT` union
          - OrganizationWhereInput — recursive
          - OrganizationWhereInput[]
        - `id` union
          - StringFilter
            - `equals` string
            - `in` string[]
            - `notIn` string[]
            - `lt` string
            - `lte` string
            - `gt` string
            - `gte` string
            - `contains` string
            - `startsWith` string
            - `endsWith` string
            - `mode` 'default' | 'insensitive'
            - `not` union
              - …
          - string
        - `name` union
          - StringFilter
            - `equals` string
            - `in` string[]
            - `notIn` string[]
            - `lt` string
            - `lte` string
            - `gt` string
            - `gte` string
            - `contains` string
            - `startsWith` string
            - `endsWith` string
            - `mode` 'default' | 'insensitive'
            - `not` union
              - …
          - string
        - `pictureUrl` union
          - StringNullableFilter
            - `equals` string, nullable
            - `in` string[], nullable
            - `notIn` string[], nullable
            - `lt` string
            - `lte` string
            - `gt` string
            - `gte` string
            - `contains` string
            - `startsWith` string
            - `endsWith` string
            - `mode` 'default' | 'insensitive'
            - `not` union
              - …
          - string
        - `stripeCustomerId` union
          - StringNullableFilter
            - `equals` string, nullable
            - `in` string[], nullable
            - `notIn` string[], nullable
            - `lt` string
            - `lte` string
            - `gt` string
            - `gte` string
            - `contains` string
            - `startsWith` string
            - `endsWith` string
            - `mode` 'default' | 'insensitive'
            - `not` union
              - …
          - string
        - `createdAt` union
          - DateTimeFilter
            - `equals` string, date-time
            - `in` string[]
            - `notIn` string[]
            - `lt` string, date-time
            - `lte` string, date-time
            - `gt` string, date-time
            - `gte` string, date-time
            - `not` union
              - …
          - string, date-time
        - `updatedAt` union
          - DateTimeFilter
            - `equals` string, date-time
            - `in` string[]
            - `notIn` string[]
            - `lt` string, date-time
            - `lte` string, date-time
            - `gt` string, date-time
            - `gte` string, date-time
            - `not` union
              - …
          - string, date-time
        - `roles` OrganizationRoleListRelationFilter
          - `every` OrganizationRoleWhereInput
            - `AND` union
              - …
            - `OR` OrganizationRoleWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `userId` union
              - …
            - `organizationId` union
              - …
            - `user` union
              - …
            - `organization` union
              - …
          - `some` OrganizationRoleWhereInput
            - `AND` union
              - …
            - `OR` OrganizationRoleWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `userId` union
              - …
            - `organizationId` union
              - …
            - `user` union
              - …
            - `organization` union
              - …
          - `none` OrganizationRoleWhereInput
            - `AND` union
              - …
            - `OR` OrganizationRoleWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `userId` union
              - …
            - `organizationId` union
              - …
            - `user` union
              - …
            - `organization` union
              - …
        - `projects` ProjectListRelationFilter
          - `every` ProjectWhereInput
            - `AND` union
              - …
            - `OR` ProjectWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `description` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `cookies` JsonNullableFilter
              - …
            - `session` JsonNullableFilter
              - …
            - `localStorage` JsonNullableFilter
              - …
            - `organization` union
              - …
            - `tests` TestListRelationFilter
              - …
          - `some` ProjectWhereInput
            - `AND` union
              - …
            - `OR` ProjectWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `description` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `cookies` JsonNullableFilter
              - …
            - `session` JsonNullableFilter
              - …
            - `localStorage` JsonNullableFilter
              - …
            - `organization` union
              - …
            - `tests` TestListRelationFilter
              - …
          - `none` ProjectWhereInput
            - `AND` union
              - …
            - `OR` ProjectWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `name` union
              - …
            - `description` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `cookies` JsonNullableFilter
              - …
            - `session` JsonNullableFilter
              - …
            - `localStorage` JsonNullableFilter
              - …
            - `organization` union
              - …
            - `tests` TestListRelationFilter
              - …
        - `agentCredentials` AgentListRelationFilter
          - `every` AgentWhereInput
            - `AND` union
              - …
            - `OR` AgentWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `provider` union
              - …
            - `modelType` union
              - …
            - `numAgents` union
              - …
            - `isActive` union
              - …
            - `anthropicApiKey` union
              - …
            - `awsAccessKeyId` union
              - …
            - `awsSecretAccessKey` union
              - …
            - `awsSessionToken` union
              - …
            - `awsRegion` union
              - …
            - `apiEndpoint` union
              - …
            - `apiKey` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organization` union
              - …
          - `some` AgentWhereInput
            - `AND` union
              - …
            - `OR` AgentWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `provider` union
              - …
            - `modelType` union
              - …
            - `numAgents` union
              - …
            - `isActive` union
              - …
            - `anthropicApiKey` union
              - …
            - `awsAccessKeyId` union
              - …
            - `awsSecretAccessKey` union
              - …
            - `awsSessionToken` union
              - …
            - `awsRegion` union
              - …
            - `apiEndpoint` union
              - …
            - `apiKey` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organization` union
              - …
          - `none` AgentWhereInput
            - `AND` union
              - …
            - `OR` AgentWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `provider` union
              - …
            - `modelType` union
              - …
            - `numAgents` union
              - …
            - `isActive` union
              - …
            - `anthropicApiKey` union
              - …
            - `awsAccessKeyId` union
              - …
            - `awsSecretAccessKey` union
              - …
            - `awsSessionToken` union
              - …
            - `awsRegion` union
              - …
            - `apiEndpoint` union
              - …
            - `apiKey` union
              - …
            - `organizationId` union
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organization` union
              - …
        - `integration` IntegrationListRelationFilter
          - `every` IntegrationWhereInput
            - `AND` union
              - …
            - `OR` IntegrationWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `type` union
              - …
            - `name` union
              - …
            - `config` JsonFilter
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organizationId` union
              - …
            - `organization` union
              - …
          - `some` IntegrationWhereInput
            - `AND` union
              - …
            - `OR` IntegrationWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `type` union
              - …
            - `name` union
              - …
            - `config` JsonFilter
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organizationId` union
              - …
            - `organization` union
              - …
          - `none` IntegrationWhereInput
            - `AND` union
              - …
            - `OR` IntegrationWhereInput[]
            - `NOT` union
              - …
            - `id` union
              - …
            - `type` union
              - …
            - `name` union
              - …
            - `config` JsonFilter
              - …
            - `createdAt` union
              - …
            - `updatedAt` union
              - …
            - `organizationId` union
              - …
            - `organization` union
              - …
    - `OR` OrganizationWhereInput[]
      - `AND` union
        - OrganizationWhereInput — recursive
        - OrganizationWhereInput[]
      - `OR` OrganizationWhereInput[]
      - `NOT` union
        - OrganizationWhereInput — recursive
        - OrganizationWhereInput[]
      - `id` union
        - StringFilter
          - `equals` string
          - `in` string[]
          - `notIn` string[]
          - `lt` string
          - `lte` string
          - `gt` string
          - `gte` string
          - `contains` string
          - `startsWith` string
          - `endsWith` string
          - `mode` 'default' | 'insensitive'
          - `not` union
            - string
            - NestedStringFilter
              - …
        - string
      - `name` union
        - StringFilter
          - `equals` string
          - `in` string[]
          - `notIn` string[]
          - `lt` string
          - `lte` string
          - `gt` string
          - `gte` string
          - `contains` string
          - `startsWith` string
          - `endsWith` string
          - `mode` 'default' | 'insensitive'
          - `not` union
            - string
            - NestedStringFilter
              - …
        - string
      - `pictureUrl` union
        - StringNullableFilter
          - `equals` string, nullable
          - `in` string[], nullable
          - `notIn` string[], nullable
          - `lt` string
          - `lte` string
          - `gt` string
          - `gte` string
          - `contains` string
          - `startsWith` string
          - `endsWith` string
          - `mode` 'default' | 'insensitive'
          - `not` union
            - string
            - NestedStringNullableFilter
              - …
        - string
      - `stripeCustomerId` union
        - StringNullableFilter
          - `equals` string, nullable
          - `in` string[], nullable
          - `notIn` string[], nullable
          - `lt` string
          - `lte` string
          - `gt` string
          - `gte` string
          - `contains` string
          - `startsWith` string
          - `endsWith` string
          - `mode` 'default' | 'insensitive'
          - `not` union
            - string
            - NestedStringNullableFilter
              - …
        - string
      - `createdAt` union
        - DateTimeFilter
          - `equals` string, date-time
          - `in` string[]
          - `notIn` string[]
          - `lt` string, date-time
          - `lte` string, date-time
          - `gt` string, date-time
          - `gte` string, date-time
          - `not` union
            - string, date-time
            - NestedDateTimeFilter
              - …
        - string, date-time
      - `updatedAt` union
        - DateTimeFilter
          - `equals` string, date-time
          - `in` string[]
          - `notIn` string[]
          - `lt` string, date-time
          - `lte` string, date-time
          - `gt` string, date-time
          - `gte` string, date-time
          - `not` union
            - string, date-time
            - NestedDateTimeFilter
              - …
        - string, date-time
      - `roles` OrganizationRoleListRelationFilter
        - `every` OrganizationRoleWhereInput
          - `AND` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `OR` OrganizationRoleWhereInput[]
          - `NOT` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `userId` union
            - StringFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `user` union
            - UserRelationFilter
              - …
            - UserWhereInput
              - …
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput — recursive
        - `some` OrganizationRoleWhereInput
          - `AND` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `OR` OrganizationRoleWhereInput[]
          - `NOT` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `userId` union
            - StringFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `user` union
            - UserRelationFilter
              - …
            - UserWhereInput
              - …
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput — recursive
        - `none` OrganizationRoleWhereInput
          - `AND` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `OR` OrganizationRoleWhereInput[]
          - `NOT` union
            - OrganizationRoleWhereInput — recursive
            - OrganizationRoleWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `userId` union
            - StringFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `user` union
            - UserRelationFilter
              - …
            - UserWhereInput
              - …
          - `organization` union
            - OrganizationRelationFilter
              - …
            - OrganizationWhereInput — recursive
      - `projects` ProjectListRelationFilter
        - `every` ProjectWhereInput
          - `AND` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `OR` ProjectWhereInput[]
          - `NOT` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `description` union
            - StringNullableFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `cookies` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `session` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `localStorage` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `organization` union
            - OrganizationNullableRelationFilter
              - …
            - OrganizationWhereInput — recursive
          - `tests` TestListRelationFilter
            - `every` TestWhereInput
              - …
            - `some` TestWhereInput
              - …
            - `none` TestWhereInput
              - …
        - `some` ProjectWhereInput
          - `AND` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `OR` ProjectWhereInput[]
          - `NOT` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `description` union
            - StringNullableFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `cookies` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `session` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `localStorage` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `organization` union
            - OrganizationNullableRelationFilter
              - …
            - OrganizationWhereInput — recursive
          - `tests` TestListRelationFilter
            - `every` TestWhereInput
              - …
            - `some` TestWhereInput
              - …
            - `none` TestWhereInput
              - …
        - `none` ProjectWhereInput
          - `AND` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `OR` ProjectWhereInput[]
          - `NOT` union
            - ProjectWhereInput — recursive
            - ProjectWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `name` union
            - StringFilter
              - …
            - string
          - `description` union
            - StringNullableFilter
              - …
            - string
          - `organizationId` union
            - StringFilter
              - …
            - string
          - `createdAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `updatedAt` union
            - DateTimeFilter
              - …
            - string, date-time
          - `cookies` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `session` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `localStorage` JsonNullableFilter
            - `equals` union
              - …
            - `path` string[]
            - `string_contains` string
            - `string_starts_with` string
            - `string_ends_with` string
            - `array_contains` unknown
            - `array_starts_with` unknown
            - `array_ends_with` unknown
            - `lt` unknown
            - `lte` unknown
            - `gt` unknown
            - `gte` unknown
            - `not` union
              - …
          - `organization` union
            - OrganizationNullableRelationFilter
              - …
            - OrganizationWhereInput — recursive
          - `tests` TestListRelationFilter
            - `every` TestWhereInput
              - …
            - `some` TestWhereInput
              - …
            - `none` TestWhereInput
              - …
      - `agentCredentials` AgentListRelationFilter
        - `every` AgentWhereInput
          - `AND` union
            - AgentWhereInput — recursive
            - AgentWhereInput[]
          - `OR` AgentWhereInput[]
          - `NOT` union
            - AgentWhereInput — recursive
            - AgentWhereInput[]
          - `id` union
            - StringFilter
              - …
            - string
          - `provider` union
            - StringFilter
              - …
            - string
          - `modelType` union
            - StringFilter
              - …
            - string
- … truncated; see the full OpenAPI document linked below

## Response `200`

Successful operation

- object
  - `data` Organization, required
    - `id` string, required
    - `name` string, required
    - `pictureUrl` string, nullable
    - `stripeCustomerId` string, nullable
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `roles` OrganizationRole[]
      - `id` string, required
      - `name` string, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `userId` string, required
      - `user` User, required
        - `id` string, required
        - `name` string, nullable
        - `email` string, nullable
        - `pictureUrl` string, nullable
        - `tokenInvitation` string, nullable
        - `stripeCustomerId` string, nullable
        - `status` 'INVITED' | 'VERIFIED', required
        - `globalRole` string, required
        - `password` string, nullable
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
        - `organizationRoles` OrganizationRole[]
        - `testsAsCreatedBy` Test[]
          - `id` string, required
          - `name` string, required
          - `description` string, nullable
          - `url` string, nullable
          - `naturalLanguageInput` string, nullable
          - `status` string, required
          - `isActive` boolean, required
          - `projectId` string, required
          - `project` Project
            - `id` string, required
            - `name` string, required
            - `description` string, nullable
            - `organizationId` string, required
            - `organization` Organization — recursive
            - `tests` Test[]
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `cookies` unknown
            - `session` unknown
            - `localStorage` unknown
          - `createdById` string, required
          - `createdBy` User — recursive
          - `testRuns` TestRun[]
            - `id` string, required
            - `status` string, required
            - `errorLog` string, nullable
            - `reportUrl` string, nullable
            - `testId` string, required
            - `test` Test — recursive
            - `executedById` string, required
            - `executedBy` User — recursive
            - `testSteps` TestStep[]
              - …
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `testShares` TestShare[]
            - `id` string, required
            - `permission` string, required
            - `testId` string, required
            - `test` Test — recursive
            - `userId` string, required
            - `user` User — recursive
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
        - `testRunsAsExecutedBy` TestRun[]
          - `id` string, required
          - `status` string, required
          - `errorLog` string, nullable
          - `reportUrl` string, nullable
          - `testId` string, required
          - `test` Test
            - `id` string, required
            - `name` string, required
            - `description` string, nullable
            - `url` string, nullable
            - `naturalLanguageInput` string, nullable
            - `status` string, required
            - `isActive` boolean, required
            - `projectId` string, required
            - `project` Project
              - …
            - `createdById` string, required
            - `createdBy` User — recursive
            - `testRuns` TestRun[]
            - `testShares` TestShare[]
              - …
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `executedById` string, required
          - `executedBy` User — recursive
          - `testSteps` TestStep[]
            - `id` string, required
            - `order` number, required
            - `action` string, required
            - `status` string, required
            - `screenshotUrl` string, nullable
            - `testRunId` string, required
            - `testRun` TestRun — recursive
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
        - `testShares` TestShare[]
          - `id` string, required
          - `permission` string, required
          - `testId` string, required
          - `test` Test
            - `id` string, required
            - `name` string, required
            - `description` string, nullable
            - `url` string, nullable
            - `naturalLanguageInput` string, nullable
            - `status` string, required
            - `isActive` boolean, required
            - `projectId` string, required
            - `project` Project
              - …
            - `createdById` string, required
            - `createdBy` User — recursive
            - `testRuns` TestRun[]
              - …
            - `testShares` TestShare[]
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `userId` string, required
          - `user` User — recursive
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
      - `organizationId` string, required
      - `organization` Organization, required — recursive
    - `projects` Project[]
      - `id` string, required
      - `name` string, required
      - `description` string, nullable
      - `organizationId` string, required
      - `organization` Organization — recursive
      - `tests` Test[]
        - `id` string, required
        - `name` string, required
        - `description` string, nullable
        - `url` string, nullable
        - `naturalLanguageInput` string, nullable
        - `status` string, required
        - `isActive` boolean, required
        - `projectId` string, required
        - `project` Project — recursive
        - `createdById` string, required
        - `createdBy` User
          - `id` string, required
          - `name` string, nullable
          - `email` string, nullable
          - `pictureUrl` string, nullable
          - `tokenInvitation` string, nullable
          - `stripeCustomerId` string, nullable
          - `status` 'INVITED' | 'VERIFIED', required
          - `globalRole` string, required
          - `password` string, nullable
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
          - `organizationRoles` OrganizationRole[]
            - `id` string, required
            - `name` string, required
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `userId` string, required
            - `user` User, required — recursive
            - `organizationId` string, required
            - `organization` Organization, required — recursive
          - `testsAsCreatedBy` Test[]
          - `testRunsAsExecutedBy` TestRun[]
            - `id` string, required
            - `status` string, required
            - `errorLog` string, nullable
            - `reportUrl` string, nullable
            - `testId` string, required
            - `test` Test — recursive
            - `executedById` string, required
            - `executedBy` User — recursive
            - `testSteps` TestStep[]
              - …
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `testShares` TestShare[]
            - `id` string, required
            - `permission` string, required
            - `testId` string, required
            - `test` Test — recursive
            - `userId` string, required
            - `user` User — recursive
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
        - `testRuns` TestRun[]
          - `id` string, required
          - `status` string, required
          - `errorLog` string, nullable
          - `reportUrl` string, nullable
          - `testId` string, required
          - `test` Test — recursive
          - `executedById` string, required
          - `executedBy` User
            - `id` string, required
            - `name` string, nullable
            - `email` string, nullable
            - `pictureUrl` string, nullable
            - `tokenInvitation` string, nullable
            - `stripeCustomerId` string, nullable
            - `status` 'INVITED' | 'VERIFIED', required
            - `globalRole` string, required
            - `password` string, nullable
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `organizationRoles` OrganizationRole[]
              - …
            - `testsAsCreatedBy` Test[]
            - `testRunsAsExecutedBy` TestRun[]
            - `testShares` TestShare[]
              - …
          - `testSteps` TestStep[]
            - `id` string, required
            - `order` number, required
            - `action` string, required
            - `status` string, required
            - `screenshotUrl` string, nullable
            - `testRunId` string, required
            - `testRun` TestRun — recursive
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
        - `testShares` TestShare[]
          - `id` string, required
          - `permission` string, required
          - `testId` string, required
          - `test` Test — recursive
          - `userId` string, required
          - `user` User
            - `id` string, required
            - `name` string, nullable
            - `email` string, nullable
            - `pictureUrl` string, nullable
            - `tokenInvitation` string, nullable
            - `stripeCustomerId` string, nullable
            - `status` 'INVITED' | 'VERIFIED', required
            - `globalRole` string, required
            - `password` string, nullable
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `organizationRoles` OrganizationRole[]
              - …
            - `testsAsCreatedBy` Test[]
            - `testRunsAsExecutedBy` TestRun[]
              - …
            - `testShares` TestShare[]
          - `createdAt` string, date-time, required
          - `updatedAt` string, date-time, required
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `cookies` unknown
      - `session` unknown
      - `localStorage` unknown
    - `agentCredentials` Agent[]
      - `id` string, required
      - `provider` string, required
      - `modelType` string, required
      - `numAgents` integer, required
      - `isActive` boolean, required
      - `anthropicApiKey` string, nullable
      - `awsAccessKeyId` string, nullable
      - `awsSecretAccessKey` string, nullable
      - `awsSessionToken` string, nullable
      - `awsRegion` string, nullable
      - `apiEndpoint` string, nullable
      - `apiKey` string, nullable
      - `organizationId` string, required
      - `organization` Organization, required — recursive
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
    - `integration` Integration[]
      - `id` string, required
      - `type` 'jira' | 'linear' | 'slack' | 'discord' | 'github', required
      - `name` string, required
      - `config` unknown, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `organizationId` string, required
      - `organization` Organization, required — recursive
  - `meta` Meta — Meta information about the request or response
    - `serialization` unknown

## Other responses

- `400` — Invalid request
- `403` — Request is forbidden
- `422` — Request is unprocessable due to validation errors

---

[API](https://skmtc.dev/iris-networks/apis/my-awesome-api.md) · [All operations](https://skmtc.dev/iris-networks/apis/my-awesome-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/iris-networks/my-awesome-api/revisions/4cea49731f1e/schema)
