---
title: "GET /api/organizationRole/findFirst"
method: GET
path: "/api/organizationRole/findFirst"
tags: ["organizationRole"]
---

# GET /api/organizationRole/findFirst

`GET /api/organizationRole/findFirst`

Find the first OrganizationRole matching the given condition

## Response `200`

Successful operation

- object
  - `data` OrganizationRole, required
    - `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
            - `id` string, required
            - `name` string, required
            - `pictureUrl` string, nullable
            - `stripeCustomerId` string, nullable
            - `createdAt` string, date-time, required
            - `updatedAt` string, date-time, required
            - `roles` OrganizationRole[]
            - `projects` Project[]
            - `agentCredentials` Agent[]
              - …
            - `integration` Integration[]
              - …
          - `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[]
            - `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 — 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
            - `id` string, required
            - `name` string, required
            - `description` string, nullable
            - `organizationId` string, required
            - `organization` Organization
              - …
            - `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[]
          - `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
        - `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
            - `id` string, required
            - `name` string, required
            - `description` string, nullable
            - `organizationId` string, required
            - `organization` Organization
              - …
            - `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[]
          - `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
      - `id` string, required
      - `name` string, required
      - `pictureUrl` string, nullable
      - `stripeCustomerId` string, nullable
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `roles` OrganizationRole[]
      - `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[]
            - `testsAsCreatedBy` Test[]
            - `testRunsAsExecutedBy` TestRun[]
              - …
            - `testShares` TestShare[]
              - …
          - `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
              - …
            - `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
              - …
            - `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)
